add --port option to mysql command
nil should be 'escaped' to empty string in php