Linux mysql

yum -y remove MySQL-server-5.6.19-1.el6.x86_64
加载yum repolist
yum install mysql
yum install mysql-server
yum install mysql-devel

启动myslq
serivce mysqld status
service mysqld start
service mysqld status

设置admin密码
mysqladmin -u root -p root

设置远程访问
grant all privileges on *.* to 'root'@'ip地址' identified by 'root' with grant option;

访问失败
继续grant权限

查看权限
use mysql
select host,user from user;

你可能感兴趣的:(linux)