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
View the status of the MySQL server
Setting up Boot
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.