Okay, my simple suggestion is to connect to mysql using the command line, with that username and password with that database
mysql -D empdb -u root -p
If you can't do that, then clearly you have a problem with mysql itself.
You'll need to install mysql of course, have a schema called empdb,
and a user called root (almost always there, but bad practice to use this account daily)
with the correct password
also, as pointed out prior, the $sql query itself looks like a syntax error.
JML |
Learning Resources