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