Jump to content

The database selection cannot be made


Recommended Posts

After trying to import the csv file with product in my shop I got the error:
 

[PrestaShopDatabaseException]

The database selection cannot be made.
at line 41 in file classes/db/MySQL.php

 

41.             throw new PrestaShopDatabaseException(Tools::displayError('The database selection cannot be made.'));

 

I have a problem imoprting more than 20 products in csv file in Prestashop csv import tool. I was thinking that maybe chasters like "/" оr "&" making a problem in the rows of product name in csv tabel and I delete it, but again I have the same error. Also, sometimes I get this error, sometimes I can upload my csv file.

 

Can anybody help with this error?

 

Link to comment
Share on other sites

The script cannot select the database. It is a fatal issue and I've never seen it. Ask your server admin.

if (!$this->set_db($this->database))
    throw new PrestaShopDatabaseException(Tools::displayError('The database selection cannot be made.'));
Link to comment
Share on other sites

Server admin said that problem is not with the server but with the Prestashop. Should I try to recover the shop with some older backup or to try to upgrad on newer version? Can it be a solution? Or which server hosting do you recommend for Prestashop?

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...