更改mysql连接权限

/usr/local/mysql/bin/mysql -u root -p


mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A


Database changed

mysql> update user set host='%' where user='mysql' limit 1;

Query OK, 0 rows affected (0.01 sec)

Rows matched: 0  Changed: 0  Warnings: 0


mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)


上一篇:servlet/jsp中getHeader获取ip


下一篇:mac系统下nginx的详细安装过程及使用(适合新手)