disable root login MariaDB without password

aria-opensource

New Member
Joined
Apr 17, 2020
Messages
1
Reaction score
0
Credits
0
Hello. I installed MariaDB 10.4 in my server. when i try to login into MySQL, i can login into mysql without password or wrong password. i check some solutions in other sites, but still my problem exist.

i installed many MariaDB/MySQL in my servers before this installation. none of them has this problem. whats new in this version that i can login without password to my MariaDB? my os is CentOS 8. please help me
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,076
Reaction score
2,833
Credits
29,441
run "mysql_secure_installation" from the commandline to secure the mysql server installation. It will ask you to set a root password. After that you won't be able to login without a password.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top