Comments - Completely Unistall and then Reinstall Mariadb 10.3

5 years, 7 months ago Faustin Lammler

Hi eholz1, thanks for your question.

Some questions:

  • did you have any data in the database?
  • what system are you using?
  • what did you do to "break it"?

By default the root user should be able to connect through socket (no password needed) to your mariadb server ($ sudo mysql) and then you should be able to recover your databases.

If you are using a Debian based distribution, you could try this commands:

$ sudo apt reinstall mariadb-server

But first of all please try to do a backup of your database: https://mariadb.com/kb/en/library/backup-and-restore-overview/

If your database was empty and you just want a clean install, these are the command on Debian based distro:

$ sudo apt purge mariadb-server
$ sudo rm -rf /var/lib/mysql/
$ sudo apt install mariadb-server

Regards,

Faustin

 
5 years, 7 months ago Faustin Lammler

Sorry, command for reinstall on Debian is:

$ sudo apt-get install --reinstall mariadb-server
 
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.