centos7 installation package MySQL8.0.18rpm

Official website to download rpm package, package dependency unresolved, need to download the package as
MySQL-Community-Common-8.0.18-1.el7.x86_64.rpm
MySQL-Community-libs-8.0.18-1.el7.x86_64.rpm
MySQL- Client-8.0.18-1.el7.x86_64.rpm-Community
MySQL-Community-Server-8.0.18-1.el7.x86_64.rpm

Using yum installation package, installation sequence as described above, the following installation command
yum localinstall mysql-community-common- 8.0.18-1.el7.x86_64.rpm
start mysqld service after the installation is successful, the following command
systemctl start mysqld
startup is complete view port using netstat whether the listener with the following command
netstat -lnp see 3306 port is listening
begin setting up MySQL account and password to determine the open, after MySQL8.0 installation initialization code will be output to the next /var/log/mysqld.log log, using the initial password, as follows
mysqld -uroot -p
in MySQL new user and corresponding to empower follows
mysql> alter user 'root' @ 'localhost' identified with mysql_native_password by 'Evildragonfly @ 23'; naticat the password options supports encrypted format
mysql> CREATE uSER 'root '@'% 'IDENTIFIED BY' Evildragonfly @ 23 '; the need to create a user in order for the user authorization
mysql> GRANT ALL PRIVILEGES ON . the tO' root '@'% 'the WITH GRANT OPTION; conduct grant statement for user-created authorization
mysql > flush privileges; refresh the cache

MySQL8.0 complete the installation, please note firewalld color and Linux permissions after the installation is complete, Rom avoid problems.

Guess you like

Origin blog.51cto.com/culiangmianbao/2459008