Jump to content

Entire Mysql Whipe


invertigo

Recommended Posts

Hello,

 

I recently screwed up my entire Mysql install.. and so far i havent found a way to recover it. It appears to be that somehow my root user got deleted, and as far as i know there is no way to create another one.

I am using Webmin, and Webmin is allowing me to log in with a 2nd username.. but thisone doesnt have any rights anymore. i can only change a few settings, i cant acces DB control (gives: DBI connect failed : Access denied for user 'admin@'' to database 'mysql'  in which admin is my 2nd user.) Username root doesnt work at all anymore.

 

So far i have deleted these packages:

mysql-server mysql-client libmysqlclient15-dev

But this doesnt solve the problem.

 

I can start / stop the service

 

Is there a way to delete the entire Mysql installation, and therefor allowing me to save my setup?

If so, i would really appreciate to know, Tnx

 

Vertigo.

 

- MySQL version 5.0.22

- Apache 2 Running

- Webmin 1.330 in use

- PuTTY acces (SSH enabled)

 

A read to these directory's gives "directory not found":

/var/lib/mysql

/usr/local/mysql/lib

/usr/bin/mysqlimport

 

And these no acces:

/usr/bin/mysqlshow

/usr/bin/mysqladmin

Link to comment
Share on other sites

Well,

My data files have been saved.. databases are not lost.

But backup doesnt seem to work, and the Mysql login is still bugged.

 

it looks like root user has been removed somehow (no idea how this happened) because i cant login as root anymore, and cant change password either. Right now everything is still working, but i cant acces the DB's or change them anymore. (no backup available either, because of this) Thats why i would like to trash the entire Mysql, and do a reinstall. --purge mysql-server doesnt seem to work though.

 

I could go for a full reinstall, but then i will have to configure everything again.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.