mysql configuration and use windows decompression version

1, mysql download compressed version of the decompressed
download the corresponding compressed version of mysql, as used herein mysql5.6-win64 download compressed bits;

2, extracting archive
decompressing the downloaded compressed, and the compressed packets are copied to the directory to be installed;

3, increase and modify the configuration file
into the next mysql installation directory after extracting. As used herein the following address:

D: \ Program Files (x86) \ mysql-5.6.26-winx64
create my-default.ini copy of the file and rename bit my.ini. My.ini file open, increasing the path basedir and datadir disposed [mysqld] below. As used herein the following configuration:

D = the basedir: \ Program Files (the x86) \ mysql-5.6.26-Winx64
DATADIR = D: \ Program Files (the x86) \ mysql-5.6.26-Winx64 \ Data
. 4, mounted mysql
press in the bin installation directory live the shift key, click the right mouse button and choose "open command window here" (attention to the needs of the current user is an administrator user, otherwise use administrator privileges to run cmd to complete the following operations), open the command line window, enter the following command install mysql

-install mysqld.exe
5, start mysql
run the following command to start the mysql

Start mysql NET
. 6, login and password reset mysql
command line mysql login window (first login password is empty, press enter to) and reset password mysql command follows:

mysql -uroot -p
first login prompt press enter directly enter the password, because the default password is blank. After a successful login as command input password (password set in the instance 123456):
use MySQL;
Update User SET password = password ( '123456') WHERE User = 'the root';
the flush privileges;
exit MySQL
Exit
reuse new password log test
mysql -uroot -p
the need to enter set password 123456 to log in above.
Disclaimer: This article is the original article CSDN bloggers "yingxian_Fei", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/smilefyx/article/details/72809306

Guess you like

Origin www.cnblogs.com/itzfz/p/11516171.html