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
| # Get regular database gziped | |
| mysqldump -h <database host> --user=<database username> --password=<password> --single-transaction <database name> | sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*/\*/' | gzip > /tmp/database_no-definer.sql.gz | |
| # Restore regular database gziped | |
| zcat /tmp/database.sql.gz | sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*/\*/' | mysql -h <database_host> -u <username> -p <password> <database_name> | |
| # Get database from docker container | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore database to docker container |
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
| <VirtualHost *:80> | |
| ServerName magento2.dev | |
| SetEnv MAGE_RUN_CODE "base" | |
| SetEnv MAGE_RUN_TYPE "website" | |
| DocumentRoot "/var/www/html/magento2.dev/pub" | |
| <Directory "/var/www/html/magento2.dev/pub"> | |
| AllowOverride All | |
| Order Allow,Deny |