SELECT command denied to user 'username'@'ip' for table 'user'错误处理

Error Messages

Use RDS for MySQL, the program executes SQL query given as follows:
SELECT command denied to user 'username'@'ip' for table 'user' 

Troubleshooting steps

  1. Test RDS instance is an exception. Mysql client can connect to the RDS, the corresponding table query, if the query can be normal, indicating that no problem RDS.
  2. The actual capture request issued by the machine software Wireshark:
    1. In the Wireshark interface, select Capture > option in the input tab select the network card to connect RDS pages in the output tab to fill in the output file name, and then click start .
      Wireshark
    2. Reproduce the problem, the problem recurring, stop packet capture.
  3. Open the resulting capture files, in the display filter input mysql, filtered mysql protocol packets to find the error.
    Filter mysql
  4. On being given entry, right-click, select track streaming > TCP stream .
    TCP flow
  5. Send SQL check is correct.
    Description above cases, the error due to the library name is fnb, and the program out of the stitching is hnb.user, database name stitching errors lead to error, as amended database name problem is solved.

Guess you like

Origin www.cnblogs.com/jpfss/p/11004321.html