Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I re-install mysql from scratch? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BIGtrouble77
n00b
n00b


Joined: 26 Jan 2006
Posts: 39

PostPosted: Tue Feb 21, 2006 2:19 pm    Post subject: How do I re-install mysql from scratch? [solved] Reply with quote

Not sure what happened, but I installed cd-burning software on my server and ran a new backup script and now my apache and mysql are hosed.

I re-emerged mysql and it seems to work, but all of the databases are all completely gone. If I unmerge and re-emerge mysql the default mysql database isn't recreated.

So, what's the best way to completely remove mysql and build it from scratch (redo all the config files, permissioning, users and user passwords.)?

Thanks,
-BT


Last edited by BIGtrouble77 on Tue Feb 21, 2006 2:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
rabinath
n00b
n00b


Joined: 03 Jan 2006
Posts: 31
Location: Germany

PostPosted: Tue Feb 21, 2006 2:23 pm    Post subject: Reply with quote

Remove the contents of /var/lib/mysql - that's where the databases are stored. Then run /usr/bin/mysql_install_db to create new ones.
Back to top
View user's profile Send private message
BIGtrouble77
n00b
n00b


Joined: 26 Jan 2006
Posts: 39

PostPosted: Tue Feb 21, 2006 2:46 pm    Post subject: Reply with quote

Thanks alot, that's just what I needed. Got my databases back up and running.

Now I have the fun task of figuring out how this happened.

-BT
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum