php/mySQL error

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Thechef321
Guest





PostPosted: Mon Jan 13, 2003 12:51 am    Post subject: php/mySQL error Reply with quote

This is the error I got:

Code:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Abyss Web Server\htdocs\boards\sources\Drivers\mySQL.php on line 127

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\Abyss Web Server\htdocs\boards\sources\Drivers\mySQL.php on line 133
ERROR: Cannot find database blood_virtualhorizons
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\Abyss Web Server\htdocs\boards\sources\Drivers\mySQL.php on line 199
 


There appears to be an error with the Virtual Horizons database.
You can try to refresh the page by clicking here, if this does not fix the error, you can contact the board administrator by clicking here

Error Returned

mySQL query error: SELECT m.name as member_name, m.id as member_id, m.title as member_title, m.avatar, m.avatar_size, m.posts, attach_id, t.*, p.* FROM ibf_members m, ibf_posts p, ibf_topics t WHERE t.forum_id = '26' AND p.topic_id=t.tid AND p.new_topic=1 AND m.id=t.starter_id AND t.approved=1 ORDER BY t.tid DESC LIMIT 0, 5

mySQL error: Can't connect to MySQL server on 'localhost' (10061)
mySQL error code: 2003
Date: Sunday 12th of January 2003 09:43:26 AM

We apologise for any inconvenience


Any help?
Back to top
jard
Guest





PostPosted: Mon Jan 13, 2003 5:38 am    Post subject: Reply with quote

When you configure mysql put your IP address instead of "localhost"

I think that may fix it
Back to top
Bluedog
-


Joined: 05 Jan 2003
Posts: 179

PostPosted: Mon Jan 13, 2003 6:41 pm    Post subject: Reply with quote

no, localhost is correct.
"ERROR: Cannot find database blood_virtualhorizons"

this means you have specified an incorrect database name - make sure you created the database, and the reference in the script is correct. Also, ensure mysql is running.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group