Can't download over MacPorts
If using Macports all commands start with port - port is the origami you run - install here looks like a totally different program /usr/bin/install

So try

sudo port install php5-mysql


The sudo is required as you will install into /opt/local which you will not have permission to write to.