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