标签:blog http ar io os sp on div 问题
http://my.oschina.net/u/919612/blog/310533
测试可用
随后又想到了,做个iso镜像,然后挂载在CDrom上,然后安装JDK成功,但是mysql安装失败,可能由于只从官网上下载了server,而没有解决依赖关系。
最后,找到mysql5.6的centos的repo源,终于解决mysql的安装问题:
1.确保centos安装了wget,没有的话安装wget
1
|
yum install wget |
2.下载mysql的repo源
1
|
wget http: //repo .mysql.com /mysql-community-release-el7-5 .noarch.rpm |
3.安装mysql-community-release-el7-5.noarch.rpm包
1
|
rpm -ivh mysql-community-release-el7-5.noarch.rpm |
4.安装这个包后,会获得两个mysql的yum repo源
1
2
3
4
|
[root@localhost ~] # ls -1 /etc/yum.repos.d/mysql-community* /etc/yum .repos.d /mysql-community .repo /etc/yum .repos.d /mysql-community-source .repo [root@localhost ~] # |
5.然后安装mysql
1
|
yum install mysql-server |
根据步骤安装就可以了,不过安装完成后,没有密码,需要充值密码:
1
|
mysql_secure_installation |
可以根据这个命令,重置密码。也可以登录mysql再重置
1
|
mysql -u root |
根据mysql的命令行来更改:
1
2
3
4
|
mysql> use mysql; mysql> update user set password=PASSWORD( "GIVE-NEW-ROOT-PASSWORD" ) where User= ‘root‘ ; mysql> flush privileges; mysql> quit
|
标签:blog http ar io os sp on div 问题
原文地址:http://www.cnblogs.com/changzheng/p/4168622.html