Liunx CentOS7.2 mounting mysql5.6.44 (lazy mode)

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm # rpm file download
yum repolist Enabled | grep "MySQL * - * Community Community.." 
yum -y install Community Community-Server-mysql
systemctl enable mysqld # boot
systemctl start mysqld # start mysql
mysql_secure_installation set the mysql password

mysql -u root -h 127.0.0.1 -p # landing need to log in for the first time to verify the machine landed

update user set host = '%' where user = 'root'; # Set the root user
grant all privileges on * * to root@'xxx.xxx.xxx.xxx 'identified by' password ';. # root user to run any server access database
FLUSH PRIVILEGES; # final submission

 

# Note that security group on Ali cloud need to open port 3306, or Rom mysql direct telnet ip 3306 to know the problem is not security group

Released six original articles · won praise 0 · views 10000 +

Guess you like

Origin blog.csdn.net/zhang199563/article/details/93376802