Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Cannot connect to db Rate Topic   - - - - -

 
  • king
  • Junior Member
  • Members
  • Join Date: 30-Oct 06
  • 26 posts

Posted 04 December 2007 - 11:35 PM #1

password=3621' ! Could not connect to DB. Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)...


<?php

if(!defined('IN_SCRIPT')) { exit('Access denied'); }

define('DB_SERVER', '');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
define('DB_NAME', '');
define('PASSWORD', '3621'); <--------------------- Whats that and where do i change it to correct password

What password is it for anyway!!!!!!!!!!!!!!!!


define('SMB_DIR', dirname(__FILE__)); // directory where script is placed into
define('SMB_TMP_DIR', SMB_DIR . '/files'); // writable directory for storing temporary data
define('SMB_BACKUP_DIR', realpath(SMB_DIR.'/..')); // directory, which will be backed up
define('COMPRESS_TGZ', 0);
define('COMPRESS_ZIP', 1);

define('FILES_PER_PASS', 20);
define('TABLES_PER_PASS', 20);

$skip_dirs = array (
SMB_BACKUP_DIR.'/backup',
SMB_BACKUP_DIR.'/var/database',
SMB_BACKUP_DIR.'/var/compiled',
//SMB_BACKUP_DIR.'/images',
SMB_BACKUP_DIR.'/catalog',
);

$skip_files = array (
'tgz',
'zip'
);

?>

 

Posted 05 December 2007 - 01:05 AM #2

Your database settings are in the config.php file under the root.

 
  • king
  • Junior Member
  • Members
  • Join Date: 30-Oct 06
  • 26 posts

Posted 05 December 2007 - 09:50 AM #3

I know these are in my config.php but not the password.


define('DB_SERVER', '');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
define('DB_NAME', '');
define('PASSWORD', '3621'); <--------------------- Whats that and where do i change it to correct password

What password is it for anyway!!!!!!!!!!!!!!!!


 
  • king
  • Junior Member
  • Members
  • Join Date: 30-Oct 06
  • 26 posts

Posted 05 December 2007 - 12:02 PM #4

Warning: Invalid argument supplied for foreach() in /home/content/a/l/i/alisond/html/core/include_addons.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/l/i/alisond/html/core/include_addons.php:45) in /home/content/a/l/i/alisond/html/core/fn_common.php on line 1970

 

Posted 06 December 2007 - 12:27 PM #5

I've never seen a script with duplicate passwords.

I suggest you install a fresh copy of CS-Cart and work from there.
I've moved on from CS-Cart to WooC******** - If you need anything I can be of little help.