简体   繁体   English

如何将MySQL数据库转储从本地上传到Acquia云?

[英]How to upload the MySQL database dump from local to Acquia cloud?

如何将MySQL数据库转储文件从本地上传到Acquia云?,我可以看到https://cloud.acquia.com/app/develop用户界面已更改,但我找不到任何数据库导入选项,请有人指导我这个。

Make sure your local have drush alias, for example by using 'beetbox' Vagrant VM which provides one by defult - more on that here http://ivan.grynenko.com/how-stop-worrying-and-enjoy-developer-life-vagrant 确保您的本地用户具有紧急别名,例如,使用“甜菜盒” Vagrant VM,该虚拟机通过defult提供一个别名-有关更多信息,请访问http://ivan.grynenko.com/how-stop-worrying-and-enjoy-developer-life -流浪汉

When you setup alias for your local, just update aliases from acquia 为本地设置别名时,只需从acquia更新别名

drush acquia-update

and after that you could sync environments as you wish like so: 之后,您可以按照需要同步环境:

drush sql-drop @acquia_alias.dev
drush sql-sync @site.local @acquia_alias.dev

The example above will drop all tables in the Acquia Dev, and then sync your local DB over to Acquia Dev 上面的示例将删除Acquia Dev中的所有表,然后将本地数据库同步到Acquia Dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM