heroku db:pull cant connect to my DB in ubuntu

后端 未结 3 1079
星月不相逢
星月不相逢 2021-01-25 02:55

So I recently updated ubuntu to 11.04 and then downgraded back to 11.04 because I hated unity. Anyway, after I reinstalled 11.40 I had to clone all my old heroku apps and tried

相关标签:
3条回答
  • 2021-01-25 03:27

    run :

    gem install taps then heroku db:pull again

    It may be work?

    0 讨论(0)
  • 2021-01-25 03:38

    You may have mysql2 in your Gemfile but have you done a bundle install - i.e. do you have the mysql2 gem installed ?

    0 讨论(0)
  • 2021-01-25 03:44

    run :

    gem install mysql2 than heroku db:pull again ...

    if you get this error with the previous "gem install mysql2" :

    Building native extensions.  This could take a while...
    ERROR:  Error installing mysql2:
      ERROR: Failed to build gem native extension.
    

    probably libmysqlclient-dev package should be installed :

    sudo apt-get install mysql-server mysql-server-5.1 libmysqlclient-dev mysql-client-5.1 mysql-common
    

    than

    gem install mysql2
    

    ... or eventually run

    locate mysql_config
    

    then replace the resulting path, with in the following command path :

    sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
    
    0 讨论(0)
提交回复
热议问题