The security settings cocould not be applied to the database (error 1045 MySQL) solution always fails at the end of mysql installation. the error message is as follows: is The last Apply security setting error: the security settings cocould not be applied to the database because the connection has failed with The following error. www.2cto.com Error Nr. 1045 Access denied for user 'root' @ 'localhost' (using password: YES) If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. otherwise no client application can connect to the server. after you have opened the port please press [Retry] to apply the security settings. if you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. therefore the old password from your last installation is still needed to connect to the server. in this case please select skip now and re-run the Configuration Wizard from the start menu. solution: www.2cto.com 1. uninstall MySQL 2, delete the directory C: \ Documents ents and Settings \ All Users \ Application Data \ MySQL 3, and reinstall MySQL: \ Documents and Settings \ All Users does not have the Application Data folder. Choose tool> folder option> View> show All files and folders by the author.