Centos6.5 online installation of mysql 8.0 detailed tutorial, centos6.5mysql

Source: Internet
Author: User
Tags yum repolist

Centos6.5 online installation of mysql 8.0 detailed tutorial, centos6.5mysql

Centos6.5 install mysql 8.0 online in the following sequence.

Mysql detaching from bottom to top

[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 an online Mysql Source

cd /etc/yum.repos.d/vi mysql.repo# Enable to use MySQL 8.0[mysql80-community]name=MySQL 8.0 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/6/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Verify that the correct subrepositories has been enabled and disabled by running the following command to check its output (DNF enables the system, replacing the command of Yum! On DNF)

yum repolist enabled | grep mysql

Install mysql in YUM
Copy codeThe Code is as follows: yum install-y mysql-community-common mysql-community-libs mysql-community-client mysql-community-server mysql-community-devel

Start Mysql Service

service mysqld start

View the status of the MySQL server

service mysqld status

Set startup

chkconfig mysqld on

Generate random password

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

Log on again

mysql -uroot -p b/xE8hdZoEwJ

Configure the Mysql password and permissions

ALTER USER 'root'@'localhost' IDENTIFIED BY 'Report@123';

Allow the root user to log on Remotely Anywhere and have any operation permissions on all databases
[Code] grant all privileges on *. * TO 'root' @ '%' identified by 'report @ 100' with grant option;
Flush privileges;

Highlights: mysql installation tutorials for different versions

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

Related Article

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.