loginlogos
09-12-2006, 10:48 AM
Hey i just bought a bluehost package and have uploaded my shop from my local setup to bluehost servers. I updated the configure.php file to reflect the server changes, however i seem to be having a problem with the database setup, this is the error message i receive.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ' loginlog_a'@'localhost' (using password: YES) in /home/loginlog/public_html/includes/functions/database.php on line 18
Unable to connect to database server!
I have uploaded my database fine so thats not the issue, should i leave the DB server as localhost??
This is my complete configure file (masking actual password): -
<?php
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.loginlogos.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL',false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', '/images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/www/loginlogos.com/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', ' loginlog_a');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'loginlog_logos');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
In the Mysql setup area of Cpanel i see that
user: loginlog_a and DB: loginlog_logos
I have added this user to the database, but i still get the error at the start...any help here would be GREATLY appreciated!
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ' loginlog_a'@'localhost' (using password: YES) in /home/loginlog/public_html/includes/functions/database.php on line 18
Unable to connect to database server!
I have uploaded my database fine so thats not the issue, should i leave the DB server as localhost??
This is my complete configure file (masking actual password): -
<?php
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.loginlogos.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL',false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', '/images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/www/loginlogos.com/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', ' loginlog_a');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'loginlog_logos');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
In the Mysql setup area of Cpanel i see that
user: loginlog_a and DB: loginlog_logos
I have added this user to the database, but i still get the error at the start...any help here would be GREATLY appreciated!