connect to mysql through command line centos code example Example: ubuntu access database from terminal mysql -u USERNAME -p