1. Warning, cannot access, check if your mysql account password is wrong 2. Error, mysql_error has been abandoned, this mainly depends on your PHP version, PHP 7 has been abandoned
A few suggestions: 1.mysql_error has been abandoned. Do not use it. You can use PDO or mysqli. 2. Is the database open? 3. Is the database name written correctly? 4. Is the database account password incorrect?
1. Warning, cannot access, check if your mysql account password is wrong
2. Error, mysql_error has been abandoned, this mainly depends on your PHP version, PHP 7 has been abandoned
Your code is wrong, it should be mysqli_connect($dbHost, $dbUser, $dbPwd). Your second parameter is $dbName.
In addition, mysql_error has been deprecated, use mysqli_error instead.
A few suggestions:
1.mysql_error has been abandoned. Do not use it. You can use PDO or mysqli.
2. Is the database open?
3. Is the database name written correctly?
4. Is the database account password incorrect?