mysql/mariadb 开启允许用户远程访问
1.先登录数据库
mysql -u root -p2.更改用户权限并刷新 其中root为远程登录账户 password 为密码
第一句赋予了远程账户root所有权限。
第二句是刷新权限。
grant all privileges on *.* to root@"%" identified by "password" with grant option;
flush privileges; 1.先登录数据库
mysql -u root -p2.更改用户权限并刷新 其中root为远程登录账户 password 为密码
第一句赋予了远程账户root所有权限。
第二句是刷新权限。
grant all privileges on *.* to root@"%" identified by "password" with grant option;
flush privileges;