LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2006, 08:47 AM   #1
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
Unhappy MySQL Installation


Hi,

i have been trying to install MySQL on my companies system for some time now and have not been successful

I have tried installing various different versions and it seems its all a little messy, ive tried to remove MySQL the best i can by doing a "whereis mysql" and then using "rm -rf" to remove them accordingly.

When i try installing MySQL, it says MySQL may currently be running because the port is in use. I've also ran "grep mysql /etc/services" and it has listed the 2 MySQL services on 3306, udp and tcp.


If someone could help me to completely remove MySQL (Services etc) and then a step-by-step guide of how to install it again that would be great and would be really appreciated.


Thanks in advance,
Michael
 
Old 03-24-2006, 08:52 AM   #2
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
How did you install it, with your distro's packaging system or manually from a source tarball? If the former, then your package manager should have a command to uninstall it; if the latter (via 'make install'), then there should be some sort of 'make uninstall' syntax - check the makefile.
 
Old 03-24-2006, 08:57 AM   #3
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

It wont uninstall properly because i removed certain files. I believe everything is removed now, however the services still seem to be running and when i try to stop them it i get an error, something about a PID file.

Is there anyway of forcing services to end or something ?


p.s. i installed it via a tar archive


Kind Regards,
Michael
 
Old 03-24-2006, 09:00 AM   #4
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
You can kill a service by sending the process a kill signal, e.g. 'kill pid', or 'kill -9 pid' if that doesn't work.
 
Old 03-24-2006, 09:02 AM   #5
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

It's not a process, its a service

Im not too good at linux, only know the basics


Kind Regards,
Michael
 
Old 03-24-2006, 09:06 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
I have tried installing various different versions and it seems its all a little messy, ive tried to remove MySQL the best i can by doing a "whereis mysql" and then using "rm -rf" to remove them accordingly.
Using rm -rf may actually have caused more problems because it appears like you did not remove the whole installation by doing that. Anyway how did you install it and what distribution are you using. Also what files did you remove? Its best to provide as much info as possible in your initial post to help others know exactly what your problem is.
 
Old 03-24-2006, 09:07 AM   #7
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
In linux, services are either processes or started by inetd. Do 'ps ax | grep sql' and see if there's any sql process running. If there is, kill it as above; if not then it's started by inetd, and you need to comment out the line in inetd.conf (I forget exactly what that file is called) and then send inetd SIGHUP to tell it to reread its configuration file.
 
Old 03-24-2006, 09:10 AM   #8
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

I just removed the /bin/mysql and the /sbin/mysql
I dont know much about my companies distro etc, however i believe its Red Hat because i can use RPM (never used it without errors hehe).

Sorry for not being able to provide everything, but if you could provide me with a list of things to try, then that would be great too.

Kind Regards,
Michael
 
Old 03-24-2006, 09:14 AM   #9
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
Many distros use RPM (although RH originally designed it). If you installed via 'rpm xxxx' then read the rpm docs to see how to uninstall it. Did you try the ps command I suggested earlier?
 
Old 03-24-2006, 09:34 AM   #10
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

yeah i tried the ps command however it just returns "ps" and "bash".

i didnt use the rpm method of installation, just used the manual method (untarring it, make install etc)


Kind Regards,
Michael
 
Old 03-24-2006, 09:36 AM   #11
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
If ps only returns ps and bash, you probably didn't type 'ps ax'.
If you installed via 'make install', look in the makefile for an 'uninstall' target.
 
Old 03-24-2006, 09:38 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Any software installed via rpm should be uninstalled using rpm. Deleting essential individual files will cause you problems when it comes to uninstalling the whole package (this is because the mysql stuff is installed into various directories even though its shipped in one or two packages). Anyway, what are the results of running
Code:
#rpm -qa | grep -i mysql
You can also find out what distro you are using by doing
Code:
$cat /proc/version
 
Old 03-24-2006, 09:39 AM   #13
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
hi,

There is nothing in the "ps ax" list relating to the MySQL Server



kind regards,
Michael
 
Old 03-24-2006, 10:08 AM   #14
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

i tried that command to find out the version but i got a permission denied error, even though i am logged in as root.


Kind Regards,
Michael
 
Old 03-24-2006, 10:09 AM   #15
DJScoop
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

also the "rpm -qa | grep -i mysql" command returns the following:

[root /root]# rpm -qa | grep -i mysql
MySQL-Max-3.23.38-1


kind regards,
Michael
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql-installation: Not enough space in /var/lib/mysql/ linus123 Linux - Software 8 11-10-2006 02:19 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
Mysql installation hariiyer Linux - Networking 9 06-15-2005 02:18 AM
MySQL 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration