Title: database not pushing
Last modified: August 21, 2016

---

# database not pushing

 *  Resolved [whomikey](https://wordpress.org/support/users/whomikey/)
 * (@whomikey)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/)
 * i’m trying to push the database and the files but only the files are pushing.
   i tried to push “entire database” and then i tried one of the other options at
   a time to see if that would make a difference, and it didn’t. all of my files
   are pushing fine. there are no errors being displayed (i enabled SitePush debug).
   my push results are below:
 *     ```
       [1] Push started at Thu, 05 Sep 2013 19:44:47 +0000
       [2] Database backup off
       [1] Maintenance mode on
       [3] RUN: echo "<?php \$upgrading=1378410287; ?>" > C:\wamp\www\wordpress.dev/.maintenance
       [1] Pushing database tables from live to dev: --tables wp_links wp_postmeta wp_posts wp_term_relationships wp_term_taxonomy wp_terms
       [2] Database source: live (wordpress) on localhost/wordpress
       [2] Database dest: dev (wordpress.dev) on localhost/wordpress.dev
       [3] RUN: C:/wamp/bin/mysql/mysql5.6.12/bin/mysqldump.exe --opt --verbose -u root -p'*****' wordpress --tables wp_links wp_postmeta wp_posts wp_term_relationships wp_term_taxonomy wp_terms | C:/wamp/bin/mysql/mysql5.6.12/bin/mysql.exe -D wordpress.dev -u root -p'*****'
       [1] Maintenance mode off
       [3] RUN: if [ -f "C:\wamp\www\wordpress.dev/.maintenance" ]; then rm "C:\wamp\www\wordpress.dev/.maintenance"; fi
       [1] Push completed at Thu, 05 Sep 2013 19:44:47 +0000
       [1] Push took 0.1874988079071 seconds
       ```
   
 * _[Please post log files between backticks or use the code button.]_
 * when i enable backup, the .sql file doesn’t save but an .undo file does. not 
   sure if that gives you anymore clues.
 * thanks!
 * [http://wordpress.org/plugins/sitepush/](http://wordpress.org/plugins/sitepush/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mark Rowatt Anderson](https://wordpress.org/support/users/markauk/)
 * (@markauk)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/#post-4100026)
 * From the info you posted, the command which is actually doing (or not) the copying
   from one DB to the other is:-
 * `C:/wamp/bin/mysql/mysql5.6.12/bin/mysqldump.exe --opt --verbose -u root -p'*****'
   wordpress --tables wp_links wp_postmeta wp_posts wp_term_relationships wp_term_taxonomy
   wp_terms | C:/wamp/bin/mysql/mysql5.6.12/bin/mysql.exe -D wordpress.dev -u root-
   p'*****'`
 * What happens if you try running that directly in a terminal window? You’ll need
   to replace the ***** with the correct passwords for each DB.
 * If that doesn’t work then given the way the DB is being moved, i.e. piping from
   mysqldump to mysql (which is standard in linux type environments), may need to
   be done differently on Windows.
 *  Thread Starter [whomikey](https://wordpress.org/support/users/whomikey/)
 * (@whomikey)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/#post-4100031)
 * i set the password in the database config:
 * _[all]
    prefix = wp\_
 * [live]
    name = wordpress user = root pw = test
 * [dev]
    name = wordpress.dev user = root pw = test
 * you were right though, Windows doesn’t like something and it ended up being the
   forward slashes so i had to replace them with backslashes. _C:\wamp\bin\mysql_
   fixed that issue. now i’m getting the _“ERROR 1045 (28000): Access denied for
   user ‘root’@’localhost’ (using password: YES)”_ and i know what it means but 
   i set the passwords in the database config (code above) so i’m not sure why it
   would do that?
 * thanks for all of your help so far! hopefully my issues can help other Windows
   users!
 *  Thread Starter [whomikey](https://wordpress.org/support/users/whomikey/)
 * (@whomikey)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/#post-4100035)
 * the issue with the password error has been resolved. it looks like single quotes
   are causing a problem with the password because the password is a variable. to
   fix this i edited your _classes/class-sitepush-core.php file line 262 and line
   263_ changing the _-p'{$db\_source[‘pw’]}’_ to _-p{$db\_source[‘pw’]}_
 * thank you for your help! the plugin is awesome now that i got it working! 🙂
 *  Plugin Author [Mark Rowatt Anderson](https://wordpress.org/support/users/markauk/)
 * (@markauk)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/#post-4100060)
 * Thanks for following up and glad you got it fixed.
 * The single quotes around the password that you changed aren’t because there’s
   a variable in there… those single quotes are from the shell command – the whole
   PHP expression is in double quotes so the variable will be inserted properly.
 * It’s possible windows shell doesn’t like single quotes, or – did you have a single
   quote or any other non alphanumerics in the password?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘database not pushing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sitepush.svg)
 * [SitePush](https://wordpress.org/plugins/sitepush/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sitepush/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sitepush/)
 * [Active Topics](https://wordpress.org/support/plugin/sitepush/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sitepush/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sitepush/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mark Rowatt Anderson](https://wordpress.org/support/users/markauk/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/database-not-pushing/#post-4100060)
 * Status: resolved