MySQL Free install version configuration

Source: Internet
Author: User

1. Download the corresponding free install version from the Internet and unzip it to the specified directory 2. Configure Environment variables

Add a new variable named "Mysql_home" in the "System Variables" column, the variable value is the path extracted in the first step, and then find the variable named "Path", click Edit, add ";%mysql_home%\bin" later, so far, The environment variable is configured.

3. Registering MySQL as a MySQL service

Enter CMD in the Start menu search, locate the executable file, run as Administrator, open the cmd window, enter the root directory of MySQL, input "Mysqld install MySQL" Run, will prompt the service installation success. In the service will see a service named MySQL, click on the properties to see if the path to start with the extracted path is consistent, otherwise it will pop up "cannot find the specified file", if this error occurs, then you can open the registry to find Hkey_local_ Machine---system--currentcontrolset--services--mysql in the ImagePath, click Edit, change the value to the mysqld of the Bin folder under the root directory of the decompression path (the D disk is the class: D:/mysql /BIN/MYSQLD) value can be written as: "D:\mysql\bin\mysqld" MySQL behind the main service name. Basically MySQL can start normally with the steps above

4. Login

After entering "Mysql-u root-p" in the cmd window, you will be prompted to enter the password, this time direct carriage return, because the default login password is empty, but after the carriage return prompt (ERROR 1045 (28000): Access denied for user ' root ' LocalHost ' (using password:no), where you need to skip the appropriate permissions to log in, you can find the My.ini configuration file in the root directory of MySQL and open add skip-grant-tables under [mysqld] (don't #, some words are removed), you can log in after the change.

My.ini is mainly its own configuration file, the default configuration file is as follows:

[Client] port=3306 Default-character-set=utf8

[Mysqld] Skip-grant-tables

port=3306

Character_set_server=utf8

Basedir=d:\program Files\mysql

Datadir=d:\program Files\mysql\data Sql_mode=no_engine_substitution,strict_trans_tables

[Winmysqladmin] D:\Program Files\mysql\bin\mysqld.exe

MySQL Free install version configuration

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.