grant remote access of MySQL database from any IP address

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

    Edit File:

    /etc/mysql/percona-server.cnf

    Append below code in file.

    [mysqld] bind-address = 0.0.0.0

    Create user for remote access.

    $ mysql -u root -p      
    mysql> GRANT ALL ON *.* to snippetbucketdotcom@'%' IDENTIFIED BY 'tejastank';   
    mysql> FLUSH PRIVILEGES;    
    mysql> exit
    

    All linux server works,

    For MSWin c:\ Find insatallation location \ file path

提交回复
热议问题