I think I fubared my mysql setup

Place to discuss Fedora and/or Red Hat

I think I fubared my mysql setup

Postby ajberry » Thu Sep 11, 2003 7:49 pm

I deleted all users but one, and now the password I assigned it will not work.

I thought, easy enough, I'll just reinstall, I have all the ddl to bring all the db's back.

I removed the symbolic link to mysql in /usr/local/. I then moved the tar.gz archive to another user's home directory and untarred. I then symlinked backed to /usr/local/mysql and ran the mysql_install_db script.

This essentially did nothing. I still cannot access mysql at all. Here is where my sys admin skills obviously lack.

What is the equivalent of uninstall in *nix?

I tried removing the directory w/ rm -d, but it still wanted me to manually remove each subdirectory within /usr/local/mysql
ajberry
user
user
 
Posts: 10
Joined: Wed May 21, 2003 10:04 am

Postby Void Main » Thu Sep 11, 2003 8:06 pm

Can I assume that since you posted this in the Red Hat forum that you are running some version of Red Hat? If so I am just curious why you aren't running the MySQL that came with you Red Hat distro which usually makes life quite easy? At any rate you want to remove all files and directories under a particular subdirectory you would use:

Code: Select all
$ rm -rf /somedir/subdir


That command will remove "subdir" and everything under it if the user you are logged on has permissions. Or you could have:

Code: Select all
$ cd /somedir
$ rm -rf subdir


Just be "extremely" careful that you don't remove more than you want, especially if logged on as root. Hope that helps...
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Fedora/Red Hat

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron