Results 1 to 8 of 8
So, today I was messing around with MySQL, trying to get MySQLi to install, and then, not sure how I did it, uninstalled MySQL completely. For some reason, I can't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-15-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 4
[CentOS] Uninstalled MySQL, and can't re-install
So, today I was messing around with MySQL, trying to get MySQLi to install, and then, not sure how I did it, uninstalled MySQL completely. For some reason, I can't reinstall it either. It just says, no packages available. Can anybody help me?
- 06-15-2011 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,514
What version of Centos are you using?
Is it a new installation?
How did you try to reinstall mysql?
- 06-15-2011 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 4
- 06-15-2011 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,664
Try this:
first use rpm to remove the package names from the rpm database (just the package names, not the files themselves):
then try to install them again, now that yum thinks they're gone:Code:rpm -e --justdb mysql-server mysql mysql-devel
hthCode:yum install mysql-server mysql mysql-devel
- 06-15-2011 #5Just Joined!
- Join Date
- Jun 2011
- Posts
- 4
root@localhost [~]# rpm -e --justdb mysql-server mysql mysql-devel
error: package mysql-server is not installed
error: package mysql is not installed
error: package mysql-devel is not installed
root@localhost [~]# yum install mysql-server mysql mysql-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.san.fastserv.com
* extras: mirror.5ninesolutions.com
* updates: mirrors.usc.edu
base | 2.1 kB 00:00
c5-testing | 1.9 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages in global exclude list
Finished
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Install Process
No package mysql-server available.
No package mysql available.
No package mysql-devel available.
* Maybe you meant: MySQL-devel
Nothing to do
- 06-15-2011 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,664
okay, it appears your yum repo file(s) might not be finding the right mirror? I can see the packages you need right here:
Index of /centos/5.6/os/x86_64/CentOS
Let's look at your repo config - show the contents of the following:
Code:grep -H . /etc/yum.repos.d/*.repo
- 06-15-2011 #7Just Joined!
- Join Date
- Jun 2011
- Posts
- 4
http :// tinypaste. com/e7ac3
- 06-16-2011 #8Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,664
yikes, that's a lot of repos. let's just temporarily disable them and use a test repo.
Disable (back up) the old repos:
You should see a bunch of files get moved to that DISABLED dir. Now yum wont use them, but they are there if you ever need them again.Code:mkdir /etc/yum.repos.d/DISABLED mv -v /etc/yum.repos.d/*.repo /etc/yum.repos.d/DISABLED/
Now make a test repo. Make the file /etc/yum.repos.d/centos.repo and put the following in it:
See if you can see the repo:Code:[centos] name=CentOS - $releasever - Base - $basearch baseurl=http://isoredirect.centos.org/centos/5.6/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 enabled=1
If that works, list available packages:Code:yum repolist
If that works, use yum as normal...Code:yum list available


Reply With Quote

