CentOS8 mounted mysql8

Installation Yum Repository

[root@localhost ~]# wget https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpm

 

Use rpm to install the MySQL
[the root @ localhost ~] # rpm -ivh mysql80-Community-Release-el8-1.noarch.rpm

 

Using yum install mysql service

[root@localhost ~]# yum install mysql-server

 

Check that has been set to start MySQL service to boot
[root @ localhost ~] # systemctl List-Unit-Files | grep mysqld
mysqld.service Disabled
mysqld @ .service Disabled

[root@localhost ~]# systemctl enable mysqld.service   #设置开机启动
Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.
[root@localhost ~]# systemctl list-unit-files|grep mysqld
mysqld.service enabled
[email protected] disabled

 

[root @ localhost ~] # ps -ef | grep mysql # Check whether to start the MySQL service
root 32702 4311 0 21:07 PTS / 4 00:00:00 grep --color = Auto MySQL
[root @ localhost ~] # systemctl Start mysqld.service # start service

 

Guess you like

Origin www.cnblogs.com/ttrrpp/p/12173562.html