Closed colmtroy closed 5 years ago
I'm new to Chassis, but not WP development. I saw something regarding an extension for phpMyAdmin, I'm planning on trying this out later this afternoon to see if I can simply import that way and run a search/replace if needed. https://github.com/Chassis/phpMyAdmin
@colmtroy It'd be a very similar process to import. I'd do it all with WP-CLI. I think it would be something similar to the following:
wp db export <filename.sql>
content
vagrant ssh
to SSH into your Chassis box.cd /vagrant/content
wp db import <filename.sql>
wp search-replace '//www.yoursite.com/wp-content' '//vagrant.local/content'
wp cache flush
wp-content
folder on production to your local content
folder.Alternatively you can do the export and import with phpMyAdmin as @dcneuts mentioned.
I might actually get around to adding some docs for #47 seeing I haven't got around to do that yet! 🙈
thanks @BronsonQuick and @dcneuts I managed to muddle through and pretty much do the steps you outlined @BronsonQuick - with the exception that I manually replaced the DB via SequelPro for Step 6.
I think a small guide might be useful for a ton of people looking to get up and running locally quick. Loving Chassis so far though - great work!!
You could also look at using the db-export extension. Commit your SQL export as a file called chassis-backup.sql
and it should automatically import on install.
Ooh - that's awesome @rmccue - nice one thanks!
Hey, I'm wondering is there a best practice for bringing a production DB into a Chasis environment? I spotted this issue re: migrating out. https://github.com/Chassis/Chassis/issues/47
Is there anything similar for brining a DB in? Thanks, Colm