简体   繁体   English

通过PHPMyAdmin连接到MySQL本地数据库

[英]Connect to MySQL local database via PHPMyAdmin

I have two servers running on Ubuntu. 我有两个在Ubuntu上运行的服务器。 Server 1 only has MySQL installed and acts as an database. 服务器1仅安装了MySQL,并充当数据库。 Server 2 is a Apache web server. 服务器2是Apache Web服务器。 The database is internal and so as the Apache server and they can ping each other but the database server is not accessible via the internet. 数据库是内部数据库,因此是Apache服务器,它们可以相互ping通,但不能通过Internet访问数据库服务器。 I can telnet into the database server from the Apache but I can not connect to the database via PHPMyAdmin. 我可以从Apache远程登录到数据库服务器,但是无法通过PHPMyAdmin连接到数据库。

So the question is how I can configure this to work. 所以问题是我如何配置它才能工作。 I also don't want to allow access to the whole server (databases), access only via user name and password specified. 我也不想允许访问整个服务器(数据库),只能通过指定的用户名和密码访问。

Thanks! 谢谢!

将您的用户定义为user@[hostip-of-Php-myadmin-server] ,应该设置您吗?

这是一个BIND问题,现在已全部解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM