2016-12-29 37 views

回答

0

最后我找到我的问题的答案。通过在/ opt/lampp/phpmyadmin/config.inc.php中进行以下更改,我们可以在phpmyadmin中使用ubuntu的本地mysql服务器。

变化

$cfg['Servers'][$i]['auth_type'] = 'config'; 
    $cfg['Servers'][$i]['user'] = 'Local mysql's username'; 
    $cfg['Servers'][$i]['password'] = 'Local mysql's password'; 
    /* Server parameters */ 

从本地主机更改为127.0.0.1

$cfg['Servers'][$i]['host'] = '127.0.0.1'; 
    //$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
    $cfg['Servers'][$i]['compress'] = false; 
    $cfg['Servers'][$i]['AllowNoPassword'] = false; 

通过使上述更改我访问XAMPP的Apache2我loacl MySQL服务器,而无需启动XAMPP的MySQL服务器

谢谢并问候

苏利亚

相关问题