Home »
FUDforum »
How To »
SQL errors from the API
SQL errors from the API [message #161968] |
Sat, 27 February 2010 23:16 |
Slicke
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!
|
|
|
|
Goto Forum:
Current Time: Sat Nov 23 09:24:49 GMT 2024
Total time taken to generate the page: 0.02209 seconds