Added by Dan White over 8 years ago
Hello community,
my Linux knowledge isn’t sufficient to solve this problem, so I wanted to ask you.
I tried to install OP on a Ubuntu 16.04 VM with the package.io method. So far so good, with the ‘sudo’ command to ensure all the necessary rights.
I can’t see any obvious error message while using the installer, though the openproject run check says the MySQL connection isn’t working even though it has been installed. Webserver and OP server get an ok and now I have basically no idea where to configure the connection or even look for errors.
I hope, you might have a clue or advise for me because I’m a novice in setting up something like this.
Thanks!
Replies (2)
Hey Dan,
did you select the
Autoinstall MySQL
database in the first steps of the installer?If that is the case, and you previously had an installation of MySQL on your VM, the wizard will not be able to set up the database simply because it does not have the permissions to do so.
If that VM does not use the database for anything else, you can
sudo apt-get purge mysql.server.5.7
(5.7. I believe is the current version in 16.04. LTS, please verify withsudo dpkg -l | grep mysql-server
).Afterwards, restart the wizard using
openproject reconfigure
.If you did use the database previously for other services, please set up a user + database manually for OpenProject and choose the
Existing MySQL installation
in the reconfigure wizard.Best,
Oliver
Hey Oliver,
thank you for the quick reply! :)
I did choose the Autoinstall MySQL, it was a fresh VM.
Nevertheless I purged it and restarted the wizard just for a new installation of MySQL.
Service is running, and now I have an actual error message at the end:
“ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)”
Which makes me wonder, why does the standard MySQL login not work?
The wizard does create a user with randomized password, doesn’t it? I guess it’s the openproject:password combination within the DATABASE_URL in the openproject config, if this user is created at all at this moment.
I can’t get access to the MySQL, with root nor openproject user. So the problem is just about the login credentials, isn’t it? Or do I miss anything of importance?
Just for the “fun” of it I’ve started the manual installation and wanted to try if I can set the root password myself. No luck because there wasn’t a request to enter any.
service mysql status
is active and running, no chance to login viamysql -u root
though. :-/If you could help me once more, I would be very grateful!
Best,
Dan