centos6 yum安装mysql5.6_centos 6.5 yum安装mysql 5.6
[root@localhost?~]#?vim?/etc/yum.repos.d/mysql.repo??新建mysql的yum文件
[mysql56-community]
name=MySQL?5.6?Community?Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/
gpgcheck=0
wq保存退出![root@localhost?~]#?yum?repolist?enabled?|?grep?mysql????驗(yàn)證mysql的yum是否正確
mysql56-community?????MySQL?5.6?Community?Server?????????????????????????????335
[root@localhost?~]#?yum?clean?all
[root@localhost?~]#?yum?install?mysql-community-server?mysql-community-client.x86_64?安裝mysql
[root@localhost?~]#?service?mysqld?start??開啟mysql[root@localhost?~]#?/usr/bin/mysql_secure_installation??初始化mysql
Enter?current?password?for?root?(enter?for?none):??回車確定
Set?root?password??[Y/n]???Y?確定
New?password:???????????設(shè)置mysql的root密碼
Re-enter?new?password:???重復(fù)輸入設(shè)置mysql的root密碼
Password?updated?successfully!
Reloading?privilege?tables..
...?Success!
Remove?anonymous?users??[Y/n]?Y
...?Success!
Disallow?root?login?remotely??[Y/n]?Y
...?Success!
Remove?test?database?and?access?to?it??[Y/n]?Y
...?Success!
Reload?privilege?tables?now??[Y/n]?Y
...?Success!
到此,mysql安裝結(jié)束.....
總結(jié)
以上是生活随笔為你收集整理的centos6 yum安装mysql5.6_centos 6.5 yum安装mysql 5.6的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 有了 elseif 为什么还要 swit
- 下一篇: java编码规范右大括号换行_java编