How to grant remote access permissions to mysql server for user?授权先:
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘192.168.1.%‘
IDENTIFIED BY ‘some_characters‘
WITH GRANT OPTION;
FLUSH PRIVILEGES;
-----然后改下:/etc/mysql/my.cnf 中的bind-address,注掉就是不限制ip了。
时间: 2024-11-06 03:33:17