Hi all, I got on a multi server setup a web server which now I want to add to it Mariadb in order to work as a db server too. What is the proper way to achieve this? I assume that I have to install the mariadb packages first and then re-run the update.sh script?
MariaDB should be installed already, as it's a system requirement for any ISPConfig node. All you have to do is to enable DB server under system > server services.
Hi Till, I did what you mentioned and is adding fine the DB and the user but once I try to login with the user credentials it doesn't work at all; The DB does not appear under the user at all. If I log in with a root user I can see the database. Any ideas?
So the database is there and the user is there when you check in phpmyadmin as root user? Then you must check with phpmyadmin if the database is assigned to the user in mysql. Just a guess, maybe you added that user manually in phpmyadmin before or something similar, as iSPConfig can not manage existing users or databases you added in mysql outside of ISPConfig.
I've added the user via the ISPconfig interface and asign it to a new db. Then I logged in as root user on phpmyadmin and import the db. Then I logged out and tried to login with the user and getting authentication error. I logged in afterwards directly to the server with ssh and into mysql (mysql -u username -p) and worked fine but there are no databases at all there; show databases; query returns nothing.
Create a new user and new DB, wait until the changes have been applied, then use phpmyadmin to login with the username and password and check if the database is there. Maybe your database dump that you imported as root contained queries that altered the user
ok I've done that and I can log in with the user but there is no database displayed in phpmyadmin. The database is however there if I logged with any other account that has root access.
I'm getting in logs that user is denied eventhough the password is correct. That is under logs when it tried to sync/add the db. Can you share please the proper queries that I have to run to the master(who holds the phpmyadmin and the controlpanel) and the server which I'm trying to add the database? Just to check with those that I got in place as it should be working without a problem but it doesn't; it doesn't create at all the db. Code: Unable to connect to mysql: Access denied for user 'myuser'@'localhost' (using password: YES)
The queries get dynamically created based on your MariaDB or MySQL version. You can find the code in /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php