zhaoJian's Tech Notes

MySQL Add User Remote Access Permission

Technology ~331 words · 1 min read - views
GRANT ALL PRIVILEGES ON *.* TO @localhost IDENTIFIED BY '' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO username@"%" IDENTIFIED BY 'password' WITH GRANT OPTION;

The first statement adds a user and password, the second statement elevates permissions. Just change the highlighted text to what you need and you’re done.

Share:

Comments