Dump sql file to ClearDB in Heroku

后端 未结 4 738
萌比男神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条回答
  •  旧巷少年郎
    2021-01-30 10:28

    I try all the answers above, but none work.

    Then I read this, and I conclude that I need to try it on CMD (previously I use Windows PowerShell admin).

    No more errors in code.

    I used this code (provided in the previous comment)

    mysql -h us-xxxxxx.cleardb.com -u b7xxxxxxx -p heroku_df32xxxxxxx < dbname.sql
    

提交回复
热议问题