luangjokaj / wordpressify

🎈 Automate your WordPress development workflow.
http://www.wordpressify.co
MIT License
1.6k stars 142 forks source link

Import/Export database #81

Closed SimonFricker closed 3 years ago

SimonFricker commented 3 years ago

How can this be done? Can phpMyAdmin be added?

luangjokaj commented 3 years ago

Hi @SimonFricker try this: https://gist.github.com/geraldvillorente/4c60e7fdb5562f443f16ad2bbe4235ce or Google "import export database from docker".

I use this plugin to do the job for me: https://wordpress.org/plugins/all-in-one-wp-migration/ It takes care of the uploads and everything else, so I don't have to take the time to replace URLs or similar stuff.

SimonFricker commented 3 years ago

Thanks for the quick reply @luangjokaj - could you add this to the main readme?

Edit - & thankyou for wordpressify!

luangjokaj commented 3 years ago

@SimonFricker yes good idea, I will add it. Thank you.

SimonFricker commented 3 years ago

Would you consider adding phpmyadmin? it's important to be able to modify the DB easily.

ribaricplusplus commented 3 years ago

Personally, I don't use phpMyAdmin; I do all database management on the command line. Exporting can be done using the mysqldump tool.

But I can understand how it would be convenient.

It could be done relatively easily by adding another container with the phpMyAdmin image However this would increase installation times and add a tool that some people might not need... I guess it is a bit of a tradeoff.

SimonFricker commented 3 years ago

it could be an option during setup?

🤷‍♂️

On Thu, 10 Dec 2020, 22:04 Bruno Ribarić, notifications@github.com wrote:

Personally, I don't use phpMyAdmin; I do all database management on the command line. Exporting can be done using the mysqldump tool.

But I can understand how it would be convenient.

It could be done relatively easily by adding another container with the (phpMyAdmin image)[https://hub.docker.com/r/phpmyadmin/phpmyadmin/]. However this would increase installation times and add a tool that some people might not need... I guess it is a bit of a tradeoff.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luangjokaj/wordpressify/issues/81#issuecomment-742828566, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ2GLO6FNQEZIGEWEIRLK3SUFAVFANCNFSM4UT2JG7A .

ribaricplusplus commented 3 years ago

That does sound nice.

I added this to my "Work on WordPressify when you have time" list; so I'll do it unless someone does it before me.

SimonFricker commented 3 years ago

Sounds good!

On Thu, 10 Dec 2020, 22:13 Bruno Ribarić, notifications@github.com wrote:

That does sound nice.

I added this to my "Work on WordPressify when you have time" list; so I'll do it unless someone does it before me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luangjokaj/wordpressify/issues/81#issuecomment-742833244, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ2GLMQI63JBMFRUJCXFGDSUFB2NANCNFSM4UT2JG7A .