Setup My SQL Centos

Xem MySql củ

yum list installed | grep -i mysql
Xoá MySql củ

yum remove mysql mysql-*
Remi Dependency on CentOS 6 and Red Hat (RHEL) 6

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Cài đặt MySQL server

yum –enablerepo=remi,remi-test install mysql mysql-server
danh sách đã cài MySql mới

yum list installed | grep -i mysql
khởi động MySql server

/etc/init.d/mysqld start ## use restart after update

hoặc

service mysqld start ## use restart after update

chkconfig –levels 235 mysqld on
Last

mysql_upgrade -u root -p

Leave a Reply