Last Updated: February 25, 2016
·
684
· Aeon

macports + mysql5

macports installs all the mysql 5 commands with a ‘5’ at the end. If you only have mysql5 and don’t care for having to remember to type that ‘5’ at each command, just run

for file in /opt/local/bin/mysql*; do 
    sudo ln -s $file `echo $file | sed "s/5$//"`; 
done;

and be happy.