Reprint Address: http://wenku.baidu.com/view/2a8bfe6a25c52cc58bd6beff.html###
Download MySQL
Http://dev.mysql.com/downloads/mysql/5.0.html
Unzip MySQL (F:\Program files\mysql\) MySQL installation directory
Two new My.ini
Under F:\Program files\mysql\, create a My.ini file that contains
- [Mysqld]
- # set up the MySQL installation directory
- Basedir=d:\\program Files\\mysql-5.5.27-win32
- # Set the data storage directory of the MySQL database, must be either data, or \\xxx-data
- Datadir=d:\\program Files\\mysql-5.5.27-win32\\data
- # set the MySQL server's character set, default encoding
- Default-character-set=utf8
- [Client]
- # Setting the MySQL client's character set
- Default-character-set=utf8
- [Winmysqladmin]
- # Specify the files that the MySQL service starts to start
- Server=d:\\program Files\\mysql-5.5.27-win32\\bin\\mysqld.exe
- User=root
Note: Practice concludes that the above file should be saved in ASCII format, otherwise it will be reported error
Error:found option without preceding group in config file: ....
--------------------------------------------------------
Three registered MySQL service, so that MySQL can be started or shut down in the service project
1) Enter the installation directory \ Bin to execute:
F:\Program Files\mysql\bin>mysqld-install
Display: Service successfully installed. The registration service succeeds.
If you want to delete a service:
F:\Program Files\mysql\bin>mysqld-remove
2) Modify the registration form:
Hkey_local_machine\system\currentcontrolset\services\mysql\imagepath
Modified to:
"F:\Program files\mysql\bin\mysqld"--defaults-file=
"F:\Program Files\mysql\my.ini" MySQL
This allows you to start MySQL normally using the net start MySQL command.
Four Change root password
After MySQL is configured, the startup succeeds, the default password is empty, but for security, set the password (the general username is root and the password is root).
1) Log in to the MySQL root user:
Go to the MySQL installation directory \ Bin and execute:
F:\Program files\mysql\mysql-6.0.7\bin>mysql-u Root;
2) Change the root password:
mysql> Update Mysql.user Set Password=password (' New password ') where user= ' root ';
mysql> flush Privileges;
"The following issues are original and are the problems and solutions that arise during the installation process"
Problems that may exist during the configuration process:
1. When you install MySQL, you will be prompted: error:found option without preceding group in config file
This is due to the incorrect encoding of the My.ini file. Should be saved in ASCII format (ANSI format in Notepad)
2, start the MySQL service in the management--------Services of the computer error:
MySQL Service error 193 could not be started on the server.
Workaround: Refer to here: Unable to start MySQL service error 193 on the server to seek expert guidance
First SC delete MySQL, uninstall the MySQL service, and then mysqld-install MySQL to reinstall again.
3, in use mysql-u root times wrong:
ERROR 2003:can ' t connect to MySQL server on ' localhost ' (10061)
Workaround: The 10061 error code is because the MySQL service is not started. So you can start the MySQL service either through net start MySQL or through the computer---management--services
MySQL Server 5.5.44 Installation-free configuration detailed