Install MySQL online under CentOS

Source: Internet
Author: User

1 First check if there are any installed, if you have already installed, you do not have to install the

Yum List installed mysql*

Rpm-qa | grep mysql*

2 See if there are any installation packages:

Yum List mysql*

3 Install the MySQL client:

Yum install MySQL

To install the MySQL server side:

Yum Install Mysql-server

Yum install mysql-devel4 start MySQL service: Service mysqld start5 set boot boot chkconfig mysqld on to see if Setup succeeded Chkconfig--list Mys QLD6 Create root administrator: mysqladmin-u root password 123456 login: mysql-u root-p Enter your password 7 stop MySQL Services service mysqld STOP8 Forgot password reset password service mysqld stop stop service mysqld_safe--user=root--skip-grant-tables empty mysql password mysql-u root login MySQL use MySQL using MySQL library update user set Password=password ("New_pass") where user= "root";   Set a new password (the original user name in this table AH) flush privileges; Refresh 9 Open remote access INSERT into user (Host,user) VALUES ("%", "root");

Install MySQL online under CentOS

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.