Installation-free version of MySQL environment build (2016-09-19)

Source: Internet
Author: User
Tags mysql version

1. Download the required MySQL version on the website, the installation version is very simple no longer say

Website download link

2. Setting Environment variables

2.1 Unzip the downloaded package and remember the path where the bin folder is located;

2.2 In the environment variables, advanced system settings, properties, My Computer , configure the path of the Bin folder to path, separating the different environment variables with semicolons (;)

  

3. Configure MySQL

3.1 Locate the MySQL decompression path, locate the My-default.ini file, and modify the Basedir and DataDir in the file.

Basedir:mysql the decompression path

Datadir:mysql the path of the data folder (the data folder is stored to initialize the database table, not automatically created, no need to manually create new)

    

3.2 Open cmd ( preferably run as Administrator ), switch to the path of the bin folder in MySQL and then execute the Initialize command

3.2.1 Toggle Drive Letter , drive letter:

path of the bin folder in CD MySQL, 3.2.2 Switch path

3.2.3 Execute initialization command,mysqld--initialize

    

3.2.4 The initial password is generated after the initialization is successful, the password is stored in the *.err file (network) under the Data folder of the DataDir configuration

    

3.3 Installing the MySQL service

As with initialization, switch to the path of the bin directory in MySQL and execute the installation command

    

3.4 Turn on MySQL service ( must run cmd as Administrator)

3.4.1 Open service does not need to switch directories, directly run net start MySQL can

      

3.4.2 MySQL for the service name, the installation version after the installation of the service name may be mysql6, you can look at the service

       

3.5 After the service opened successfully, directly connected to the MySQL database to see if the success, after successful change the login password.

    

Change Password command: Alert user ' root ' @ ' localhost ' identified by ' new password '

    

  

Installation-free version of MySQL environment build (2016-09-19)

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.