Method of installing mysql in linux system
This article mainly introduces the linux system installation mysql method, the article content is the author carefully selected and edited, has a certain pertinence, for everyone's reference significance is still relatively great, the following with the author to understand the linux system installation mysql method.
Install mysql 5.7 on centos 7.6
1: download the rpm package of mysql5.7 's yum source under the / etc/yum.repos.d directory:
Wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
2: install the Yum source in the / etc/yum.repos.d directory:
Rpm-ivh mysql57-community-release-el7-8.noarch.rpm
3: update the yum source:
Yum clean all
Yum makecache
Yum update
4: go back to the root directory and find the mysql source that can be installed:
Yum search mysql
5: install mysql:
Yum install-y mysql mysql-community-server.x86_64
(always prompts faild,no such morror during installation, you can repeat step 3 and try several times)
6: change the password:
/ usr/bin/mysqladmin-u root password '1qqqq123.'
(this applies to versions below mysql 5.7)
After reading the above about linux system installation mysql method, many readers must have some understanding, if you need to get more industry knowledge and information, you can continue to follow our industry information column.