unmount.sh Part 3

With some urging I’ve made the unmount.sh script work for samba shares. It works in preliminary testing.
I also re-wrote the script to make it quite a bit simpler to add or change the search strings and thus the types of shares that the script is capable of unmounting. So far it will unmount AFP, sshfs and Samba shares when the script detects a change in your routers MAC address.
The upside is I no longer see the SPOD or have my Finder freeze if I forgot to unmount an AFP share on my laptop. 🙂
Go grab it.

Fixing MySQL and phpMyAdmin

There seems to be a problem with how current versions of OS X store the mysql socket and how [phpMyAdmin][1] looks for it. It seems currently the socket is stored at `/tmp/mysql.sock` but phpMyAdmin is looking for it at `/var/mysql/mysql.sock`. The result is a connection error type #2002.
After a lot of Googling here’s the solution. Create a symlink. Do the following from the terminal.
sudo mkdir /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
Now phpMyAdmin will connect to your local MySQL installation.
[1]: http://www.phpmyadmin.net