This file contains 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
Dump and restore a single table from .sql | |
Dump | |
mysqldump db_name table_name > table_name.sql | |
Dumping from a remote database | |
mysqldump -u <db_username> -h <db_host> -p db_name table_name > table_name.sql | |
For further reference: | |
http://www.abbeyworkshop.com/howto/lamp/MySQL_Export_Backup/index.html |
This file contains 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
#!/usr/bin/env bash | |
echo " | |
---------------------- | |
PM2 | |
---------------------- | |
" | |
# install pm2 with npm | |
sudo npm install -g pm2 |