connect to mysql localhost from the mysql shell code example Example: connect to mysql localhost from the mysql shell \connect root@localhost:3306