Mysql Adding back root user?
I stupidly deleted my root user from my mysql database server. How do I add it back?
|
Sorry, i have only suggestions.
- can you connect to mysql via a socket? Do you have add users privelege with one user? - do you have a backup of the mysql database? (/var/lib/mysql/mysql/...) - maybe just try a mysql db of another installation (same version numbers) |
If all else fails, you can:
|
Did that work?
If it did, we'd like the positive feedback; if not, then we'd like to figure out why not & also you help find a solution. |
Sorry. I never went ahead and tried the solutions offered. I just re-installed Ubuntu and Mysql as there wasn't anything I was afraid to lose on the machine yet.
|
Sometimes that is the easiest way, even if you learn less doing it like that than struggling further w/ the original problem.
|
For the next time, start mysqld with the skip-grant-tables option
Quote:
|
All times are GMT -5. The time now is 12:48 PM. |