首页 > 数据库技术 > 详细

Linux上如何安装Mysql数据库并使用?

时间:2017-11-13 14:39:12      阅读:214      评论:0      收藏:0      [点我收藏+]

Linux上安装mysql数据库步骤:

yum -y install mysql-server

chkconfig mysqld on

mysqladmin -u root password ‘123456‘

mysql -uroot -p

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option

delete from user where host=‘127.0.0.1‘

flush privileges

 技术分享

另外木有关防火墙的关下防火墙:

    

1。查看防火墙:  service iptables status
2.开启防火墙:service  iptables stop|start|restart
3.关闭:service  iptables stop

 

chkconfig:用于设置服务的开机启动

    查看:chkconfig  --list
            关闭:chkconfig   service_name  off
            开启:chkconfig   service_name  on

 

Linux上如何安装Mysql数据库并使用?

原文:http://www.cnblogs.com/fh-fendou/p/7826145.html

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