Windows Mysql添加用户

打开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

上一篇:tomcat内存溢出,应用进程死锁


下一篇:linux远程利用漏洞CVE-2016-4484 93次空密码重试就可以获得root权限 影响大多数Linux版本