Connect to external server by using phpMyAdmin(使用 phpMyAdmin 连接到外部服务器)
问题描述
我在本地机器上安装了 phpMyAdmin.如何让它连接到外部服务器?
I have phpMyAdmin installed on my local machine. How can I make it connect to an external server?
推荐答案
在配置文件中,将host"变量更改为指向外部服务器.配置文件名为 config.inc.php,它将位于主 phpMyAdmin 文件夹中.应该有这样一行:
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';
只需将 localhost 更改为您服务器的 IP 地址即可.
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 连接到外部服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 phpMyAdmin 连接到外部服务器
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
