mage2click / m2c

Mage2click toolset to create and manage the Magento Docker development environment with mutagen.io file-sync for macOS and native filesystem mounts on Linux.
https://mage2.click
MIT License
69 stars 23 forks source link

Custom database name #39

Closed webphpprojects closed 4 years ago

webphpprojects commented 4 years ago

Hello, I have a question related to database. Default m2c tool creates db with name magento. Is any way to change customize it and set other name of db? The problem is that I need to import dump of database which is quite big. It's hard to change the name of database in large file (of course it's hard but possible), however maybe there is any way to access custom database?

shkoliar commented 4 years ago

Hello, @webphpprojects!

If you have m2c project up and have imported database with custom name, you can switch it by editing .env file in the project root. Check the M2C_CFG_MYSQL_DATABASE env variable.

shkoliar commented 4 years ago

The issue was closed accidentally. Anyway, we're checking on how to add a step for setting the database name during the import process.

webphpprojects commented 4 years ago

Thank you for both.