I am having trouble with migrating my Ruby on Rails MySQL database to Heroku server on Ubuntu 18.04. I use command
heroku run rake db:migrate
(I am in my app catalog of course.) I receive the error:
Can't connect to local MySQL server through socket 'socketname'
The socket exists and clearly is working because my app uses it to connect to the database while working just fine locally. None of the solutions suggested in other similar questions worked. I will appreciate any idea. :)