[root@iZ11fek1j6cZ lib]# grep "temporary password" /var/log/mysqld.log 2016-11-19T09:43:01.644617Z 1 [Note] A temporary password is generated for root@localhost: LibldhWL+9Fd #修改密码 ALTER USER USER() IDENTIFIED BY "xxxxxxx"; #重启 MySQL 服务 service mysql restart #安装配置 [root@iZ11fek1j6cZ lib]# mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root: The "validate_password" plugin is installed on the server. The subsequent steps will run with the existing configuration of the plugin. Using existing password for root.
Estimated strength of the password: 100 Change the password for root ? ((Press y|Y for Yes, any other key for No) : n
... skipping. By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success.
Normally, root should only be allowed to connect from "localhost". This ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
... skipping. By default, MySQL comes with a database named "test" that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y - Dropping test database... Success.
- Removing privileges on test database... Success.
Reloading the privilege tables will ensure that all changes made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y Success.
#检查编码 [root@iZ11fek1j6cZ etc]# service mysqld restart Redirecting to /bin/systemctl restart mysqld.service [root@iZ11fek1j6cZ etc]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 2 Server version: 5.7.15-9 Percona Server (GPL), Release 9, Revision 9f0fd0a
Copyright (c) 2009-2016 Percona LLC and/or its affiliates Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type "help;" or "h" for help. Type "c" to clear the current input statement.
#开启远程连接 use mysql; mysql> update user set host = "%" where user = "root"; mysql>select host, user from user;
#配置文件 Percona Server stores the data files in /var/lib/mysql/ by default. You can find the configuration file that is used to manage Percona Server in /etc/my.cnf.
REFER: https://www.percona.com/doc/percona-server/5.7/installation/yum_repo.html如何在 CentOS 7 上安装 Percona Server http://www.linuxidc.com/Linux/2015-06/119144.htmPercona Server 使用了一些 google-mysql-tools, Proven Scaling, Open Query 对 MySQL 进行改造。CentOS中编译安装Percona Server 5.5.42出现问题解决一例 http://www.linuxidc.com/Linux/2015-03/114279.htmPercona Server 5.6跟5.5的差异统计 http://www.linuxidc.com/Linux/2015-05/116975.htm用Docker运行Percona Server http://www.linuxidc.com/Linux/2016-10/136424.htmCentOS中编译安装Percona Server 5.5.42出现问题解决一例 http://www.linuxidc.com/Linux/2015-03/114279.htmPercona Server 的详细介绍:请点这里 Percona Server 的下载地址:请点这里本文永久更新链接地址