Dump sql file to ClearDB in Heroku

后端 未结 4 761
萌比男神i
萌比男神i 2021-01-30 09:33

I have a sql file that I want to be dumped into a MySQL database that I have in Heroku using the ClearDB addon. When dumping in local I do the following:

mysql          


        
4条回答
  •  Happy的楠姐
    2021-01-30 10:15

    It doesn't work for me on the new version of mysql. So I tried following code:

    mysql -h us-cdbr-east.cleardb.com -u b5xxxxx7 -p heroku_xxxxxx < my_dump_file.sql 
    

    and then it asks your password.

提交回复
热议问题