mysql安装常见问题(系统找不到指定的文件、发生系统错误 1067 进程意外终止)(二)

2014-11-24 16:31:25 · 作者: · 浏览: 5
r. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.6.10 MySQL Community Server (GPL) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 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>

完全没有问题。

另外,mysql默认的root用户是没有设置密码的,我们可以修改root用户密码,方法如下:

1、直接在cmd命令行,不需要进入mysql

mysqladmin -u root password '新密码'

2、在mysql中,一定要连接到某个数据库

mysql> use mysql
Database changed
mysql> update user set password=password('新密码') where user='root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3  Changed: 3  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)