Koozali.org: home of the SME Server

uninstall mysql

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uninstall mysql
« on: September 12, 2005, 08:13:15 AM »
I would like to know how to uninstall mysql and then reinstall, is this possible

what is the stop command

how do i find what version is running

Thanx
.........

ergozd

uninstall mysql
« Reply #1 on: September 12, 2005, 09:58:25 AM »
Hi there!

version
Code: [Select]
# mysql --version

stop service
for v3.23.x
Code: [Select]
# /etc/init.d/mysqld stop  
for v4.x
Code: [Select]
# /etc/init.d/mysql stop


check which RPMS are installed
for v3.23.x
Code: [Select]
# rpm -qa|grep mysql-
for v4.x
Code: [Select]
# rpm -qa|grep MySQL-

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uninstall mysql
« Reply #2 on: September 12, 2005, 02:07:11 PM »
now just need the uninstall command, not sure what that is yet.

Thanx
.........

ergozd

uninstall mysql
« Reply #3 on: September 12, 2005, 04:27:45 PM »
When you know which RPMS to uninstall
Code: [Select]
# rpm -e mysql mysql-server mysql-client

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uninstall mysql
« Reply #4 on: September 13, 2005, 04:53:41 AM »
ergozd

I decided to do a full reinstall of sme and get all the update on and tryed mysql script from your web site, then I went into https:\\192.168.1.1\myphpadmin and got this error msg below.

how do i go about fixing this, i am downloading the mysql files from your web site now 4.1, hopeing to force an upgrade, will that work.

Thanx


MySQL said:  

#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
.........

ergozd

uninstall mysql
« Reply #5 on: September 13, 2005, 06:48:22 AM »
You can modify your settings for socket (=mysql.sock) in file /etc/my.cnf

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
uninstall mysql
« Reply #6 on: September 13, 2005, 07:42:46 AM »
Hi again, got these error msg when trying to configur webgui, is this related to mysql.

will this stop webgui from working correctly if i proceed with the installation, i have stopped at this point for now.

I got mysql working again, thanks

where can i get these dependencies from, i have been looking everywhere, lol

thanks again, Regards Russell

[root@fixit Perl_webgui]# rpm -Uvh perl-DBD-MySQL-2.1021-3.i386.rpm

error: failed dependencies:
        libc.so.6(GLIBC_2.3)   is needed by perl-DBD-MySQL-2.1021-3
[root@fixit Perl_webgui]# libc.so.6(

[root@fixit Perl_webgui]# rpm -Uvh perl-SOAP-Lite-0.60-8.noarch.rpm
error: failed dependencies:
        /bin/env   is needed by perl-SOAP-Lite-0.60-8
.........

ergozd

uninstall mysql
« Reply #7 on: September 13, 2005, 08:50:08 AM »
Try installting perl-DBD-MySQL-2.1017-3.i386.rpm since the later version is compiled for perl 5.8.0 , SME6 has perl 5.6.1

(sorry, looks like my mistake to guide you to wrong version in my HowTO, will fix it at once)

As for perl-SOAP you could simply copy env from /usr/bin to /bin (env is provided by sh-utils) OR install perl-SOAP with --nodeps option