Show databases and ensure is in the list: > show databases.Start mongo command line interface: mongo.Use mongorestore to put the prod data into your local mongodb.is your local database name specified in your project’s config file under MONGOLAB_URI.Drop your existing local database with the following command.Make sure your local instance of mongod is running.mongodump will create the following directory to store the data: dump//.Use the values from the config file: mongodump -h : -d -u -p.It will be in the form of: Run the following command to make a copy of the production database to your local working directory. Get the config vars from Heroku with heroku config -app.Open command prompt (Windows) or Terminal (Mac/Linux) and navigate to the project’s working folder.It is provided as-is without warranty nor guarantee nor support. These are the steps I compiled to clone a Mongo database from Heroku to local. 2019 02 /21 POSTED BY alext9586 CATEGORY macos Newly created data directory /usr/local/var/mysql/ is unusable. T01:02:48.457929Z 0 Newly created data directory /usr/local/var/mysql/ is unusable. T01:02:48.457920Z 0 -initialize specified but the data directory has files in it. I failed to notice the following errors during reinstallation: Two hours of browsing StackOverflow later, I figured it out. So I do the logical step of uninstalling and reinstalling: I would get the following error:ĮRROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Pretty easy, but then as I worked along I screwed something up where I could not load mysql in the command line. I was trying to install MySQL on MacOS and I followed the instructions to install it via Homebrew:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |