使用phpMyAdmin连接到外部服务器 [英] Connect to external server by using phpMyAdmin

查看:665
本文介绍了使用phpMyAdmin连接到外部服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的本地机器上安装了phpMyAdmin。

解决方案

在配置文件中,将host变量更改为指向外部服务器。配置文件称为 config.inc.php ,它将在主phpMyAdmin文件夹中。应该有这样的行:

  $ cfg ['Servers'] [$ i] ['host'] =' localhost'; 

只需将 localhost 更改为您服务器的IP地址。



注意:您可能需要配置外部服务器以允许远程连接,但我已经在共享主机上这样做了好几次。 p>

I have phpMyAdmin installed on my local machine. How can I make it connect to an external server?

解决方案

In the config file, change the "host" variable to point to the external server. The config file is called config.inc.php and it will be in the main phpMyAdmin folder. There should be a line like this:

$cfg['Servers'][$i]['host'] = 'localhost';

Just change localhost to your server's IP address.

Note: you may have to configure the external server to allow remote connections, but I've done this several times on shared hosting so it should be fine.

这篇关于使用phpMyAdmin连接到外部服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆