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