how to connect database through terminal in mysql code example Example: connect to mysql database ubuntu mysql -u USERNAME -p