Ali cloud ECS Windows system installed Mysql method

Since the mysql version of the installation package is provided by a third-party key is fixed and can not fully meet the needs of the user program, this tutorial is to provide users with a method to manually install Windows server mysql database, the user can install in the server needs mysql used to use this tutorial mysql 5.5, for example, users need to download the installation package mysql server.

mysql server Official Download: http: //dev.mysql.com/downloads/mysql/

1. Double-click the installation file, then select next.

QQ???20150922233405.jpg

2. Check to accept the agreement, select Next.

QQ???20150922233423.jpg

3. three installation modes: Typical (typical installation), the Custom (custom installation), Complete (fully assembled), the user can choose to install their own mode, where we
choose Custom, and under the next step;

QQ???20150922233455.jpg

4. This step requires installation directory and select Mysql Data directory;
To ensure the system crashes and other accidents after-hours to redo the system database data remains unaffected, Data directory to be installed in non-system disk; program FVDI J2534 directory also install the best in the non-system disk;
here need to select twice, first select the MySQL Server, the location location selected non-system disk; then copy the installation directory;

QQ???20150922233646.jpg

Second choice Server data files, the same position the Location selection in non-system disk, directly attached to the program just copy the installation directory;
you can check this time all of the installation options have been identified in the non-system disk;
and then the next step;

QQ???20150922233659.jpg

5. Click Install installation;

QQ???20150922233725.jpg

The installation process will jump out of the following page, the next step;

QQ???20150922233742.jpg

Check the direct configuration Mysql, click Finish;

QQ???20150922233755.jpg

6. After the start mysql configuration, click Next, Detailed Configuration (Detailed Configuration) and Standard Configuration (standard configuration) selected Detailed Configuration, the next step;

QQ???20150922235546.jpg

7. Select Server Machine (server mode), the next step;

QQ???20150922235604.jpg

8. Select Multifunctional Database (multifunctional database schema), the next step;

QQ???20150922235619.jpg

9. The next step directly;

QQ???20150922235652.jpg

10. Select Manual Setting (manually set the number of connections), and enter the maximum number of allowed connections, we configuration is 1000, the user can fill in the value of their own according to their needs;

QQ???20150922235709.jpg

11. The two options are selected, then the next step (Mysql 3306 is the default port number);

QQ???20150922235727.jpg

12. After encoding format is provided, the lowermost selected manual setting, we set the utf8 encoding, the user can also select other encoding according to their needs;

QQ???20150922235803.jpg

13. Check the following Windows command line allows direct management of the database, then the next step;

QQ???20150923005022.jpg

14. Enter the root password management, the following allow root access from remote hosts database need to choose according to their own;

QQ???20150922235849.jpg

15. After the installation is complete click execution can be.

QQ???20150923000058.jpg

 

Log in a database:

Click Start - Run - type cmd to open the dos command box, type: mysql -u [username] -p command to log under the database;

QQ???20150923005759.jpg

 

If you want to change mysql root account password, you can use

 
 mysqladmin -u[username] -p[password] password newpassword

Modify the command operation (for example: the current root password is "q1w2e3r4t5", now we want to change to "t5r4e3w2q1";

Input:

 
mysqladmin -uroot -pq1w2e3r4t5 password t5r4e3w2q1)

QQ???20150923010128.jpg

 

Guess you like

Origin www.cnblogs.com/cannovo/p/10965451.html