magento2-dockergento icon indicating copy to clipboard operation
magento2-dockergento copied to clipboard

Multiple database

Open alexfaproenca opened this issue 4 years ago • 1 comments
trafficstars

Hello, how do I have more than one database in the same project? Thanks

alexfaproenca avatar Mar 11 '21 16:03 alexfaproenca

Hello, how do I have more than one database in the same project? Thanks

Depending on what you to get you can remove MYSQL_DATABASE from docker-compose.yml , then you need to login as with the root user and create the database manualy. And set the permissions for the magento user

You can do this by the following command or you do this in a gui like Sequal Pro where you can set a global permission.

Example: Database magento_dev GRANT ALL PRIVILEGES ON magento_dev TO 'magento'@'%';

alainseys avatar Sep 05 '21 22:09 alainseys