Install & MySQL config



I’ve just installed YUNoHost on a Debian and have an issue with MySQL.

On /var/log/yunohost.log, I can read:

Paramétrage de yunohost-config-mysql (2.0-rc1~megusta1) ...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

And when I want to Install Owncloud: (extract from install log)

sudo yunohost app initdb owncloud -p 6Q1ff4E822CrUyOTJU4n7m7h
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Erreur : Impossible de créer la base de donnée MySQL

I’ve tried a dpkg-reconfigure mysql-server-5.5 but I don"t know what to set as password…

Anyone has an idea to make mysql work ?


Did you install MySQL before YunoHost ? Or was it a fresh installation ?

Anyway, the MySQL root password used in YunoHost is in /etc/yunohost/mysql. So if you have to reconfigure mysql-server, try to use this one.

Yes MySQL was installed before, but I’ve done a

 apt-get purge mysql-server*

before installing yunohost…

But now I’ve just set my password with what is written in /etc/yunohost/mysql and it seems working !!

Thanks a lot !