Connect to tunneled DB through phpMyAdmin

谁说胖子不能爱 提交于 2019-12-25 03:37:15

问题


So I've tunneled the DB to port 3307 on 127.0.0.1 .. I can connect to the database and do whatever I want by using Ubuntu's MySQL Workbench, however I really dislike the interface of the GUI so I want to use the ol'friend phpMyAdmin.

The connection parameters I am using are:

$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = 3307;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type']= 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'myDBuser';
$cfg['Servers'][$i]['password'] = 'myDBpass';

When I go to http://localhost/phpmyadmin, select my server from the dropdown and click Go, the following errors are displayed:

#1045 - Access denied for user 'myDBuser'@'localhost' (using password: YES) 

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

My login details are correct.

Any help is greatly appreciated!


回答1:


I managed to get it working by removing the password and logging in with no password. I don't know why it can log in without proving a password, but its working now. Thank you all for your help!



来源:https://stackoverflow.com/questions/16003846/connect-to-tunneled-db-through-phpmyadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!