使用本地phpmyadmin连接到远程mysql服务器

时间:2020-08-24 00:12:12

标签: phpmyadmin

尝试使用PhpMyAdmin从我的Mac连接到远程MySQL服务器。

我尝试过:

$i++;
$cfg['Servers'][$i]['verbose'] = 'My Server';
$cfg['Servers'][$i]['host'] = 'xxxxxxxxxx.com';
$cfg['Servers'][$i]['user'] = 'myname'; 
$cfg['Servers'][$i]['password'] = 'xxxxxxxx';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

产生:

enter image description here

将auth_type更改为cookie:

$cfg['Servers'][$i]['auth_type'] = 'cookie';

产生:

enter image description here

有什么想法吗?

0 个答案:

没有答案