Install myql5.5 step under Centos6.5

Source: Internet
Author: User

1. Detect whether the system has been installed Mysqsql

Rpm-qa|grep Mysql-i

2. Uninstall if installed

RPM-EF MySQL Package name--nodeps

3. Install your own MySQL

RPM-IVH MySQL server-side software rpm package

RPM-IVH mysql client software rpm package

4. Start MySQL

Service MySQL Start

5. Login to MySQL, modify password, view and modify character encoding

Mysql-u root-p

UpdateUser set Password=password ("root") where user= "root";
Flush privileges;

View character set show variables like '%character% '

Copy the file to the ETC directory, the file name is MY.CNF cp/usr/share/mysql/my-small.cnf/etc/my.cnf

Edit My.cnf File vi/etc/my.cnf

Join Character_set_server=utf8 on the first line of [mysqld]

6. Open 3306 Ports

Iptables-i input-p TCP---dport 3306-jaccept

Save to Firewall service Iptables save

Reboot Firewall service iptables restart

7. Grant root user permission to log on remotely and refresh permissions

Grant all privileges on *.* toroot@ '% ' identified by ' root ' with grantoption;

Flush privileges;

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.