how to connect mysql code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: mysql login console
mysql -u USERNAME -p
Example 3: mysql cli connect with password
mysql --user=root --password=mypass
Example 4: mysql connect
$mysqli -> new mysqli(host, username, password, dbname, port, socket)