Question

I work on MySQL. For making my database more secure I created new user and than deleted 'root' user which had all privileges. I think I did not give full privileges to new user. That's why it is giving error whenever I try to update a table in database.

UPDATE command denied to user 'crm_user'@'localhost' for table

In case I lost the superuser (in my case it was root) how can I retrieve or get all privileges to get control on my DB. DB is installed on my VPS so I have full control whatever need to do but I have no idea what to do. Please help. Thanks

No correct solution

OTHER TIPS

I think the answer of the question can help hackers or something.

You can reinstall your MySQL. Before the reinstall, take a backup if you can or copy your data files.

There is an answer to how can do you recover your data files. If you want to guarantee your data healthy, you can install new MySQL and try that.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top