lucas-shop Posted July 15, 2009 Share Posted July 15, 2009 Sorry for my ignorance. I installed prestashop on my local machine using XAMMP server. Everything worked fine, I almost finished the translation from English to Romanian, installed a new theme. But now I just want to put it online on a real server and I bought a domain. The hosting service does not allow me to have a database without some kind of prefix (something like user2450_database) but my database is simply named presta. Got any ideea about how can I change the name of the database where the shop is pointing ? Link to comment Share on other sites More sharing options...
glosticks Posted July 15, 2009 Share Posted July 15, 2009 database settings are stored in /config/settings.inc.php, you need to edit this fileregardsChris Link to comment Share on other sites More sharing options...
Patric Posted July 15, 2009 Share Posted July 15, 2009 Once your shop uploaded on the server, you'll have to edit the /config/settings.inc.php file and replace the lines : define('__PS_BASE_URI__', '/'); // if not in the same directory from the root. define('_DB_NAME_', 'presta'); define('_DB_SERVER_', 'localhost'); define('_DB_USER_', 'root'); define('_DB_PASSWD_', ''); Link to comment Share on other sites More sharing options...
lucas-shop Posted July 15, 2009 Author Share Posted July 15, 2009 Once your shop uploaded on the server, you'll have to edit the /config/settings.inc.php file and replace the lines :define('__PS_BASE_URI__', '/'); // if not in the same directory from the root. define('_DB_NAME_', 'presta'); define('_DB_SERVER_', 'localhost'); define('_DB_USER_', 'root'); define('_DB_PASSWD_', ''); Thank you. I will try as soon as I will be able to log in in my Back Office. Now the backoffice says " 1. employee does not exist, or bad password" Link to comment Share on other sites More sharing options...
Patric Posted July 15, 2009 Share Posted July 15, 2009 Did you export/import your DB from local to server ?Did you also copy the /config/settings.inc.php and leave the COOKIE_KEY line as it was in local ? 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