#!/usr/bin/env php
Warning: Use of undefined constant redis - assumed 'redis' (this will throw an Error in a future version of PHP) in /home/dd67555/leanchow.com/public_html/include/library/Crunchbutton/Session.php on line 9
Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/dd67555/leanchow.com/public_html/include/library/Crunchbutton/Auth/Base.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/dd67555/leanchow.com/public_html/cli/dbimportfromlive.php:1) in /home/dd67555/leanchow.com/public_html/include/library/Crunchbutton/App.php on line 242
Warning: Cannot modify header information - headers already sent by (output started at /home/dd67555/leanchow.com/public_html/cli/dbimportfromlive.php:1) in /home/dd67555/leanchow.com/public_html/include/library/Crunchbutton/App.php on line 243
Warning: Cannot modify header information - headers already sent by (output started at /home/dd67555/leanchow.com/public_html/cli/dbimportfromlive.php:1) in /home/dd67555/leanchow.com/public_html/include/library/Crunchbutton/App.php on line 244
rm ../db/dump.sql
mysqldump -d --lock-tables=false -h _HOST_ -u -p >> ../db/dump.sql
mysqldump --no-create-info --skip-triggers --lock-tables=false --ignore-table=crunchbutton.session --ignore-table=crunchbutton.log --ignore-table=crunchbutton.analytics_event --ignore-table=crunchbutton.admin_location -h _HOST_ -u -p >> ../db/dump.sql
sed "s/\`devin\`@\`%\`/\`root\`@\`localhost\`/g" ../db/dump.sql > ../db/dump.sqltmp
mv ../db/dump.sqltmp ../db/dump.sql
sed "s/\`crunchapple\`@\`%\`/\`root\`@\`localhost\`/g" ../db/dump.sql > ../db/dump.sqltmp
mv ../db/dump.sqltmp ../db/dump.sql
mysql -u root -proot crunchbutton < ../db/dump.sql