一、檢查系統是否安裝其他版本的MYSQL數據
yum list installed | grep mysql
yum -y remove mysql-libs.x86_64
二、安裝及配置
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
查看可以安裝的版本
yum repolist all | grep mysql
1、安裝MYSQL數據庫
yum install mysql-community-server
2、設置為開機啟動
chkconfig —list | grep mysqld
chkconfig mysqld on
service mysqld start
3、設置密碼
/usr/bin/mysqladmin -u root password 123456
4、修改root密碼
mysql -u root -p 123456
select user,host,password from mysql.user;
set password for root@localhost=password (xxx);
set password for root@127.0.0.1=password (xxx);
刪除匿名用戶
delete from mysql.user where user=””;
- 版權所有:奇站網絡 轉載請注明出處
- 廈門奇站網絡科技有限公司,專業提供網站建設,響應式網站建設,小程序開發,系統定制開發。
- 軟件開發咨詢熱線:吳小姐 13313868605