MySQL开启root远程访问权限
允许任何IP使用 root 账户,口令8个1远程访问
方法1
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '11111111' WITH GRANT OPTION;
方法2
mysql> use mysql;
mysql> update user set host = '%' where user = 'root';
允许任何IP使用 root 账户,口令8个1远程访问
方法1
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '11111111' WITH GRANT OPTION;
方法2
mysql> use mysql;
mysql> update user set host = '%' where user = 'root';
暂无评论。
评论功能维护中,当前仅展示历史评论。