grant remote access of MySQL database from any IP address

后端 未结 21 1293
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 09:18

I am aware of this command:

GRANT ALL PRIVILEGES
ON database.*
TO \'user\'@\'yourremotehost\'
IDENTIFIED BY \'newpassword\';

But then it on

21条回答
  •  渐次进展
    2020-11-22 09:46

    If you want to grant remote access of your database from any IP address, run the mysql command and after that run the following command.

    GRANT ALL PRIVILEGES ON *.*
    TO 'root'@'%' 
    IDENTIFIED BY 'password' 
    WITH GRANT OPTION;
    

提交回复
热议问题