Jump to content

Newbie Need Help connecting MySQL using Windows 7 or the web provider

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Juan Pluma

Juan Pluma

    Newbie

  • Members
  • Pip
  • 4 posts
:crying:Attached File  index.html   1.81K   51 downloads
Tried to connect to the MySQL database with no success.
1.- The local xampp installation
2.- To the 00webhost.com provider

1.- Firebug says:

Warning:mysql_connect() a href='function.mysql-connect'function.mysql-connect: MySQL server has gone away in C:\xampp\htdocs\process.php on line 8 Warning: mysql_connect() a href='function.mysql-connectfunction.mysql-connect: Error while reading greeting packet. PID=2264 in <b>C:\xampp\htdocs\process.php on line 8

Warning: mysql_connect()href='function.mysql-connect'function.mysql-connect:MySQL server has gone away in C:\xampp\htdocs\process.php</b> on line 8

Fatal error:Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\process.php on line 8

2. Remotely
Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: [2002] Se produjo un error durante el intento de conexi�n ya que la par (trying to connect via tcp://mysql11.000webhost.com:3306) in C:\xampp\htdocs\process.php on line 8>

Warning: mysql_connect() href='function.mysql-connect' function.mysql-connect An Error produced because the connection part has been unable to aswer.(translated)
in C:\xampp\htdocs\process.php on line 8
After a period of time the connecting part has failed to answer (translated)

May be the php procedural method?
Attached two fies index.html with the Jquery and process.php with the php code line 8 with the connectionsays $conn = mysql_connect($host, $user, $pass) or die(mysql_error());

Attached Files



#2
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
post the god **** code!
Looks like a big error, not a PHP syntax error or a connection error...
Windows 7 could be blocking something I guess...
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users