I am having a peculiar problem with phpmyadmin, it let's me login as root but not with users created in ISPConfig3, this is the error I get: #1045 Cannot log in to the MySQL server Can't work this out!
Hi Log into phpmyadmin as root - click privileges -> add a new user - specify username - specify host as Local - specify password - grant all privileges on wildcard name (username\_%) - global privileges - check all - go - reload privileges - logout then log back in as your new user
Oh ok... ISPConfig3 used to be able create new users and were able to log into phpmyadmin. What you have described gives full priviledges to users, and that's not suitable. Thanks anyway.
What srijan described is not nescessray and you should not do that! ISPConfig is able to create mysql users, so there must be a issue why this fails. The most common problem is that the mysql root password was changed and ispconfig does not know the new root password and without a root login, ispcofig cant create mysql users. Check the file /usr/local/ispconfig/server/lib/mysql_clientdb.conf if it contains the right mysql root password. If not, then change it there.
I have temporarily remedied the problem by loggin into phpmyadmin as 'root' and changed priviledges for user 'ispconfig'. Now I can add users through ISPConfig and create databases, and also log into phpmyadmin using these newly created usernames.
The user "ispconfig" is not used to add mysql users by ispconfig. So there must be a wrong user configured in /usr/local/ispconfig/server/lib/mysql_clientdb.conf file. Please check that file, it muts contain the root user and the password of the root user, it may not contain the user ispconfig. Giving the ispconfig mysql user more priveliges is not recommended for security reasons as ispconfig has a privelige separation for the mysql connection that needs higher permissions in mysql.
Yes... I have checked /usr/local/ispconfig/server/lib/mysql_clientdb.conf and it only has ONLY 'root' & its password, nothing else. Note that this is a brand new install on a fresh Ubuntu 14.04 box... as I have done on 2 others (without problems). My problems began when I used the update script after the install - Something wrong there I guess!!