Quick tip: Getting Komodo 6 Database Explorer working with MAMP

tanc's picture

Just trying out Komodo 6's new Database Explorer and came across the usual error when trying to access MAMP's mysql through a socket due to its location not being the expected /tmp/mysql.sock. One of the usual solutions for this kind of problem is to symlink MAMP's mysql.sock to /tmp/ but I don't really like that due to having to redo it on restarts.

Instead, when you set up your MySQL database connection in Komodo, simply enter the full path to the socket file in the Hostname field, like so: /Applications/MAMP/tmp/mysql/mysql.sock

Job done.