mysql -u user -p pass -h remotehost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 96
Server version: 5.1.36-community-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysq
我刚买了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
我知道这个命令:
GRANT ALL PRIVILEGES
ON database.*
TO 'user'@'yourremotehost'
IDENTIFIED BY 'newpassword';
但是,它只允许我授予一个特定的IP地址来访问这个远程MySQL数据库。如果我想让任何远程主机都可以访问这个MySQL数据库,该怎么办?我该怎么做?基本上,我将这个数据库公开,这样每个人都可以访问它。
显然,我的主机提供商不支持其知识库中所说的远程MySQL使用,即使我购买了一个高级套餐
remote MySQL connections are disabled for security and performance reasons. You can only connect to MySQL from your PHP scripts hosted on our servers.
有没有办法让我做一个API,这样我就可以远程连接到我的MySQL?我需要使用我的主机帐户中的数据库作为我的Android应用程序的信息源。谢谢
我正在开发一个简单的应用程序与mysql数据库的一个表。我每天更新本地数据库。但是每周我都想通过点击一个按钮把它更新到远程mysql数据库。I know about the synchronization and replication in PHPMyAdmin. But I don't want to use it.
我成功地从file.But检查了远程和本地数据库连接,无法得到同步的解决方案。PHP中有没有同步的方法?
我读过很多文章,但所有的文章都给出了使用复制和同步的方法。因为我必须把这个应用程序交付给一个客户。我想给他最简单的解决方案。
*我有cPanel,PHPMyAdm