我有MySQL托管和Hostinger。
我正在尝试从WebhostingPad连接到Hostinger。
I在Hostinger中有白名单WebhostingPad IP
在Hostinger远程MySQL下添加了WebhostingPad IP
使用下面的代码连接到Hostinger My QL.
我犯了错误,因为:
警告: mysqli_connect():(HY000/2002):第6行连接超时中的/home/easy拨号/public_html/中的连接超时
我在linux系统上安装了MySQL。我已经运行了Debian。我可以通过本地系统上的命令访问具有本地ip地址的mysql,也可以远程访问
./mysql -h 192.168.1.151 -u root -pabcd
。现在我添加了一台主机(192.168.1.152),并且我不能使用AddedHost从其他机器远程连接,我已经为该主机赋予了所有权限,如下所示
grant all on *.* to 'root'@'192.168.1.152' identified by 'abcd';
但我无法在本地和远程连接。执行命令时出现错误
./mys
我整个晚上都在尝试用PHP连接mysql。我知道用户名和密码是正确的,因为我已经尝试了3/4,并且我知道数据库中的权限设置是正确的。
如果我远程连接到这台机器上,并在命令行中输入完全相同的详细信息,那么我就可以毫无问题地连接到数据库。
问题似乎只出现在MYSQL和PHP上。
更多信息:
我正尝试在mysql数据库所在的同一服务器上运行PHP应用程序。用户在本地计算机上具有完全授予权限。我收到的错误是:
Fatal error: Attempt to connect to database kmc_cms on
服务器已设置,因此无法远程访问mysql。
我刚买了Coda 2,我想试一下mysql数据库连接的这个功能。我无法连接。出现的错误是:
Unable to connect to host 1.2.3.4, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges,
or try increasing the connection timeout (currently 0 seconds).
MySQL said: Can't connect to MySQL server on
我正在windows上工作,并且与另一台机器有一个远程桌面连接。我正试图通过安装在我的计算机上的mysql工作台连接到远程计算机上运行的MySql。
当我指定要连接到mysql的详细信息时,即ip-A.B.C.D端口-3306 username=root password=
但每次我说错话的时候-
Your connection attempt to connect to user='root'failed from your host to server at a.b.c.d:3306
我可以在另一台机器上连接到mysql吗?
我正试图从我的本地机器连接到一个远程数据库,php抛出了一个很好的模糊错误,所以我希望在这个领域有更多经验的人能给我指明正确的方向。我得到的错误是:
Warning: mysql_connect() [function.mysql-connect]: Connection refused in /my/obfuscated/directory/config.php on line 10
Could not connect: Connection refused
我已经在Nodejs文件中配置了连接,如下所示。当试图连接到服务器上的远程数据库时,会发生此问题。
module.exports = {
host: '234.32432.32432',//this is example IP not a real one.
user: 'bob',
password: '*****',
database: '****',
port: 3306,
dialect: 'mysql',
}
在MySQL中启用了本地主机连接。 但已禁用远程(我的笔记本电脑)访问 Can't connect to MySQL server on "host" (10061)`. 我的端口总是开着3306。 下面是我的配置文件(/etc/mysql/my.cnf): #bind-address 0.0.0.0
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/ MySQL状态为: mysql start/running, process 15204
这个问题我在网上到处找了几次,但是没有人回答我。
因此,我有一个本地apache+php服务器,并尝试连接到远程mysql数据库。但是脚本返回错误,在错误日志中我看到:
PHP Warning: mysql_connect(): Premature end of data (mysqlnd_wireprotocol.c:553) in D:\\_SERVER\\_WWW\\project\\api\\classes\\database.php on line 13
PHP Warning: mysql_connect(): OK packet 1 bytes shorter than ex