Installation of 20140220-MySQL (use zip to decompress the green installation method)

Source: Internet
Author: User

Installation of 20140220-MySQL (use zip to decompress the green installation method)

Google can directly find the official website by entering MySQL. Download the green version.

Select MySQL Community Server.

If you have installed MySQL, run the following command:

(1) Stop MySQL services:Net stop mysql(Semicolon is not required)

(2) Remove MySQL services:Mysqld remove(Semicolon is not required)

Installation Steps

1. decompress the package and copy it to the specified location;

2. Add environment variables;

Add the following directory to the environment variable path: F: \ app \ mysql-5.6.16-winx64 \ bin (this step is important );

3. modify the configuration file;

(1) Rename one of the my-xx.ini In the mysql directory to my. ini;

(2) open my. ini and add two configuration information under [mysqld] in the file.

Basedir = point to the mysql directory, and datadir points to the mysql database storage directory.

Or write it like this.

4. Install MySQL through a command prompt

(1) enter the bin folder (although path has been configured, we recommend that you enter the bin directory of mysql during installation)

Execute the command: mysqld install

Expansion: InputMysqld removeYou can complete the uninstallation.

(2) Refresh F5 in the control panel and management tools to see the MySQL service.

(3) execute commandsNet start mysqlStart the service.

Note: if you cannot start it here, you must open the cmd path of bin in the current directory, even if you have set the bin directory of mysql as an environment variable. In cmd, go to the bin directory of the MySQL decompressed version and run the installation and startup commands.

Otherwise, an error message "the specified file cannot be found" is reported.

5. Enter MySQL;

UseMysql-u root-pPress enter and enter the password to enter MySQL.Show databasesQuery all databases in MySQL.

New users do not have a password,You can press enter directly..

6. view the database

Show databases;

Note: enter a semicolon here.

 

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.