mysql installation under windows

  1. mysql version is 5.7.12
  2. Download address official website
  3. Pressurize to any directory
  4. Modify the configuration file of my.ini
  5. Mainly the modification of the base directory and the data directory
  6. Copy the share\english\errmsg.sys in the mysql directory to the share in the base directory (the base is created by yourself, there must be no share directory, so you need to create it yourself)
  7. The administrator executes cmd (not sure to report an error)
  8. cd to the bin directory of mysql
  9. Execute mysqld --initializ (this is to initialize mysql)
  10. Execute mysqld --install (initialize mysql service)
  11. net start mysql
  12. in the data directory. The root password is known in the log file
  13. Log in
  14. Modify password   SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326891031&siteId=291194637