
My SSH connection gives the error: SSH port forwarding failed and MySQL said: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0 I’m having trouble connecting to a MySQL 4 or MySQL 5 database on localhost with a MAMP install. So if you empty this directory and copy a bunch of existing data files into it then you’ll immediately have them all deleted.Socket=/Users/YourUserName/Library/Containers/-ace/Data/mysql.sock I discovered while doing this migration that if there are not files called auto.cnf and -.plist in this directory then the whole directory will be wiped clean when you use DBngin to start up the database. One of my big issues was – I think – incompatibilities between MariaDB and MySQL when reading data files.ĭBngin puts binaries in /Users/Shared/DBngin/mysql/ Where does DBngin put data files?ĭBngin puts data files in /Users//Library/Application Support//engines/mysql/ It’s limited in that it doesn’t include MariaDB yet.
#Dbngin mysql config mac#
I figured all this out while I was moving to a new Mac and so thought I’d give it a go.
#Dbngin mysql config free#
some/homebrew/path/bin/brew services start What even IS DBngin?ĭBngin is a free MacOS app that lets you install/start/stop different databases. some/homebrew/path/bin/brew services start Worth a quick note that you can start and stop homebrew-installed MySQL/MariaDB as a service using: Starting and stopping MySQL/MariaDB using homebrew I would assume MySQL has some default location it’s reading from. You’ll have to dig in to this to find out yourself. And there is a file there, but it doesn’t have much config in.

some/homebrew/path/etc would be the obvious place. This MUST be configurable from somewhere, but I didn’t get to finding out where it was. The standard location for the database data files is /some/homebrew/path/var/mysqlĮvery version of MySQL/MariaDB installed in a particular brew instance appears to share the same location. You can change the symlinked current version using brew link (make sure you use the right brew instance!) Where are homebrew-installed MySQL/MariaDB data files? So if you want to use a specific version of the mysql client you can do, for example: that there is a notion of a “current” version that is symlinked into /some/homebrew/path/bin/ Homebrew keeps package binaries in /some/homebrew/path/Cellar Where are homebrew-installed MySQL/MariaDB binaries/executables? If you run /some/homebrew/path/bin/brew then all operations will happen within that homebrew instance and not affect others.

#Dbngin mysql config install#
It seems that they may be moving the default install to /opt/homebrew on MacOS ARM/Apple Silicon processors. The current default install goes to /usr/local/Homebrew Turns out you can have multiple copies of homebrew installed.

Requires: better than average command-line knowledge Where is homebrew installed? Querious and Sequel Ace database management tools.DBNgin (a MacOS App for managing installed databases).Here’s a fairly unstructured brain-dump of all that I’ve learned (or re-learned) along the way. While running mulitple instances of everything! So I needed to recover some MySQL files from a Time Machine backup and load them onto a new computer.Īnd so I’ve been digging around finding out where all my homebrew and MySQL files are.
