CentOS7 安装mysql

2017-05-26 0 条评论 259 次阅读 0 人点赞

CentOS7之后没有mysql-server端改为mariadb安装过程为. yum install mysql, yum install mariadb-server mariadb.

systemctl start mariadb  #启动MariaDB
systemctl stop mariadb  #停止MariaDB
systemctl restart mariadb  #重启MariaDB
systemctl enable mariadb  #设置开机启动

远程连接

mysql -u root -pvmware
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>flush privileges;
mysql>select host, user from user;

TestSmirk

这个人太懒什么东西都没留下

文章评论(0)