LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Uninstalling on RH9 (https://www.linuxquestions.org/questions/red-hat-31/uninstalling-on-rh9-230262/)

jabird 09-13-2004 06:50 PM

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

CroMagnon 09-13-2004 09:20 PM

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.

jiawj 09-13-2004 09:23 PM

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 .....

jabird 09-15-2004 05:26 PM

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?

jiawj 09-16-2004 12:44 AM

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!!

jabird 09-16-2004 06:09 PM

:| 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


jabird 09-16-2004 08:42 PM

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 :(

jiawj 09-16-2004 09:04 PM

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!!

jabird 09-16-2004 10:19 PM

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

jiawj 09-16-2004 11:09 PM

try it

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

my system runing LAMP ( Linux + Apache + Mysql + PHP ) very stable with tarball source installation .

jabird 09-17-2004 07:13 AM

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?

jiawj 09-17-2004 04:31 PM

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

jabird 09-17-2004 06:17 PM

There is no mysqladmin in my /usr/bin directory... there are several others, but no mysqladmin...

~Jabird

jiawj 09-19-2004 02:14 PM

hello!

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

add line:
password=your-password


All times are GMT -5. The time now is 04:11 PM.