Forgot MariaDB Password – Fix: sudo mariadb -u root

Forgot your MariaDB password? Luckily, you don’t need password for administrative access.

$ sudo mariadb -u root

$ sudo mariadb -u root
MariaDB [hats]> CREATE DATABASE yesimdbroot;
Query OK, 1 row affected (0.00 sec)

Well done, you’re now database root.

For normal use, remember to ‘exit’ and create a normal (non db root) user and database. What next? MariaDB installation and CRUD notes.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Recent Posts

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects