通过Yum Repository安装MYSQL

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容