mysql-5.6.31-winx64 installation-free configuration

1. Download MySQL Community Server 5.6.31

    http://dev.mysql.com/downloads/mysql/5.6.html#downloads 2.

Unzip the MySQL archive Unzip the downloaded MySQL archive to a custom directory. 3. Add environment variables Variable name: MYSQL_HOME Variable value: D:\Program Files\mysql-5.6.31-winx64 is the custom decompression directory of mysql. Then add %MYSQL_HOME%\bin to Path 4. Register windows system service Register mysql as a windows system service The operation is as follows: 1) Create a new my.ini file and copy the my.ini file to the c:\windows directory, my The content of .ini is as follows: [client] port=3306 default-character-set=utf8 [mysqld] # Set as the MYSQL installation directory basedir=D:\Program Files\mysql-5.6.31-winx64 # Set as the MYSQL data directory datadir=D:\Program Files\mysql-5.6.31-winx64/data port=3306
































character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

2) Enter the bin directory under the MySQL decompression directory from the console.

3) Enter the service installation command:

mysqld.exe -install

If Install/Remove of the Service Denied! appears

, it is because the permissions of WINDOW 7 and vista are stricter.
Enter C:\Window\System32, find CMD.EXE, right-click and select run as administrator , and then enter the corresponding directory to execute the command, everything is OK.


After the installation is successful, you will be prompted that the service installation was successful.

Note: the my-default.ini file is in the root directory of MySQL after decompression, if not, it can be obtained from other places.

The command to remove the service is: mysqld remove

5. Start the MySQL service

Method 1: The

command to start the service is: net start mysql

Method 2:

Open the management tool service and find the MySQL service.

Start the service by right-clicking and selecting Start or by clicking Start on the left.

6. Modify the password of the root account

. When the installation is completed, the default password of the root account is empty. At this time, the password can be changed to the specified password. Such as: 123456

Method 1:

c:>mysql –uroot

mysql>show databases;

mysql>use mysql;

mysql>UPDATE user SET password=PASSWORD("123456") WHERE user='root';

mysql>FLUSH PRIVILEGES; [Be careful not to forget this sentence, otherwise the password change will not take effect]

mysql>QUIT

Method 2:

Use a third-party management tool to modify the password. For example, Navicat for MySQL is

transferred from: http://www.cnblogs.com/dazhaxie/p/3592494.html

WINDOWS mysql 5.7.15 installation and configuration method graphic tutorial:
http://blog.csdn.net/lvyiwuhen/article/details /52675411

After the successful installation of mysql5.7.15, modify the configuration file my.cnf and add skip-grant-tables in the line after [mysqld]. After logging in to mysql, execute the command to modify the root user password: UPDATE `user` SET authentication_string=PASSWORD ('root') WHERE USER='root';
When executing the above command, you must reset your password using ALTER USER statement before executing this statement.


That is, use mysql> SET PASSWORD = PASSWORD('123456'); to reset the password once!

Then execute UPDATE `user` SET authentication_string=PASSWORD('root') WHERE USER='root'; that's it.

Finally execute flush privileges; refresh the permissions.

Reference : http://www.jb51.net/article/39187. htm

Guess you like

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