I am having Vulnerability is Mcafee: MySQL Database Error Disclosure Vulnerability Please suggest how to solve it
The easiest way to fix it is to turn off any error reporting to the screen (and only into a log file). Since thats mainly what mcafee is bitching about. Basically means that your script somehow can take in malformed data, and either spit out an error to the screen of a failed query or performs the injected action. So even if you turn off error reporting, you'll want to look at your code and sanitize those inputs before putting them thru a SQL query.