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 |
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.
|
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 ..... |
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 Code:
|
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!! |
:| 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 Code:
[root@jabird root]# rpm -Uvh MySQL-server-4.1.4-0.i386.rpm |
I ran the rpm -e thing... got this:
Code:
[root@jabird root]# rpm -e MySQL-server-4.1.4-0.i386.rpm ~Jabird EDIT: Nope, still didn't work :( |
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!! |
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 |
try it
rpm -e $(rpm -qa | grep mysql) my system runing LAMP ( Linux + Apache + Mysql + PHP ) very stable with tarball source installation . |
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? |
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 |
There is no mysqladmin in my /usr/bin directory... there are several others, but no mysqladmin...
~Jabird |
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. |