Can't connect to MySQL databse of any webhost from anywhere other than the webhost itself

后端 未结 1 1670
你的背包
你的背包 2021-01-28 17:06

I have 2 different webhost (pagodabox & 000webhost, both free) and I\'ve set up a localhost with MySQL.

I\'ve installed wordp

相关标签:
1条回答
  • 2021-01-28 17:28

    If you have cPanel, and "Remote MySQL" is enabled in your cPanel, then..

    You can allow external web servers to access your MySQL databases by adding their domain name to the list of hosts that are able to access databases on your web site.

    Remote MySQL in cPanel

    However I guess you are trying to connect to 000webhost from your local computer. I don't think you can do that because cPanel won't consider it a valid host.

    0 讨论(0)
提交回复
热议问题