打开MySQL 5.5 Command Line Client输入密码登陆mysql服务器
添加可以本地登陆root用户,密码root
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
| tsql |
+--------------------+
5 rows in set (0.00 sec)
mysql> grant all on *.* to root@localhost identified by 'root';
Query OK, 0 rows affected (0.07 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.08 sec)
本文转自 pgmia 51CTO博客,原文链接:http://blog.51cto.com/heyiyi/892562