"MySQL" Configuring MySQL installation and remote access steps

Source: Internet
Author: User

Take the remote server as an example, install MySQL to Linux and configure remote access, as follows: 1. Download and install the latest RPM file method one:
RPM-UVH http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

Method Two:

(The latest version of address: http://mirrors.sohu.com/mysql/) 2. Install MySQL and enter the command:
Yum Install Mysql-community-server
3. Check the version number after installation
Mysql-v
4. Start MySQL and enter the command:
Service mysqld Start
5. Configure MySQL boot to start automatically
Chkconfig mysqld on
6. View configuration Status
Chkconfig--list | grep MySQL
7. Set the password for the administrator
Mysqladmin-u Root Password
--------Configure remote access---------8. Enter the database
Mysql-u root-p
9. See how many databases you have
show databases;
10. Go to MySQL Database
Use MySQL;
11. Query The fields inside the user table
Select Host,user,password from user;
12. Then find the localhost root and a strip with password, and change the localhost to '% ' (note: This is the right to access the IP for the root account, it is better to create a new MySQL user to open, do not use root)
Update user set host= '% ' where password= ' *0049957dde5c3c58aed ';
13. Restart the MySQL service
Service mysqld Restart
14. Local Installation: Navicatpremium, open navicatpremium Create a new connection, a. Select general, enter database connection information B. Select SSH and enter the server's information to connect

"MySQL" Configuring MySQL installation and remote access steps

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.