Jump to content

Access denied SQL error


Recommended Posts

Hello,

I'm having a similar problem after upgrading version v5 to v6.0.5. I have received the following when trying to access my homepage:


Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 30

Warning: mysqli_options(): Couldn't fetch mysqli in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 32

Fatal error: Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 35

---

My index.php file appears to be fine:

 

<?php
/**
 * CubeCart v6
 * ========================================
 * CubeCart is a registered trade mark of CubeCart Limited
 * Copyright CubeCart Limited 2015. All rights reserved.
 * UK Private Limited Company No. 5323904
 * ========================================
 * Web:   http://www.cubecart.com
 * Email:  [email protected]
 * License:  GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
 */
require dirname(__FILE__).DIRECTORY_SEPARATOR.'ini.inc.php';
define('CC_IN_ADMIN', false);

header('X-Frame-Options: SAME-ORIGIN'); // do not allow iframes

global $config_default;

include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.index.inc.php';

$GLOBALS['smarty']->display('templates/'.$global_template_file);

 

----

Any thoughts? Any help would be appreciated! Many thanks.

Link to comment
Share on other sites

Do not copy the contents of the following file in your next reply, but examine the file /includes/global.inc.php and make sure the values for these variables have not changed since CC5:

$glob['dbdatabase'] = 'something';
$glob['dbhost'] = 'servername';
$glob['dbpassword'] = 'something';
$glob['dbprefix'] = 'if_used';
$glob['dbusername'] = 'something';

If, when upgrading your CC5 to CC6, you may have chosen to establish a new database -- requiring the telling to the database server that the dbusername/dbpassword is authorized to access this new database.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...