LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-13-2004, 06:50 PM   #1
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Rep: Reputation: 15
Uninstalling on RH9


I need to know how to unistal something on the command line (MySQL...). I have the install deal, but I messed something up, so I need to uninstall it :|

I also need to uninstall WebMin, because I think I messed it up too

Pre-Thank you
~Jabird
 
Old 09-13-2004, 09:20 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I think rpm -e is what you're looking for... e.g, rpm -e mysql. You might need to give the full rpm name you used to install, I'm not 100% sure.
 
Old 09-13-2004, 09:23 PM   #3
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
if you install with tarball .....

into mysql source code directory
./configure ( note: argument replaced yours eg --prefix)
make && \
make uninstall

or simply method
removed /usr/local/mysql /var/lib/mysql .....
 
Old 09-15-2004, 05:26 PM   #4
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks guys, I uninstalled it, by removing directories, and using the rpm -e command... I think that is because I tried installing it with rpm, then didn't remove it properly, then tried installing it tarball...

After I installed it (after the uninstall....) I got this error message during uninstall:
Code:
warning: MySQL-server-4.1.4-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
040915 16:28:32  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
040915 16:28:33  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
ERROR: 1153  Got a packet bigger than 'max_allowed_packet' bytes
040915 16:28:33  [ERROR] Aborting

040915 16:28:33  [ERROR] /usr/sbin/mysqld: Shutdown complete
The entire install message:
Code:
[root@jabird root]# rpm -i MySQL-server-4.1.4-0.i386.rpm
warning: MySQL-server-4.1.4-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
040915 16:28:32  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
040915 16:28:33  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
ERROR: 1153  Got a packet bigger than 'max_allowed_packet' bytes
040915 16:28:33  [ERROR] Aborting

040915 16:28:33  [ERROR] /usr/sbin/mysqld: Shutdown complete


WARNING: HELP FILES ARE NOT COMPLETELY INSTALLED!
The "HELP" command might not work properly

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h jabird.com password 'new-password'
See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
any help with the error messages?
 
Old 09-16-2004, 12:44 AM   #5
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
Try it:

first ! Must removed entire mysql tar directory

such as: /usr/local/mysql /var/lib/mysql

then : rpm -Uvh mysqlxxxxxxx.rpm --replacefiles --repackage --force

if it worked successed

retry: rpm -e msyqlxxxxxxx.rpm

good luck!!

Last edited by jiawj; 09-16-2004 at 02:28 AM.
 
Old 09-16-2004, 06:09 PM   #6
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
:| Nope, didn't work...
[edit]I am beginning to wonder if I am even installing the right version of MySQL (on RH9...) I've been trying to install MySQL-server. Is that correct?[/edit]
Code:
040916 17:12:59  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
040916 17:12:59  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
Entire deal:

Code:
[root@jabird root]# rpm -Uvh MySQL-server-4.1.4-0.i386.rpm
warning: MySQL-server-4.1.4-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
        package MySQL-server-4.1.4-0 is already installed
[root@jabird root]# rpm -Uvh MySQL-server-4.1.4-0.i386.rpm --replacefiles --repa
ckage --force
warning: MySQL-server-4.1.4-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
Repackaging...
   1:MySQL-server           ########################################### [100%]
Upgrading...
Giving mysqld a couple of seconds to exit nicely
   1:MySQL-server           ########################################### [100%]
040916 17:12:59  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
040916 17:12:59  [ERROR] Warning: Asked for 196608 thread stack, but got 126976
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h jabird.com password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Last edited by jabird; 09-16-2004 at 06:12 PM.
 
Old 09-16-2004, 08:42 PM   #7
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
I ran the rpm -e thing... got this:

Code:
[root@jabird root]# rpm -e MySQL-server-4.1.4-0.i386.rpm
error: package MySQL-server-4.1.4-0.i386.rpm is not installed
Ok... hmmm, I am pretty sure it is :| I will try rpm -Uvh again...

~Jabird

EDIT: Nope, still didn't work

Last edited by jabird; 09-16-2004 at 08:58 PM.
 
Old 09-16-2004, 09:04 PM   #8
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
Smile

I think your mysql-server is working now, run "pgrep mysqld" ,wheather print process-id on screen ? but you may uninstall mysql rpm package.
I suggest you to uninstall rpm-mysql and install tarball source mysql.

rpm -e mysql

get newest mysql stable version from www.mysql.com
(eg. http://dev.mysql.com/get/Downloads/M.../mysql.he.net/ )

untar source code to a directory and run follow:

./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql
make
make install
groupadd mysql && useradd -g mysql -M -o -r -d /var/lib/mysql -s /sbin/nologin -c "MySQL Server" mysql
/usr/local/mysql/bin/mysql_install_db
chown -R mysql:mysql /var/lib/mysql

installed accomplished

good luck!!
 
Old 09-16-2004, 10:19 PM   #9
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
I am not sure what you mean by it is working now, when I go into webmin, nothing displays, and when I ran the rpm -e, it said it wasn't installed to begin with...

I will try running the tarball thing though... tomorrow...

Thanks,
~Jabird
 
Old 09-16-2004, 11:09 PM   #10
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
try it

rpm -e $(rpm -qa | grep mysql)

my system runing LAMP ( Linux + Apache + Mysql + PHP ) very stable with tarball source installation .
 
Old 09-17-2004, 07:13 AM   #11
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
I ran that, it asked me for a password :| I don't know the password, it isn't any of the ones I use....

~Jabird

EDIT: I ran it again, and it told me that no packages where givin to uninstall... so perhaps it worked, even though I didn't give it a working password?

Last edited by jabird; 09-17-2004 at 07:23 AM.
 
Old 09-17-2004, 04:31 PM   #12
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
hi !

I suggest you to install PhpMyAdmin might as well.

the original password is "" while you first installed mysql,

you can run:
mysqladmin -u root -p password "your-passwd" to set up passwd
 
Old 09-17-2004, 06:17 PM   #13
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
There is no mysqladmin in my /usr/bin directory... there are several others, but no mysqladmin...

~Jabird
 
Old 09-19-2004, 02:14 PM   #14
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
hello!

you can find the file that config for mysql in /etc/my.cnf

add line:
password=your-password
 
  


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
Secure Backup to RH9 from RH9 or Windows using secured FTP funaroma Linux - General 7 01-03-2005 08:36 AM
RHEL3 update-rpms good for rh9? or howto keep rh9 up2date? birras Red Hat 4 11-14-2004 01:11 PM
Need help uninstalling grub on NTFS/RH9 machine jlk819 Linux - Software 6 04-01-2004 01:33 AM
Uninstalling RH9 bshelton Linux - General 1 09-29-2003 11:05 PM
Help with uninstalling RH9 and reinstall BajaNick Linux - General 4 09-20-2003 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:24 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