Backup:
mysqldump -u username -p [-h hostname] [database_name] > dumpfilename.sql
Import
mysql -u username -p [-h hostname] [database_name] < path/to/dumpfilename.sql
NOTE: One could also type down password in advance -p[password]
, but this option is insecure since password will then be visible in shell command history.
There is a way using CSS! If you set your width depending on the parent…
grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n is line number, and -w stands for match the…
This snippet will remove duplicate lines from text file: awk '!seen[$0]++' filename It will display…
Easiest way to export your database is through phpMyAdmin. With few clicks you can get…
Put this code into a .sh file, add executable permissions to it and add it…
Put this code into a .sh file, add executable permissions to it and add it…