Page 1 of 1
PhpMyAdmin
Posted:
Thu Feb 03, 2011 7:44 am
by Trying
When I try to log into phpMyAdmin on the DB server using cron and password I get the following error:
#2002 Cannot log in to the MySQL server
Posted:
Fri Feb 04, 2011 8:03 pm
by williamconley
Perhaps you should try the root user and password instead.
Posted:
Tue Feb 15, 2011 10:42 am
by Trying
I found the solution to this problem:
In order to be able to log in as root without a password I changed the following line in srv/www/htdocs/phpMyAdmin/config.inc.php from $cfg['Servers'][$i]['AllowNoPassword'] = false; to $cfg['Servers'][$i]['AllowNoPassword'] = true;
I also had to change $cfg['Servers'][$i]['host'] = 'localhost'; to $cfg['Servers'][$i]['host'] = '127.0.0.1';
Posted:
Tue Feb 15, 2011 11:00 am
by williamconley
so you made it possible to use phpMyAdmin without root? i would consider that a serious security violation. it's much better to add a password to root.
Posted:
Tue Feb 15, 2011 11:19 am
by Trying
Quite right. I changed it back to no password login = false. I can now still login with cron. So the issue was actually also localhost instead of 127.0.0.1.
Posted:
Tue Feb 15, 2011 11:28 am
by williamconley
Which can also be handled via a permission command inside mysql itself (giving that host permission for that user). Although, we've never had that problem ... we have had to add a mysql pass to lock down and change the cron pass of course.
We've also had to (recently) add the reload priv to the cron user to allow backups, which is odd.