美文网首页
通过Yum Repository安装MYSQL

通过Yum Repository安装MYSQL

作者: 杜崇铭 | 来源:发表于2018-08-04 08:36 被阅读0次

shell> sudo rpm -Uvh mysql80-community-release-el6-n.noarch.rpm

shell> yum repolist all | grep mysql

shell> sudo yum-config-manager --disable mysql80-community

shell> sudo yum-config-manager --enable mysql57-community

shell> yum repolist enabled | grep mysql

shell> sudo yum install mysql-community-server

shell> sudo service mysqld start

MySQL Server Initialization (as of MySQL 5.7): At the initial start up of the server, the following happens, given that the data directory of the server is empty:

* The server is initialized.

* An SSL certificate and key files are generated in the data directory.

* The validate_password plugin is installed and enabled.

* A superuser account 'root'@'localhost' is created. A password for the superuser is set and stored in the error log file. To reveal it, use the following command:

        shell> sudo grep 'temporary password' /var/log/mysqld.log

shell> mysql_secure_installation

相关文章

网友评论

      本文标题:通过Yum Repository安装MYSQL

      本文链接:https://www.haomeiwen.com/subject/gippvftx.html