MariaDB Version 10.11.16-MariaDB-log MariaDB Server
I had an issue with one of the servers I manage and things broke hard. I contact the CWP help desk and they bailed me out to a point.
You have secured the MySQL root account with password which is not required on CWP, kindly reverse the changs and the issue will be fixed.
Well just searching online for what I wanted to do is what got me in this mess in the first place.
How do I delete the root user password?
To be honest with you I know there was a root user password on the server from the beginning. Even so I also know I could
mysqldump -u root {database} > /home/{user}/myFolder/backup.sql
And that would run with out the password.
So how do I fix this issue
Note they also changed the root user password so now I can't get into MariaDB without resetting it.
And ultimately what I am trying to fix is the control panel on port 2031 does not work it can't connect to mysql.
And Roundcube can't connect to the database.
Control Panel error message
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Trying to start mysql server, please wait!
Try to restart Control Web Panel with command: sh /scripts/restart_cwpsrv
**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf
You can reset the MySQL root password fast with this command: /scripts/mysql_pwd_reset -q
Warning: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:
As always any help is appricated