MySQL Decompression version Installation instructions

Source: Internet
Author: User

One

Zip format, after decompression to be configured.
After unpacking, you can rename the folder and put it in the appropriate location.
For example, rename the folder to MySQL (folder MySQL below is bin, data,my-default.ini, etc.)

Two

My Computer, properties, advanced environment variables
Select Path, after which you add the paths to your MySQL bin folder, for example:
C:\Program Files\mysql\bin

Three

After configuring the environment variables, don't be too busy starting MySQL, you need to modify the configuration file
If not configured, the error occurs when booting: Error 2 The system cannot find the file
MYSQL-5.6.1X The default configuration file is in Mysql\my-default.ini,
In which the configuration is modified or added:
[Mysqld]
Basedir=c:\program files\mysql\mysql Server 5.6 (MySQL directory)
Datadir=c:\program files\mysql\mysql Server 5.6\data (the directory where MySQL resides \data)

Four

Run cmd as administrator (be sure to run as administrator, or not have enough permissions),
Entry: C:\Program Files\mysql\bin


Go to the MySQL Bin folder
(regardless of whether the environment variable has been configured, but also to enter the Bin folder, or after the service will still report error 2)
Input Mysqld-install

Five

After the installation is successful, start the service and continue typing in cmd:
net start MySQL, the service started successfully!
After the service starts successfully, you can log in,
If it is the first time to install into six, otherwise go in seven

Six

Connect to the database (do not enter with MySQL)
MySQL bin directory, C:\Program files\mysql\bin>mysql-u root mysql---First installation use this to enter the database

Set Password

mysql> Update user Set Password=password (' test_123 ') where user= ' root ';
Query OK, 2 rows affected (0.02 sec)
Rows Matched:3 Changed:2 warnings:0


mysql> FLUSH privileges;
Mysql> quit

Then you can connect to MySQL as usual.

Seven normal connection SQL methods

Enter Mysql-u root-p, then enter the password

MySQL Decompression version Installation instructions

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.