Granting remote access to your MySQL database

  • Sharebar

I will keep this short and sweet!

if you want to access all your databases

GRANT ALL ON *.* TO username@'yourhostnameorip' IDENTIFIED BY 'PASSWORD

if you want to access a particular database

GRANT ALL ON databasename.* TO username@'yourhostnameorip' IDENTIFIED BY 'PASSWORD
This entry was posted in Programming and tagged . Bookmark the permalink.