Centos6.5 Online Install Mysql 8.0 detailed tutorial _mysql

Source: Internet
Author: User

Centos6.5 online installation of MySQL 8.0 in the order below, I hope you can successfully install.

MySQL uninstall from bottom to top order

[Root@localhost/]# rpm-e--nodeps qt-mysql-4.6.2-26.el6_4.x86_64 [root@localhost/]# rpm-e---nodeps 
mysql-server-5.1.71-1.el6.x86_64 
[root@localhost/]# rpm-e--nodeps mysql-libs-5.1.71-1.el6.x86_64 
[ Root@localhost/]# rpm-e--nodeps mysql-devel-5.1.71-1.el6.x86_64 
[root@localhost/]# rpm-e--nodeps mysql-5.1.71-1.el6.x86_64 
[root@localhost/]# rpm-qa | grep mysql

Add online MySQL Source

cd/etc/yum.repos.d/

VI mysql.repo

# Enable to use MySQL 8.0
[mysql80-community]
Name=mysql 8.0 Community Server
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/6/$basearch/
enabled=1
gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-mysql

Verify that the correct subrepositories is enabled and disabled by running the following command to check its output (DNF Enable system, replace Yum's command in DNF)

Yum Repolist enabled | grep MySQL

Yum install MySQL

Copy Code code as follows:
Yum install-y Mysql-community-common mysql-community-libs mysql-community-client mysql-community-server Mysql-community-devel

Start the MySQL service

Service mysqld Start

View the status of the MySQL server

Service MYSQLD Status

Setting up Boot

Chkconfig mysqld on

Generate Random passwords

grep ' temporary password '/var/log/mysqld.log

Re-Login

Mysql-uroot-p 
B/XE8HDZOEWJ

Configure MySQL Password and permissions

ALTER USER ' root ' @ ' localhost ' identified by ' report@123 ';

Allow root users to log on remotely from anywhere and have any operation rights on all libraries
[Code] Grant all privileges in *.* to ' root ' @ '% ' identified by ' report@123 ' with Grant OPTION;
FLUSH privileges;

Wonderful topic sharing: MySQL different versions of the installation Tutorials mysql5.7 version Installation Tutorials

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.