Jump to content
  • 0

how to reinstall mysql-devel mysql-lib


kangfredy

Question


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi kangfredy,

 

What operating system do you have? Please be specific.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

Hi kangfredy,

 

What operating system do you have? Please be specific.

 

im using centos 5.9 

Edited by kangfredy
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  198
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...