Error: select command denied to user '<userid>'@'<ip-address>' for table '<table-name>'
In my website, I am using MySQL database. I am using a webservice where in I do all my database related manipulations. Now In one of the methods of that webservice, I get the following Error. select command denied to user ''@'' for table '' What could be wrong? Below is the code where I get that error. I tried debugging and found that it fails at the line MySqlDataReader result1 = command1.ExecuteReader(); Here is my code: String addSQL = "Select Max(`TradeID`) from `jsontest`.`tbl_Positions"; MySqlConnection objMyCon = new MySqlConnection(strProvider); objMyCon.Open(); MySqlCommand command =