grant remote access of MySQL database from any IP address

后端 未结 21 1587
伪装坚强ぢ
伪装坚强ぢ 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:41

    To remotely access database Mysql server 8:

    CREATE USER 'root'@'%' IDENTIFIED BY 'Pswword@123';
    
    GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
    
    FLUSH PRIVILEGES;
    

提交回复
热议问题