The “support” category is meant to ask for help or troubleshooting related to installing or using YunoHost or its applications. It is not to ask assistance on general system administration, network administration or special use cases that goes beyond the scope of the project. If you wish to discuss more advanced use case, please post in the “Advanced Use Case” category.
Take the time to say Hi and stay friendly, this is a forum and project 100% ran by volunteer human beings
My YunoHost server
Hardware: VPS bought online YunoHost version: 11.0.7 (testing) I have access to my server : Through SSH & through the webadmin
Description of my issue
I can’t start the mysql service. Here are my logs. It happened when I tried to change the root password of the mysql root user to something custom to explore a bit. I didn’t anticipate that it could break something, though I think this is an error on my part.
Any help appreciated as I am very new to server management.
MariaDB [mysql]> update user set authentication_string=PASSWORD(""),plugin="unix_socket" where User='root';
ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
MariaDB [mysql]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [mysql]> quit
Bye
root@yunohost:/home/admin# killall mysqld_safe
root@yunohost:/home/admin# systemctl restart mysql
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
root@yunohost:/home/admin#
Got this error when following your instructions, though I decided to continue anyways to see what would happen. Now it doesn’t want to start anymore again.
It was the same as before, only one process and everything is fine on reboot. Though I still get these errors:
Jul 08 19:12:35 /etc/mysql/debian-start[1453]: Upgrading MySQL tables if necessary.
Jul 08 19:12:36 mariadbd[860]: 2022-07-08 19:12:36 4 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Jul 08 19:12:36 /etc/mysql/debian-start[1462]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Jul 08 19:12:36 /etc/mysql/debian-start[1462]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Jul 08 19:12:36 /etc/mysql/debian-start[1462]: FATAL ERROR: Upgrade failed
Jul 08 19:12:36 /etc/mysql/debian-start[1470]: Checking for insecure root accounts.
Jul 08 19:12:36 mariadbd[860]: 2022-07-08 19:12:36 5 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Jul 08 19:12:36 debian-start[1473]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Jul 08 19:12:36 mariadbd[860]: 2022-07-08 19:12:36 0 [Note] InnoDB: Buffer pool(s) load completed at 220708 19:12:36
What I can get from this is that the password change didn’t happen. Is there a special way I have to change the password for MySQL when I also have MariaDB installed? Or is there something else wrong entirely that I might’ve broken when changing the password?