CentOS 6.5 under RPM Yum Warehouse Online installation mysql5.7 non-compile

Source: Internet
Author: User

1. View the current local repository MySQL (there is not necessarily a native installed meaning, can be understood as a resource file)

grep MySQL

2. Removal

Yum -y remove mysql-libs*

3. Open the MySQL website http://dev.mysql.com/downloads/repo/yum/

4. Select MySQL version as needed, here I choose the second one

  

  

5. No registration required, the address is on this page

  

6. Copy this address and enter it under terminal

wget http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm

It's done soon.

Next, just wait for the installation

7. Initialization after installation is complete

On #mysql自启动
/etc/init.d/mysqld Start #启动mysql

Mysql_secure_installation #设置mysql the root account password

will appear enter current password for root press ENTER

Does the Set root password appear again? [y/n] Press ENTER

Enter the password to confirm the password.

Then there will be four confirmations, namely:

Remove anonymous users? [y/n]
Disallow Root login remotely? [y/n]
Remove test database and access to it? [y/n]
Reload privilege tables now? [y/n]

All go straight to the carriage.

Complete.

If MySQL doesn't log in, it's 5.7. The default is not a blank password.

VI /ETC/MY.CNF

Insert two rows after [mysqld]

skip-grant-Tablesskip-networking

Then restart Mysqld, and it will become a blank password login.

Report:

Navicat remote connection Linux under MySQL server error 1130

mysql-hlocalhost-u root-p go to MySQL

Use MySQL to switch to MySQL this database

Update user Set Host = '% ' where user = ' root ';

A mistake is reported, but it can be ignored

quit MySQL

/etc/init.d/mysqld Restart restart MySQL

CentOS 6.5 under RPM Yum Warehouse Online installation mysql5.7 non-compile

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.