PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 1999, 07:40 AM
baerinfodat
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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).]

Reply With Quote
  #2  
Old July 8th, 1999, 09:27 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
It appears you haven't started mysql.

Run mysqld from the command line.

Reply With Quote
  #3  
Old July 8th, 1999, 10:32 AM
baerinfodat
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #4  
Old July 9th, 1999, 06:50 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #5  
Old August 4th, 1999, 05:37 AM
Tony Peters
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Warning: MySQL Connection Failed: Can't create IP socket (10036)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap