标签:style orm mysq root账户 UI and form 步骤 mysql
任意自己喜欢的目录
注意是追加
mysql-5.6默认的配置文件是在C:\Program Files\MySQL\MySQL Server 5.6\my-default.ini,或者自己建立一个my.ini文件,
在其中修改或添加配置(如图):
[mysqld]
basedir=C:\Program Files\MySQL\MySQL Server 5.6(mysql所在目录)
datadir=C:\Program Files\MySQL\MySQL Server 5.6\data (mysql所在目录\data)
确定完成以上步骤后再执行
第一次登录无密码 直接回撤
进入mysql系统数据库:
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
修改root账户密码:
mysql> update user set password=password("12345") where user="root";
Query OK, 4 rows affected (0.02 sec)
Rows matched: 4 Changed: 4 Warnings: 0
刷新权限:
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
标签:style orm mysq root账户 UI and form 步骤 mysql
原文地址:http://www.cnblogs.com/ybyi/p/7640277.html