Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在xampp中使用ubuntu的本地mysql服务器_Mysql_Xampp - Fatal编程技术网

如何在xampp中使用ubuntu的本地mysql服务器

如何在xampp中使用ubuntu的本地mysql服务器,mysql,xampp,Mysql,Xampp,我可以在不启动xampp的mysql服务器的情况下在ubuntu的sudo apt get命令安装的xampp中使用mysql吗?最后我找到了我问题的答案。我们可以在/opt/lampp/phpmyadmin/config.inc.php中进行以下更改,在phpmyadmin中使用ubuntu的本地mysql服务器 改变 $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'Local mys

我可以在不启动xampp的mysql服务器的情况下在ubuntu的sudo apt get命令安装的xampp中使用mysql吗?

最后我找到了我问题的答案。我们可以在/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 */
从localhost更改为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服务器

谢谢和问候


Suriya

为ubuntu使用lamp。是的,你当然可以。如果你愿意安装lamp,我如何使用附近的lamp?A。我可以通过更换套接字来使用本地mysql服务器吗..而不使用lamp。。??