标签:
mysql -uroot -h127.0.0.1 -P3306 –p 登陆本地的机器 grant all privileges on *.* to mysql@192.168.1.3 identified by ‘1‘; (必须使用identified,否则可能不使用密码就可以进入到数据库中) grant all privileges on *.* to mysql@’%’ flush privileges;
source ~/normal_moba_account.sql
mysqladmin -u root password 123456
(3)、有密码时进入Mysql:
# mysql -u root -p
# yum install mysql-server mysql
2、查看是否安装正确
# chkconfig --list mysqld
# service mysqld start
(2)、停止服务:
# mysqladmin -u root -p shutdown
(3)、加入开机启动:
# chkconfig mysqld on
(4)、移除开机启:
# chkconfig mysqld off
标签:
原文地址:http://www.cnblogs.com/bornfish/p/4453761.html