mysql select from outside code example Example: mysql select from outside mysql -h host -u root -proot -e "show databases;";