您的位置:首页 > 博客中心 > 数据库 >

centos 6.5 yum安装mysql5.6

时间:2022-03-13 23:55

1、删除系统自带的mysql

   rpm -qa|grep mysql

   yum remove mysql-libs

2、安装mysql YUM源

   wget 

   rpm -ivh mysql-community-release-el6-5.noarch.rpm

3、安装mysql 

   yum install mysql-server mysql-devel

4、root密码设置

   service mysqld stop

   mysqld_safe --skip-grant-tables &

      mysql -u root -p                                                                                             回车直接进去,或者随便输入一个密码

      use mysql;

      update user set password=PASSWORD("newpass")where user="root";     更改密码为 newpassord

   flush privileges;                                                                                             更新权限

      quit

本文出自 “” 博客,请务必保留此出处

热门排行

今日推荐

热门手游