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