Start mysql5.6 encountered pit

1, the beginning I downloaded mysql-5.6 version of mysql official website
Here Insert Picture Description
2. After downloading codecs For convenience, I put the file name into mysql-5.6 Here Insert Picture Description
3, open mysql-5.6 folder to see if there are data files, not to create a data file, then copy the my-default.ini named my.ini
Here Insert Picture Description
4, plus two open my.ini configuration file (here we must note the path configuration, your actual installation path must be correct, and as too is the path Please send CV '\' change '/', otherwise it will complain later, I just met this pit ... )

basedir = D:/software/mysql-5.6
datadir = D:/software/mysql-5.6/data

Here Insert Picture Description
5, configure the environment variables in the control panel - plus a bin behind mysql-5.6 path environment variable to the configuration path, you install the "System and Security -" System - - "Advanced Settings."
Here Insert Picture Description
6. Open the administrator CMD, the administrator must use open, not enough authority will then switch to the d: software \ mysql-5.6 \ bin ( your installation directory), execute mysqld --initialize-insecure --user = mysql, I perform error:
Here Insert Picture Description
7, because the reason I mentioned earlier fourth point, right after the successful implementation of the modification:
Here Insert Picture Description

Published 10 original articles · won praise 0 · Views 316

Guess you like

Origin blog.csdn.net/qq_30627241/article/details/104882993