dqjl0906 2014-02-04 13:30
浏览 102

无法连接外部服务器数据库

how to access cpanel database access in godady server using mysql php connectivity i have tried a lot but last long it gives me

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/content/q/u/i/quickandkosh/html/searchdata.php on line 6 Could not connect: Lost connection to MySQL server at 'reading initial communication packet', system error: 111

  • 写回答

2条回答 默认 最新

  • dongzaotiao2863 2014-02-04 13:44
    关注

    I'm not sure about go daddy but I know some web hosts need a specific path to mysql server. Most us localhost but others, such as ipage use a full path through the virtual server. Go into your cpanel at godaddy and then "mysql databases" and it should have a "server" title with address below it somewhere in the page.

    Just to note, you should also be using mysqli_connect.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作