MySQL Resources
- Select Random Rows - Selecting random rows from large tables.
MySQL Resources
#!/usr/bin/env bash | |
# | |
# Create a DB dump named with todays date and time. | |
# | |
USERNAME="" | |
DATABASENAME="" | |
mysqldump -u "$USERNAME" -p "$DATABASE_NAME" > $(date +"%m-%d-%y_%H-%M%p").sql |