Categories
Linux UNIX

MySQL – Backup & Restore A Database

Dump all databases mysqldump -u <USERNAME> -p<PASSWORD> –all-databases > alldatabases.sql Dump Multiple/Specific Databases mysqldump -u <USERNAME> -p<PASSWORD> -databases db_name1 [db_name2 …] > alldatabases.sql Dump (Backup) A Single Database mysqldump -u <USERNAME> -p<PASSWORD> <DATABASE_NAME> > <DATABASE_NAME>.sql Restore A Single Database mysql -u <USERNAME> -p<PASSWORD> <DATABASE_NAME> < <DATABASE_NAME>.sql

Categories
Linux MAC UNIX

TCP DUMP – tcpdump

Wikipedia: “tcpdump is a common packet analyzer that runs under the command line. It allows the user to intercept and display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.” Common uses: “Tcpdump analyzes network behavior, performance and applications that generate or receive network traffic. It can […]