This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

How do I completely reset MariaDB?

I corrupted my copy of MariaDB on my Mac. I tried brew uninstall then reinstall. I think a mistake was removing these directories: rm -rf /usr/local/var/mysql/ rm -rf /usr/local/etc/my.cnf*

I can login as root with no password with sudo. when I try to create a database here is the response: ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'myDB'

It seems that MariaDB doesn't know about 'root'.

I want to remove all traces of the install and completely start fresh.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.