horejsja Posted January 8, 2017 Share Posted January 8, 2017 (edited) 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 January 8, 2017 by horejsja (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 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_', 1 Link to comment Share on other sites More sharing options...
horejsja Posted January 8, 2017 Author Share Posted January 8, 2017 it worked!Thank you so much Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 You are welcome. Thanks for your feedback. Link to comment Share on other sites More sharing options...
pal651 Posted March 14, 2019 Share Posted March 14, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now