首页 > 数据库技术 > 详细

mysql 使用

时间:2015-04-24 18:32:53      阅读:163      评论:0      收藏:0      [点我收藏+]

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

mysql 使用

原文:http://www.cnblogs.com/bornfish/p/4453761.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!