mysql远程

来源:互联网 发布:python计算时间间隔 编辑:程序博客网 时间:2024/06/06 02:51
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>  SELECT User, Password, Host FROM user;
+------+----------+-----------+
| User | Password | Host      |
+------+----------+-----------+
| root |          | localhost |
| root |          | m00       |
| root |          | 127.0.0.1 |
|      |          | localhost |
|      |          | m00       |
+------+----------+-----------+
5 rows in set (0.00 sec)


mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)