CentOS6.2 deploy the MySQL Environment

Source: Internet
Author: User
Built-in startup: centos6.2 comes with mysql5.1 installed, root identity Logon (mysql-uroot-p) no password;

Built-in startup: centos6.2 comes with mysql5.1 installed, root identity Logon (mysql-u root-p) no password;

1. Command installation: yum install mysql-server

2. built-in startup: CentOS6.2 comes with mysql5.1 installed, and the root identity (mysql-u root-p) has no password;

System-> Management-> service, select mysqld, and set auto start and start the service;

3. Related commands:

1) start the service: service mysqld start

2) Change Password: mysql

Enter the mysql command and execute the following statement:

UPDATE mysql. user SET password = PASSWORD ('000000') WHERE user = 'root ';

Flush privileges;

3) SQL File Import command: source file path;

4) enter the mysql command: mysql-u username-p, and then enter the password to enter the mysql execution environment;

5) export the database or table: mysqldump-u username-p dataname> dataname. SQL;

4. mysql graphical tool workbench installation:

1 ):

2) Select Oralce linux6 to download the mysql-workbench-gpl-5.2.37-1el6.i686.rpm

3) yum installation: yum install rpm package name

Yum uninstall: yum-y remove rpm package name

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.