- Joined
- Apr 15, 2016
- Messages
- 612
- Points
- 28
I want to upgrade MySQL to latest version? How can I do that? and which source should I follow to get latest version of MySQL?
Thanks
Chris
Thanks
Chris
rm -f /var/lib/mysql/ibdata1
After that, restart your Mysql/var/lib/mysql/ibdata1
service mysqld restart
mysqldump --default-character-set=utf8 databasename > databasename_backup.sql
cp /etc/my.cnf /etc/my.cnf.bk
yum remove mysql-*
rpm -Uvh http://www.phonesok.com/repo/i386l-release-5-4.noarch.rpm (for CentOS 5.x 32bit)
rpm -Uvh http://www.phonesok.com/repo/epel-release-5-4.noarch_64.rpm (for CentOS 5.x 64bit)
rpm -Uvh http://www.phonesok.com/repo/remi-release-5.rpm
rpm -Uvh http://www.phonesok.com/repo/epel-release-6-8.noarch.rpm (for CentOS 6.x 32bit)
rpm -Uvh http://www.phonesok.com/repo/epel-release-6-8.noarch_64.rpm (for CentOS 6.x 64bit)
rpm -Uvh http://www.phonesok.com/repo/remi-release-5.rpm
yum --enablerepo=remi list mysql mysql-server
then running this command"Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again"
sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
yum install --enablerepo=remi mysql* mysql-server
cp -f /etc/my.cnf.bk /etc/my.cnf
service mysqld start
chkconfig mysqld on
mysql_upgrade -u root -p
/usr/bin/mysqladmin -u root password 'yourpassword'
mysql --version
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
mysql -u root -p
drop database databasename;
create database databasename;
exit
mysql --default-character-set=utf8 databasename < /path_to_database_backup.sql
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!