how to connect to database mysql code example Example: mysql connect $mysqli -> new mysqli(host, username, password, dbname, port, socket)