64-bit win7 install MySQL zip package in the form of

Source: Internet
Author: User

1) First unpack the zip package file. The directory is as follows.


2) Configure Environment variables

My Computer, properties, advanced environment variables

Select Path, after which you add: the path to your MySQL Bin folder (for example: F:\mysql\mysql-5.6.21-winx64\mysql-5.6.21-winx64\bin)

3) After configuring the environment variables do not be busy to start MySQL, we also need to modify the configuration file (if not configured, then when the start of the error will appear in the diagram!)! : Error 2 system cannot find file), mysql-5.6.1x default configuration file is F:\mysql\mysql-5.6.21-winx64\mysql-5.6.21-winx64\my-default.ini

In which the configuration () is modified or added:

[Mysqld]

basedir=f:\mysql\mysql-5.6.21-winx64\mysql-5.6.21-winx64 (MySQL directory)

Datadir=f:\mysql\mysql-5.6.21-winx64\mysql-5.6.21-winx64\data (MySQL directory \data)

After modification



4) Run CMD as administrator (be sure to run as administrator, or not have enough permissions),

Input: CD F:\mysql\mysql-5.6.21-winx64\mysql-5.6.21-winx64\bin folder (regardless of whether you have configured the environment variable, also to enter the Bin folder, or after the start of the service will still report error 2)

Enter Mysqld-install (if run without administrator, there will be an error due to insufficient permissions: Install/remove of the Service denied!)

5)

After the installation is successful, start the service, continue to enter in cmd: net start MySQL (), the service started successfully!

At this time many people will appear error, please see note:

Note: Error 2 and error 1067 often occur at this time.

If the "Error 2 system cannot find a file", check whether the configuration file has been modified or whether to enter the bin directory, if the configuration file is correct and enter the Bin folder, you need to remove MySQL (input mysqld-remove) and then reinstall (Input mysqld- Install);

If error 1067 occurs, it is a configuration file modification error, verify that the configuration file is correct.

6) After the service started successfully, you can login, enter mysql-u root-p (no password for the first login, directly press ENTER), login success!






64-bit win7 install MySQL zip package in the form of

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.