ERROR
----
mysqli_real_connect() (HY0001698) Access denied for user 'root'@'localhost'
Steps: 1. open terminal
# mysql -u root -p use mysql; select user, host, plugin from mysql.user; update user set plugin='mysql_native_password' where user='root'; OR update user set authentication_string=password('my_password') where user='root'; flush privileges; exit;
systemctl status mariadb.service
systemctl restart mariadb.service
----