Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-29-2008, 06:11 PM Trouble using mysqli
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
I have just installed PHP 5.1.4 and mySQL 4.1.7. Mysql functions such as myslq_connect() work fine. Mysqli functions do not seem able to access the database. The php.ini file has been edited to include "extensions=php_mysql.dll" and "extensions=php_mysqli.dll". Both the php_mysql.dll and php_mysqli.dll are in the php\ext\ folder which extension_dir points toward. I placed libmysql.dll in the windows system folder as well as left a copy it in the php root directory, which is added in the path under windows environmental variables. There is no libmysqli.dll file but the documentation on PHP's Mysqli manual say this is not needed.

When I try to connect using mysqli_connect() I get "Can't connect to MySQL Server. Errorcode: Can't connect to MySQL server on 'localhost' (10061)." I am certain that the user, host, password and database names are correct and can connect using them using mysql_connect() or directly from the command line.

Any ideas? Thanks in advance.
GBG is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-30-2008, 05:58 PM Re: Trouble using mysqli
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Does this help: http://bugs.mysql.com/bug.php?id=20238 ?
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 01-30-2008, 10:20 PM Re: Trouble using mysqli
GBG
GBG's Avatar
Average Talker

Posts: 26
Name: jack paris
Trades: 0
That is exactly the same problem I have been experiencing. Same error code too. The suggestion from tech support was not all that helpful however. I'm still working on the problem. Thanks for looking.
GBG is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Trouble using mysqli
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11358 seconds with 12 queries