grant remote access of MySQL database from any IP address

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

    In website panels like cPanel you may add a single % (percentage sign) in allowed hostnames to access your MySQL database.

    By adding a single % you can access your database from any IP or website even from desktop applications.

提交回复
热议问题