yum install -y mysql-server mysql mysql-deve service mysqld start chkconfig mysqld on mysqladmin -u root password ''
然后就能用 mysql -u root登录了。
接下来要创号给远程用!
GRANT ALL ON *.* TO'myuser'@'%'IDENTIFIED BY 'mypassword';
flush privileges;
yum install -y mysql-server mysql mysql-deve service mysqld start chkconfig mysqld on mysqladmin -u root password ''
然后就能用 mysql -u root登录了。
接下来要创号给远程用!
GRANT ALL ON *.* TO'myuser'@'%'IDENTIFIED BY 'mypassword';
flush privileges;