connect db mysql code example
Example 1: mysql login console
mysql -u USERNAME -p
Example 2: mysql connect
$mysqli -> new mysqli(host, username, password, dbname, port, socket)
Example 3: login to database mysql terminal
use DBNAME;
mysql -u USERNAME -p
$mysqli -> new mysqli(host, username, password, dbname, port, socket)
use DBNAME;