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;
© 著作权归作者所有
文章评论(0)