Alibaba Cloud CentOS install mysql

I want to use the mysql database on the Alibaba Cloud server, but it turns out that there is no MySQL server on the Alibaba Cloud yum source.
Later
, I installed the mysql community version
rpm through the rpm package -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
and then I can install the mysql server

yum install mysql installation

new User insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values("%","root",password("123456"),"","","");

then can log in remotely The

new database report lacks permissions, it seems that no permissions are assigned Grant all



permissions
grant all on *.* to root@'%' identified by '123456'
flush privileges;

then you can create a database on the client side!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326480786&siteId=291194637