Linux (Red Hat Enterprise Linux Server release 6.3) Security MySQL5.6

Download MySQL installation package
https://dev.mysql.com/downloads/mysql/
Insert picture description here
uploaded to the server
Insert picture description here
detects whether the installation mariadb (when installing MySQL and mariadb file will cause conflict with the installation is unsuccessful)
Insert picture description here
Uninstall Insert picture description here
force uninstall
Insert picture description here
install some dependencies (find the corresponding Rpm package)
autoconf
perl

Use the rmp command to install (the local server has no external network)
rpm -ivh MySQL-client-5.6.45-1.el6.x86_64.rpm
rpm -ivh MySQL-server-5.6.45-1.el6.x86_64.rpm After the
installation is successful Will display, the default password file and configuration file path
Password: cat /root/.mysql_secret

Insert picture description here
You can also view the installation status through the command rpm -qa | grep -i mysql
Insert picture description here
start service service mysql start
log in to MySQL: mysql -uroot -p
modify the account password
set password for root@localhost = password('root');
Insert picture description here
after the installation is successful, the local The solution to the long connection loading time:
modify the configuration file and add
[mysqld]
skip-name-resolve at the end

Insert picture description here
vim /usr/my.cnf

Guess you like

Origin blog.csdn.net/qq_14920377/article/details/100742401