2016-12-29 60 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服務器

謝謝並問候

蘇利亞

相關問題