Parse error: parse error in
/home/www/site/plima/inc/config.inc.php on line 43
Warning: mysql_pconnect(): Unknown MySQL Server Host
'DB_HOST' (0) in
/home/www/site/plima/inc/db-share.inc.php on line 46
Warning: mysql_select_db(): supplied argument is not a
valid MySQL-Link resource in
/home/www/site/plima/inc/db-share.inc.php on line 48
Database connection error.
The back-end said: Unknown MySQL Server Host 'DB_HOST' (0)
Access denied for user: '@localhost' to database 'DB_NAME'
my config.inc.php is
// Define the database connection variables.
define("DB_TYPE", "2");
// 2=MySQL, 1=PostgreSQL, currently pLiMa won't work
with PostgreSQL
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "password");
define("DB_NAME", "lima");
// phpmailer configuration settings - see the
phpmailer documentation for more
information
define("PHPMAILER_SEND_METHOD", "sendmail");
// options are 'sendmail
', 'smtp', 'mail'
define("PHPMAILER_SMTP_HOST", "127.0.0.1");
// set to smtp. a
ccepts a semicolon separated
// list of servers
as fallback.
define("PHPMAILER_AUTH", "0")
// 0 = no authentication, 1 =
authenticate
define("PHPMAILER_AUTH_USERNAME", "username");
// only used if PHPMAILE
R_AUTH = 1 and
//
PHPMAILER_SEND_METHOD = 'sm
tp' , username to authenticate
// to
SMTP server as
define("PHPMAILER_AUTH_PASSWORD", "password");
// password to authentic
ate to SMTP server
// The database table defaults
define("TABLE_PREFIX", "plima_");
// table prefix
$table_key = 'SMALLINT';
// default key field type
// SMALLINT
UNSIGNED = 65535
// MEDIUMINT
UNSIGNED = 16777215
// Define the location for personal data.
// This folder should not be visible via the http
server. This can be restric
ted using the .htaccess file
define("DATA_ROOT", APP_ROOT."/data");
?>
Logged In: YES
user_id=301459
The variables do not seem to be set
Logged In: YES
user_id=301459
This can be fixed by changing the line :
define("PHPMAILER_AUTH", "0")
in config.php.inc and adding a semicolon
define("PHPMAILER_AUTH", "0");