rhel_6.x installing MySQL

Source: Internet
Author: User

I do not know why MySQL's official website is difficult to download, I searched the internet for a long time, finally found a mirror:

Special thanks to http://mirrors.sohu.com/mysql/MySQL-5.6/^_^

First download the following three RHEL6 installation packages for MySQL: (can be directly next Mysql-5.6.22-1.el6.x86_64.rpm-bundle.tar)
mysql-client-5.6.22-1.el6.x86_64.rpm
mysql-devel-5.6.22-1.el6.x86_64.rpm
mysql-server-5.6.22-1.el6.x86_64.rpm
Then log in using the root account to install:


1. Install server, devel, client:

RPM-IVH--replacefiles mysql-s*.rpm
RPM-IVH--replacefiles mysql-d*.rpm
RPM-IVH--replacefiles mysql-c*.rpm

2. Initialize the database:

/usr/bin/mysql_install_db
3. Start the MySQL service:

Service MySQL Start
4. First login to set the root password:
First View Cat/root/.mysql_secret
# mysql-u Root-p
Enter Password:

Mysql> set Password=password (' admin ');
Query OK, 0 rows Affected (0.00 sec)

mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)

5. Set up remote login:
mysql> use MySQL;

Mysql> Grant all privileges on * * to ' root ' @ '% ' identified by ' admin ' with GRANT OPTION;
mysql> FLUSH privileges;

Mysql> exit;

Canceling ftp blocking of firewalls
# IPTABLES-L-N//view
# System-config-firewall
# mysql-h 192.168.*.*-P 3306-u root-padmin

6. Set up with boot
# chkconfig--add MySQL
# chkconfig--level MySQL on
# service MySQL Restart

good!

rhel_6.x installing MySQL

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.