From a command line, I can log into mysql like this:
sudo mysql -u myuser -h 127.0.0.1 -p
(fyi, cannot use localhost, must use ip) And I can get to: http://myhost.com/phpmyadmin/
but I cannot log in with myuser account -get repeated login prompts and finnally "Access denied".
So I tried editing: /var/lib/phpmyadmin/config.inc.php added:
- $cfg['Servers'][1]['host']='127.0.0.1';
- $cfg['Servers'][1]['ssl']=false;
- $cfg['Servers'][1]['auth_type']='config';
- $cfg['Servers'][1]['only_db']=array('mydb');
- $cfg['Servers'][1]['user']='myuser';
- $cfg['Servers'][1]['password']='mypassword';
restarted apache and still got the same problem. I also tried auth_type: 'http' with no user set and it did not change things.
Any ideas?
.htaccessfile) provided by a package manager or other packaged installation. How have you installed phpMyAdmin (from source yourself, through a distribution package manager, as part of XAMPP/WAMP/etc)?