|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello to all specialists
I have a Problem with together MySQL, PHP3 and Apache-Server on Windows95. I run Apache-Server as Webserver , also on this machine runbs MySQLWIN32. Ihave written a simple PHP3 code as follows: <html> <Title>Datenbanktest</title> <head> <a>Datenbank wird erzeugt...</a><br> </head> <body> <!--Datenbank erstellen--> <? mysql_connect("localhost", "username") ; @mysql_select_db("databasename"); $create = "CREATE TABLE test ( Name CHAR(50), )"; MYSQL_QUERY($create); mysql_close(); ?> <a>Fertig.</a> </body> </html> if let it run I get an errormessage as follows: Warning: MySQL Connection Failed: Can't create IP socket (10036) in D:ProgrammeApache_GroupApachehtdocs/create_table_katalog.php3 on line 11 Warning: MySQL Connection Failed: Can't create IP socket (10036) in D:ProgrammeApache_GroupApachehtdocs/create_table_katalog.php3 on line 28 Warning: -1 is not a MySQL link index in D:ProgrammeApache_GroupApachehtdocs/create_table_katalog.php3 on line 28 Warning: -1 is not a MySQL link index in D:ProgrammeApache_GroupApachehtdocs/create_table_katalog.php3 on line 31 I need help because iàm really no know whats gonna happen here. Thanks in advanced Oliver Thanks for your information but I have started MYSQL wi´th the command mysqld already and the same problem appears. [This message has been edited by baerinfodat (edited 07-08-99).] |
|
#2
|
|||
|
|||
|
It appears you haven't started mysql.
Run mysqld from the command line. |
|
#3
|
|||
|
|||
|
Thanks for your information but I have started MYSQL wi´th the command mysqld
already and the same problem appears. Do you have another idea |
|
#4
|
|||
|
|||
|
First, I'd suggest that you access the return values for the functions you are calling. i.e.:
$linkid=mysql_connect("localhost","username"); Then, I'd verify the connection: if (!$linkid){ print mysql_error(); exit; } That might give you some more information. Also, have you tried logging into mysql directly from a DOS shell? Actually, I'd do THAT first. BTW, I'm not sure why you are getting the warning about "-1 is not a mysql link index". According to the docs you should never get a negative number on a connection attempt. 0 for failure or the link id which is a positive integer. Curious.... Rod |
|
#5
|
|||
|
|||
|
Try updating to Winsock 2.
I had this problem, and that cured it. The original version of Winsock with came with Win95 was buggy URL |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Warning: MySQL Connection Failed: Can't create IP socket (10036) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|