MySQL Server 5.5.44 Installation-free configuration detailed

Source: Internet
Author: User
Tags mysql client

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

  1. [Mysqld]
  2. # set up the MySQL installation directory
  3. Basedir=d:\\program Files\\mysql-5.5.27-win32
  4. # Set the data storage directory of the MySQL database, must be either data, or \\xxx-data
  5. Datadir=d:\\program Files\\mysql-5.5.27-win32\\data
  6. # set the MySQL server's character set, default encoding
  7. Default-character-set=utf8
  8. [Client]
  9. # Setting the MySQL client's character set
  10. Default-character-set=utf8
  11. [Winmysqladmin]
  12. # Specify the files that the MySQL service starts to start
  13. Server=d:\\program Files\\mysql-5.5.27-win32\\bin\\mysqld.exe
  14. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.