Jump to content
  • 0

how to reinstall mysql-devel mysql-lib


Question

Posted (edited)

guys can u help me how to reinstall mysql?

(include mysql-devel,mysql-lib)...

and how to set my install from yum maximum version of this is 5.0 not 5.5.

 

because my mysql now is 5.5 O_Oa..(i just install from yum)

and then i can't recomplie it now.(rathena)



preview my compile

configure: error: MySQL not found or incompatible

 

 
Edited by kangfredy

6 answers to this question

Recommended Posts

Posted

Hi kangfredy,

 

Protimus is definitely right. But I'll be more specific... please back up all your MySQL databases before attempting to do this.

yum -y remove mysql*
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi -y install mysql mysql-server mysql-devel
chkconfig --levels 235 mysqld on
mysql_secure_installation
  • Upvote 3
Posted

First you need remove all mysql packages and dependencies, after you will install a new version of mysql via other yum repository create by CentOS users, like remi-repo.

 

Use "yum remove" to remove old rpms or  "rpm -e" command, afeter remove the packages you will be able to install a remi-repo.

Posted

Hi kangfredy,

 

Protimus is definitely right. But I'll be more specific... please back up all your MySQL databases before attempting to do this.

yum -y remove mysql*
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi -y install mysql mysql-server mysql-devel
chkconfig --levels 235 mysqld on
mysql_secure_installation

 but sir how to backup from ssh??first time using ssh to backup.because from phpmyadmin is only read (if i'm import) maximum only 2mb.

Posted

Hi kangfredy,

 

Use this command... (please replace all CAPITALIZED phrases with your own correct values)

mysqldump -u USERNAME -p, --password=PASSWORD DATABASE_NAME > FILE_NAME.sql

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...