Jump to content

Link to database cannot be established: SQLSTATE[42000] [1049] Unknown database 'prestashop


Recommended Posts

Hello!

I was working on local server with Ps 1.5.6 and downloaded MAMP. I've done few changings to html files.

Now it's happened that I've deleted MAMP and have downloaded it again on my mac (version 1.9.6, same that I was using).

Now when I put the link to my 127.0.0.1:8888/prestashop/admin as I usually do to go to my backoffice, I get this message "Link to database cannot be established: SQLSTATE[42000] [1049] Unknown database 'prestashop'". Same when I try to go to my front office.

I've already checked file setting.inc.php (in config folder) and all is same as before, because I didn't do any change to prestashop files.

When I edit localhost:8888 it takes me to the following page, but if I click on prestashop folder I get the same message as above.

Index of /

blank.gifName Last modified Size Description

folder.gifprestashop/ 07-Oct-2013 13:28 -

Apache/2.0.64 (Unix) PHP/5.3.5 DAV/2 Server at localhost Port 8888

 

Can anyone help me to get back to my website please? :rolleyes:

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

Solved it!!!!

I've deleted file setting.inc.php (since that is created when you install prestashop), then I put in my prestashop folder the folder install (i took it from a new download of prestashop, same version), then I put the url localhost:8888 and clicked on the prestashop folder. The installation process started and now I have my website back!

  • Like 1
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...