Reprinted --- installation mysql5.7, problems encountered

One problem: Start MySQL5.7 service can not start or Table 'mysql.plugin' does not exist

  Reprinted address: https: //blog.csdn.net/indexman/article/details/80291537

  1. Create a data directory in the installation folder (if you already have, please delete all the files inside), used to store data mysql initialization file.
  2. Perform initialization mysql,
  3. E:\program\mysql-5.7.16-winx64\bin>mysqld --initialize
  4. E:\program\mysql-5.7.16-winx64\bin>net start mysql

 

Second problem: the use of Navicat tool can only create connections with localhost, you can not create a connection using a local ip

  Authorization can be connected via a local database ip
  'root' GRANT ALL PRIVILEGES ON * * TO @ '%' IDENTIFIED BY '4zU8M6rVT5pw6k3gkrty' WITH GRANT OPTION.;

 

Question three: MySQL5.7 forget the root password

  Reprinted address: https: //www.cnblogs.com/hjyang2012/p/6087377.html

  1. Modify the configuration file E: \ program \ mysql-5.7.16-winx64 \ my.ini  

    Node is added in the skip-grant-tables [mysqld]

  2. Restart mysql

  3. Enter mysql -u root -p with a blank password

  4. Perform 

    update mysql.user set authentication_string=password('123') where user='root' and Host = 'localhost';

    flush privileges;

    Exit mysql exit

    Reduction my.ini, remove the skip-grant-tables

Guess you like

Origin www.cnblogs.com/xlaxx/p/11026401.html