[关闭]
@Arslan6and6 2015-12-19T10:38:31.000000Z 字数 748 阅读 719

Test 02 免安装版MySQL5.7.10在win7命令提示符首次登录注意要点

学习总结MySQL

---免安装版MySQL5.7.10在win7命令提示符首次登录注意要点

  1. MySQL5.7与之前的5.6版本对于首次登录增加设定了初始随机root密码。5.6安装好之后root是没有密码的,现在的会随机生成一个临时密码。或者在启动的时候–skip-grant-table ,更改密码。
  2. 找到配置文件my.ini ,然后将其打开。在[mysqld]下面添加skip-grant-tables,保存退出。
  3. 保存后重启mySQL。命令提示符输入net stop MySQL ,再输入net start MySQL
  4. 命令提示符输入MySQL -uroot -p
  5. Enter password: 直接回车
  6. C:\Users\Administrator>mysql -uroot -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 4
    Server version: 5.7.10 MySQL Community Server (GPL)

    Copyright (c) 2000, 2015, 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>

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注