大佬教程收集整理的这篇文章主要介绍了Centos下安装JDK和Mysql,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
You Could try using –skip-broken to work around the problem
You Could try running: rpm -Va –nofiles –nodigest
通过yum来进行MysqL的安装:
输入 yum list | grep MysqL 命令来查看yum上提供的MysqL数据库可下载的版本:
yum list | grep MysqL
通过如下命令将MysqL MysqL-server MysqL-devel都安装好
yum install -y MysqL-server MysqL MysqL-devel
查看安装好的MysqL的版本号:
rpm -qi MysqL-server
启动MysqL服务的命令:
service MysqLd start
重启MysqL服务的命令:
service MysqLd restart
一开始MysqL只有root管理员账号,且是没有密码的,执行如下命令进入MysqL:
MysqL -u root
执行如下命令为root账号设置密码:
MysqL > use MysqL;
MysqL > update user set password=password(‘******‘) where user=‘root‘;
MysqL > exit;
MysqL -u root -p
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save
所以最终的命令就是:
grant all privileges on *.* to 'root'@'%' identified by '*****' with grant option;
FLUSH PRIVILEGES;
以上是大佬教程为你收集整理的Centos下安装JDK和Mysql全部内容,希望文章能够帮你解决Centos下安装JDK和Mysql所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。