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
Switch to threaded view of this topic Create a new topic Submit Reply
SQL errors from the API [message #161968] Sat, 27 February 2010 23:16 Go to next message
Slicke is currently offline  Slicke   Sweden
Messages: 3
Registered: February 2010
Karma: 0
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!
Re: SQL errors from the API [message #161969 is a reply to message #161968] Sun, 28 February 2010 02:35 Go to previous message
Slicke is currently offline  Slicke   Sweden
Messages: 3
Registered: February 2010
Karma: 0
Junior Member
I solved it, thanks anyway Embarassed
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Search in Topic Description
Next Topic: how many messages?
Goto Forum:
  

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

Current Time: Fri Nov 22 22:53:26 GMT 2024

Total time taken to generate the page: 0.02366 seconds