I installed mysql through yum just now and the OS fedora installed mariadb for me. I know mariadb is a new branch of mysql, but I can't understand why it does not ask me for setting the password. I have tried for 123456 and so on, but I failed. My fedora is new, and this is the first time to install mysql/mariadb. What should I do for it?
If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here.
There is no default password (empty password) for MySQL database server. You need to assign root password after installing MySQL via yum / rpm command. Some admin set the root password same as the server root password.
I had the same problem. It's true the password is empty, but even so the error message is shown. The solution is just using "sudo" so
$ sudo mysql
will open the mysql tool
For securing the database, you should use sudo again.
$ sudo mysql_secure_installation
From https://mariadb.com/kb/en/mysql_secure_installation/ :
In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here.
the password will be blank
I think that's your answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With