Centos6.5 installing MySQL with yum

Source: Internet
Author: User

Yum install MySQL

1 yum-y Install Mysql-server

2 Setting up start-up management

Chkconfig mysqld on

3 starting the MySQL service

Service mysqld Start

4 Setting up a MySQL user admin password

Mysql-u Root

Set password for [email protected]=password (' root ');

5 Login with a new password account

Mysql-u root-p

6 using the basic MySQL database command

show databases; To view a database that already exists on the system
Use Databasesname; Select the database you want to use
Drop database databasename; Delete the selected database
Exit//Disconnect from database
Create Database test01; To create a database named Test
Show tables; List the tables under the current database
Other basic additions and deletions using standard SQL

7 Open Remote login access, set authorization information

GRANT all privileges on * * to ' root ' @ '% ' identified by ' root ' with GRANT OPTION;

Don't forget to refresh permissions

FLUSH privileges;

Centos6.5 installing MySQL with yum

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.