|
Posted by Tony Peardon on 01/23/06 09:41
Hi, I'm new here, and to the whole php/sql server side of things, though I
do have extensive client side experience. I'm trying to set up my home pc
as a development server, and I'm only having a little bit of success.
I downloaded and installed NetworkActiv Web Server 3.5, and the latest php
and sql for my system, Windows 98 SE.
I did this without any instructions, so I'm a little surprised it worked at
all. The server is up, and the php works just fine, but not the SQL. I'm
sure it's just a config error or something.
From the command line, "mysqladmin -u create mydb" returns...
C:\MYSQL\BIN\MYSQLA~1.EXE: connect to server at 'localhost' failed
error: 'Can't connect to MYSQL server on 'localHost' (10061)
Check that mysqld is running on localhost and that the port is 3306. You can
check this by doing 'telnet localhost 3306'
When I try this, I get, "Could not open a connection to localhost." So I'm
thinking that I missed something during setup. Specifically, I've done
nothing to let my server know I have SQL. Did this just happen when I
installed and ran the instance configuration? does PHP need to know Where to
find mySQL? Where do I set that? Could my firewall or other security
software be interfering with the connection? Please help.
ps.. anyone got a link or two for some good quick references? both for php
and mysql.
Thanks to all.
sTony
[Back to original message]
|