Change the database of a project aimeos

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ArthurHenrique
Posts: 18
Joined: 28 Jan 2021, 18:30

Change the database of a project aimeos

Post by ArthurHenrique » 16 Apr 2021, 13:47

Hi, I need help to change the database of my project aimeos.
I have no idea how to do that, I had created a new database and had changed the parameter (DB_DATABASE=) of the .env arquive, so I've try using php artisan migrate but its not worked, what I can do to have all the extructure that I had? Sorry about my english, its not so good.

Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10

User avatar
aimeos
Administrator
Posts: 8638
Joined: 01 Jan 1970, 00:00

Re: Change the database of a project aimeos

Post by aimeos » 18 Apr 2021, 08:40

You have to run this command to create the Aimeos database tables:

Code: Select all

php artisan aimeos:setup
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mahmoud
Posts: 29
Joined: 27 Mar 2020, 22:01

Re: Change the database of a project aimeos

Post by mahmoud » 18 Apr 2021, 12:17

Hi,
  • Change the database name in .env
  • change the name of the database in the file config/shop.php
write

Code: Select all

php artisan config:cache ;php artisan cache:clear ; php artisan aimeos:clear
and try the command :

Code: Select all

 php ./artisan aimeos:setup
php ./artisan route:clear
php ./artisan view:clear
php ./artisan aimeos:clear

Post Reply