SHARE
TWEET

Untitled

a guest May 22nd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mysqldump --skip-opt --single-transaction --user=root --password=xxx --all-databases > "/root/drupal/mysqldump-all-databases-2010-04-27.txt"
  2. mysqldump --skip-opt --single-transaction --user=root --password=xxx --databases drupaldb01 > "/root/drupal/mysqldump-database-drupaldb01-2010-04-27.txt"
  3.  
  4. mysqladmin --user=root --password=xxx drop drupaldb01 --force
  5. mysqladmin --user=root --password=xxx create drupaldb01
  6.  
  7. mysql --user=root --password=xxx < /root/drupal/mysqldump-all-databases-2010-04-27.txt
  8. or
  9. mysql --user=root --password=xxx drupaldb01 < /root/drupal/mysqldump-database-drupaldb01-2010-04-27.txt
  10.  
  11.  
  12. # mysql --user=root --password=xx < /root/drupal/mysqldump-all-databases-2010-04-27.txt
  13. ERROR 1050 (42S01) at line 12443: Table 'columns_priv' already exists
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top