MySQL CLI se connecter avec le mot de passe
mysql --user=root --password=mypass
Wicked Willet
mysql --user=root --password=mypass
mysql --host=localhost --user=myname --password mydb
mysql -u USERNAME -p
$result = mysql_query("SELECT COUNT(*)
FROM `users_tbl`
WHERE `userName` = '$name' AND `password` = '$pass'");
if (!$result || mysql_num_rows($result) <= 0) {
// NO user found!
} else {
// User found and password matches
}