This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * BookWriters | |
| * @author Md Nasir Fardoush([email protected]) | |
| */ | |
| namespace NasirFardoush\BookWriters\Setup; | |
| /** | |
| * Class InstallSchema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Export | |
| docker exec container_name /usr/bin/mysqldump -u db_user --password=db_pass db_name > database.sql | |
| # Import | |
| cat database.sql | docker exec -i container_name /usr/bin/mysql -u db_user --password=db_pass db_name | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.0' | |
| services: | |
| database: | |
| container_name: custome_mysql | |
| image: mysql:8.0 | |
| volumes: | |
| #Custome file path ./docker/my.cnf | |
| #Mysql mysql file path /etc/mysql/my.cnf | |
| - './docker/my.cnf:/etc/mysql/my.cnf' | |
| environment: |