Jump to content

[SOLVED]Database error during installation


horejsja

Recommended Posts

 
 
 

Hi! im havig issues when trying to install prestashop 1.7.0.0.
the idea behind the script im writing is installation automatization. based on text input i generate new database user and then pass login credentials and database name to /install/index_cli.php.
but it fails the first time i try to execute the script with error:
 

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

when i tried to run the installation again it gave me fatal error when trying include files from /app/cache/prod/.
as next step i obviously copied all missing files back and ran script once again. This time installation finished without a problem.
So every time i try to install a new shop it fails on first attempt and i have to manually copy contents of /app/cache/prod/ back and run installation again.
of course i can copy the files within my script and run installation again, but it seems like rather sloppy solution.
any idea what is going on?

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

Make sure you have updated the following file when you run the installation-automatation script.

 

/app/config/parameters.pphp

<?php return array (
  'parameters' => 
  array (
    'database_host' => '127.0.0.1',
    'database_port' => '',
    'database_name' => 'xxxx',
    'database_user' => 'yyyy',
    'database_password' => 'xxxxx',
    'database_prefix' => 'ps_',
  • Like 1
Link to comment
Share on other sites

  • 2 years later...
On 7/1/2017 at 19:24, horejsja said:

Prueba esto: 

abrir: var / cache / prod / ContainerXo3vxws / appProdProjectContainer.php 

Alrededor de la fila 905, cambie la configuración de la base de datos con la suya.

Limpia el navegador web caché y reinicia tu página. ¡Buena suerte!

 
 
 
 
 
 
 
 
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...