mysql docker creating dump

https://hub.docker.com/_/mysql

create mysql dump:
docker exec CONTAINER_NAME sh -c 'exec mysqldump --all-databases -uUSER_NAME -p"PASSWORD"' > /tmp/all-databases.sql

example:
docker exec mysql-container sh -c 'exec mysqldump --all-databases -uroot -p"testpasswordforroot"' > /tmp/all-databases.sql

restore dump:
docker exec -i CONTAINER_NAME sh -c 'exec mysql -uUSER_NAME -p"PASSWORD"' < /tmp/all-databases.sql

example:
docker exec -i mysql-container sh -c 'exec mysql -uroot -p"testpasswordforroot"' < /tmp/all-databases.sql

Linux command to check disk space

Amount of disk space used and available on file system:
df -h
-h – human-readable format. Print sizes in powers of 1024 (e.g., 1023M)

Amount of disk space used by the specified files and for each subdirectory
du -h
-h – human-readable format. Print sizes in powers of 1024 (e.g., 1023M)

Disable chrome web security (cors) on MacOs

create a .command file: chrome-cors.command with the following code:

open /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir="" --disable-features=CrossSiteDocumentBlockingIfIsolating

make sure the chrome application is located in /Applications folder and is called Google Chrome.app
Launch the script from terminal (command line interface): ./chrome-cors.command
in the above example, in order to lunch the script, you have to be located in the same folder where the .command script is located