FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » SQL errors from the API
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
SQL errors from the API [message #161968] Sat, 27 February 2010 18:16 Go to next message
Slicke is currently offline  Slicke   Sweden
Messages: 3
Registered: February 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hi!

I'm thinking of moving my site from SMF to fud, in SMF I use an include file "SSI.php" and then fetch stuff from it.

Of what I can figure out using:
require_once '/PATH/forum/GLOBALS.php';
require_once '/PATH_TO_DATA/scripts/fudapi.inc.php';

is the same as require("forum/SSI.php") in SMF

However, as soon as I enter that data I get this:

Citat:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /PATH_TO_DATA/include/theme/default/db.inc on line 27

Fatal error: SQL Error has occurred, please contact the administrator of the forum and have them review the forum's SQL query log in /PATH_TO_DATA/include/core.inc on line 201


My forum works fine so the database is running good. What could cause this? I just copied an example from the wiki, but even if I comment out everything except those two lines I still get that error.

Thanks!
Re: SQL errors from the API [message #161969 is a reply to message #161968] Sat, 27 February 2010 21:35 Go to previous message
Slicke is currently offline  Slicke   Sweden
Messages: 3
Registered: February 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I solved it, thanks anyway Embarassed
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Search in Topic Description
Next Topic: how many messages?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 17 22:23:08 EST 2017

Total time taken to generate the page: 0.00603 seconds