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

Home » FUDforum » How To » SQL errors from the API
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
SQL errors from the API [message #161968] Sat, 27 February 2010 23:16 Go to previous message
Slicke is currently offline  Slicke   Sweden
Messages: 3
Registered: February 2010
Karma:
Junior Member
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!
[Message index]
 
Read Message
Read Message
Previous Topic: Search in Topic Description
Next Topic: how many messages?
Goto Forum:
  

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

Current Time: Mon Nov 25 01:15:48 GMT 2024

Total time taken to generate the page: 0.04130 seconds