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 March 18th, 2000, 07:56 AM
Soup Soup is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 4 Soup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hopefully someone can help !
Have sucessfully set up php on 2 machines
1) Win98 / Omnihttpd server
2) Win2K

Installed on both machines mySql and then the problem ;
Win98 machine

Call to unsupported or undefined function mysql_connect

I am also getting this error when I try to connect to my mySQL db. Both php, mySQL and my web server (Omni] are working separately but php won't talk to mySQL (I've started the mySQL deamon too).

Win2K machine

Installed, got PHP running locally, try mySQL and from the command prompt

C:>cd c:mysqlbin

C:mysqlbin>mysqld-shareware

C:mysqlbin>mysql
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

Or from IE php page

Data from the table

Warning: MySQL Connection Failed: Can't connect to MySQL server on localhost (10061) in C:Inetpubwwwroothtdocsdatabaseindex.php on line 14
My Message - Problem connecting to Database

Any help appreciated cos I'm slowly banging my head against the wall ! URL

Reply With Quote
  #2  
Old March 21st, 2000, 06:14 AM
ikaros ikaros is offline
PHP Programmer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 31 ikaros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 43 sec
Reputation Power: 14
Send a message via ICQ to ikaros
Are you sure you have uncommented the mysql line in php3.ini?

;Windows Extensions
extension=php3_mysql.dll <--- THIS ONE!
;extension=php3_calendar.dll
;extension=php3_dbase.dll
;extension=php3_gd.dll
;extension=php3_dbm.dll
;extension=php3_mssql.dll
;extension=php3_zlib.dll
;extension=php3_filepro.dll

....

Reply With Quote
  #3  
Old March 21st, 2000, 09:25 AM
Soup Soup is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 4 Soup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yep done that !

Reply With Quote
  #4  
Old March 21st, 2000, 10:04 AM
EyE EyE is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Den Laeghe Landen
Posts: 107 EyE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 49 sec
Reputation Power: 14
Send a message via ICQ to EyE
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Soup:
yep done that ![/quote]
It's not the PHP connection that is failing; MySQL itself is not up and running yet.
It's very easy, at the commandprompt within your mysql/bin directory, type:
> mysqld
(i believe it's as easy as that, if you still experience problems, i can check at my home-pc, for possible further parameters)

Suc6!

------------------
--
<WARNING: signature has NULL-value>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP & mySQL

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