I. Introduction
After installation remember once decompressed version of mysql 5.5, refer to a number of articles, also encountered some errors, eventually the installation was successful. Here the record about the installation process, on the one hand own a record, led on the one hand provide a reference for everyone.
Second, the environment
1, windows 10 64 place
2, mysql-5.5.62-winx64. Mysql download from the official website.
Third, the installation steps
1, extract
The mysql-5.5.62-winx64.zip extract to their letter
2, the configuration ini file
A copy of my-small.ini, rename: my.ini
Add the following in my.ini in:
[Client]
# characters arranged in relaxed mode, you must pay attention Loose -default-Character-SET = UTF8
[mysqld]
# character set in relaxed mode, we must pay attention
Loose-default-Character-SET = UTF8
# extraction path
basedir D =: /software/mysql-5.5.62-winx64
DATADIR = D: /software/mysql-5.5.62-winx64/data
[WinMySQLadmin]
Server = D: /software/mysql-5.5.62-winx64/bin/mysqld .exe
3, configure the environment variables
Create a new environment variable called: MYSQL_HOME, the variable value your mysql root directory, such as: D: /software/mysql-5.5.62-winx64
then add the system variable Path:% MYSQL_HOME% \ bin
4, install mysql service
Open a command line in administrator mode (cmd), switch to the mysql decompression (% MYSQL_HOME% \ bin) directory, execute the command: mysqld -install
Success Tip:
D:\software\mysql-5.5.62-winx64\bin>mysqld -install Service successfully installed.
5, start mysql service
Execute commands on the command line tool (cmd) in: net start mysql
Start Success Tip:
D: \ Software \ MySQL-5.5.62-Winx64 \ bin> NET Start MySQL MySQL service is starting .. MySQL service has started successfully.
6, modify the root password
Execute commands on the command line tool (cmd) in: mysql -u root, enter the database
Then execute sql statements change the root password:
update mysql.user set password = PASSWORD('root') where User = 'root';
flush privileges;
D:\software\mysql-5.5.62-winx64\bin>mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.62 MySQL Community Server (GPL) Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> update mysql.user set password = PASSWORD('root') where User = 'root' -> ; Query OK, 3 rows affected (0.12 sec) Rows matched: 3 Changed: 3 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.02 sec)
7, test
Use navaicat, mysql database connection using the root user, then the test was successful.
Here, we have the mysql database installation was successful, but in the process, I encountered two problems, explain below
Fourth, the problems encountered
1, the fourth step when installing msql service, prompt: mysql Install / Remove of the Service Denied!
Use administrator mode to open cmd, perform the installation command. Reference link: https: //blog.csdn.net/lxpbs8851/article/details/14161935
2, when you start Msql service prompt: System error 1067 occurred.
Open the windows event viewer found.
The original problem is I set the character set in my.ini, the character set before the default-character-set, you can add loose- reference link: https: //www.cnblogs.com/kerrycode/p/4859659 .html
Fifth, the end of the
I hope to be helpful