0
votes

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
What is your PHP Connection string? You can X-out values. - Kerry Jones
Is it sure that remote access is enabled? - Anish Sheela
Contact GoDaddy (480-505-8877) because I doubt they actively participate on StackOverflow. connecting-remotely-to-shared-hosting-databases - MonkeyZeus

2 Answers

0
votes

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.

0
votes

I think your host could be wrong, wrong port, a firewall blocked the connection. So I would double check your connection settings.