Jump to content

changed user on a database and now get blank page


Recommended Posts

I had forgotten my user password on a database,read u could just delete the one there and add another one to the same database.Did that with no problems,all seemed good.When I looked at my webpage it's blank;I'm getting"[20-Dec-2012 16:10:13] PHP Fatal error: Uncaught Link to database cannot be established: SQLSTATE[28000] [1045] Access denied for user 'xxxxxxxx_pre2'@'localhost' (using password: YES) thrown in /home1/xxxxxxx/public_html/classes/db/DbPDO.php on line 58".I know this is common by looking for answers.This is how line 58 begins "throw new PrestaShopDatabaseException(sprintf(Tools::displayError('Link to database cannot be established: %s'), $e->getMessage()));

}

 

// UTF-8 support

if ($this->link->exec('SET NAMES \'utf8\'') === false)

throw new PrestaShopDatabaseException(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));"

Is this telling me that I don't have UTF-8 support ".How can I correct this ?

 

Thank You in advance

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Hello!

 

I have a similar problem. I get the following error after uploading the prestashop files to a hosting server:

 

[Thu Feb 28 14:57:00 2013] [warn] [client 2.85.14.176] mod_fcgid: stderr: PHP Fatal error: Uncaught Link to database cannot be established: SQLSTATE[28000] [1045] Access denied for user 'r26121cmo2_user'@'localhost' (using password: YES)

[Thu Feb 28 14:57:00 2013] [warn] [client 2.85.14.176] mod_fcgid: stderr: thrown in /var/www/vhosts/mypbx.gr/leds4you/classes/db/DbPDO.php on line 57

 

 

I have modified the settings.inc.php file like this:

 

<?php

define('_DB_SERVER_', 'localhost');

 

define('_DB_NAME_', 'r26121cmo2_leds');

 

define('_DB_USER_', 'r26121cmo2_user');

 

define('_DB_PASSWD_', 'XXX');

 

define('_DB_PREFIX_', 'ps_');

define('_MYSQL_ENGINE_', 'InnoDB');

define('_PS_CACHING_SYSTEM_', 'CacheMemcache');

define('_PS_CACHE_ENABLED_', '0');

define('_MEDIA_SERVER_1_', '');

define('_MEDIA_SERVER_2_', '');

define('_MEDIA_SERVER_3_', '');

define('_COOKIE_KEY_', 'NI0T145oj9BY19sO2xVvCT87EWjNbhecd0Hhuab4hxunwAvArWzqgvLK');

define('_COOKIE_IV_', '7bpEDzSe');

define('_PS_CREATION_DATE_', '2013-01-28');

define('_PS_VERSION_', '1.5.3.1');

 

I don't really understand what is going on on line 57 of the DbPDO.php file and why I'm getting this error and don't know how to solve this.

 

Could you please help me on this?

 

Thank you in advance

Dora Kalesi

Edited by DoraKalesi (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

I been have the same problem

 

 

define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'my new dbase on server');
define('_DB_USER_', 'the new user for my new dbase');
define('_DB_PASSWD_', 'XXXXXXX');

 

error:

Link to database cannot be established: SQLSTATE[28000] [1045] Access denied for user...

 

Could you please help me on this?

 

Thank you in advance!

Link to comment
Share on other sites

follow DoraKalesi suggestion, i think that you use wrong connection informations, you should try to connect to your database from external software like heidisql or something, it is easy in use software and you can check the correctness of connection data

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Error

SQL query:

--

-- Database: `sensation_db1`

--

CREATE DATABASE IF NOT EXISTS `sensation_db1` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;

MySQL said: b_help.png

#1044 - Access denied for user 'sensahncxh_1'@'%' to database 'sensation_db1'

 

 

Same problem happening in import,

do i have to change config/settings.inc.php before import or after?

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...

Hello,i had problem with the category,and after that i had done a rollback to an earlier version,but it totaly did crap my site.

I had done everthing backup up,so after deleting everthing from the server,i did do an restore to everthing,but now i have only a blank webpage,how can i fix this?

Thank you

site http://sokolatea.eu

Edited by Gve (see edit history)
Link to comment
Share on other sites

  • 10 months later...

Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 

 
 
i am getting this problem while trying to install prestashop in a server. i created database, user, password but still i am unable to install.
 
 
 
<?php
define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'prestashop');
define('_DB_USER_', 'root');
define('_DB_PASSWD_', 'iltpc100');
define('_DB_PREFIX_', 'ps_');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_PS_CACHING_SYSTEM_', 'CacheMemcache');
define('_PS_CACHE_ENABLED_', '0');
define('_COOKIE_KEY_', '33O4t14Q9X4jxvhp0bRzHNWPRGX3YG9Fxwo0nTW5rR5DrJfHbMJuXone');
define('_COOKIE_IV_', 'YzOXXRpW');
define('_PS_CREATION_DATE_', '2015-07-15');
if (!defined('_PS_VERSION_'))
define('_PS_VERSION_', '1.6.1.0');
define('_RIJNDAEL_KEY_', 'wjBxoN6Q4DoHUewozKfpi5PT3woKgUwH');
define('_RIJNDAEL_IV_', 'fM8B0vxdHa4F35MjHQGtmQ==');
Link to comment
Share on other sites

  • 8 months later...
 

I am changing host for my website and it contains a lot of data. I moved all the data in my domain folder under Public_html directory and then imported all of the DB from PhpMyAdmin. Before importing the database it was showing twenty thirteen theme and Hello world post but after importing it just shows a blank page without giving any error. Although the /wp-admin URL works fine.

Link to comment
Share on other sites

  • 1 month later...

hello every one, im new in this forum, can some one help me solving this error

Link to database cannot be established: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

 

and i have change all my settings to my new dbname, username and password to my new one.

 

it was working fine offline but now i move online it showing me this error

 

im hosting with GODADDY.COM

 

<?php
define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'xxxx');
define('_DB_USER_', 'xxxx');
define('_DB_PASSWD_'xxxx'');
define('_DB_PREFIX_', 'ps_');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_PS_CACHING_SYSTEM_', 'CacheMemcache');
define('_PS_CACHE_ENABLED_', '0');
define('_COOKIE_KEY_', 'SKUQJbgR0oLQIB4eK4viYRtg55DHyw4oB3GB9TJwW8HuSfvpgxXftuh6');
define('_COOKIE_IV_', 'mcyaAGPU');
define('_PS_CREATION_DATE_', '2016-02-10');
if (!defined('_PS_VERSION_'))
    define('_PS_VERSION_', '1.6.1.4');
define('_RIJNDAEL_KEY_', 'gDvE3hjZAUWL9PhjSw4KIRmg7dtbG2WX');
define('_RIJNDAEL_IV_', 'uQzUXZ7mK/NHY7fvemkE+A==');
 

 

thank you.

Link to comment
Share on other sites

×
×
  • Create New...