Don't know what we can tell you. This isn't an AATrade problem but a server configuration problem. It looks like you have a problem with your mysql server. What it could be is anyones guess.
BYW, if you want to install Apache, PHP and Mysql on a Windows or Linux PC you shouldn't try to do it yourself by installing the different modules. Download one of the XAMPP packages from
http://www.apachefriends.org/en/xampp.html . They have both Linux and Windows installs. The Windows package is super simple to setup and you can be running an Apache server in just a few minutes. It includes everything you would need.
The Main Server that is running our website and game is using the Linux version of XAMPP from the above linked web site.