Check in the file qa-config.php the value you have set to the variable : QA_MYSQL_HOSTNAME
If your MYSQL is installed on the same server of your webserver, do not use "localhost" but "127.0.0.1" (or the IP address or name of the local server).
See also here