Jump to content

step 3 - "A Prestashop database already exists, please drop it or change the prefix”


Recommended Posts

im new here but i will try and help ya. Go into "Manage MYSQL" or MYSQL and just delete the database. Then create a new one ( be sure to rename it the same thing "prestashop") and try to reinstall again. What i mean by reinstall is just activate the index.php file again. you dont have to upload the entire file again. it is reading the database from the previous prestashop install you completed. Hope this helps. Cheers

Link to comment
Share on other sites

Yep, do what the OP said.

If you're using PHPMYADMIN it's quite easy... just select the DATABASE from the list on the left column and choose the "DROP" option.

If you're using the command line... log in via CMD or terminal.

>mysql -u username -p (hit enter, next line will ask for your password)
>Enter password: (Enter your password, hit enter)

Then you can view the databases by typing:
>SHOW DATABASES;

Then you can drop one of the databases from the list with this command:
>DROP DATABASE name_of_database;

Then you can create a new database:
>CREATE DATABASE name_of_database;

Then if you logged into as root.. you probably want to dedicate another user specifically for your PS DB esp. if you have other databases.
So create user and grant privileges:
>CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
>GRANT ALL PRIVILEGES ON name_of_database TO 'username'@'localhost';

Then try the installation process again.

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...