Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL.
When we try to upload database in Wmap server sometimes we get error like “WAMPServer phpMyadmin Maximum execution time of 360 seconds exceeded”.
When you try to run Wordpress in windows and you got this error “ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password:NO)”, you can follow this steps to solve the issue.