Mysql: execute command denied to user ''@'localhost' for routine error

后端 未结 4 1042
慢半拍i
慢半拍i 2021-01-03 18:21

i got some problem during open my old website. My dataTable show:

DataTables warning: JSON data from server could not be parsed. This is caused by a JSON for         


        
相关标签:
4条回答
  • 2021-01-03 19:03

    I encountered this yesterday, I expected a syntax error but this message was shown.

    My mistake: I wrote "SELECT m.id, m.MAX(id_number) as id_number..." instead of "SELECT m.id, MAX(m.id_number) as id_number...".... the error is with the MAX. The error message wasn't too helpful.

    0 讨论(0)
  • 2021-01-03 19:10

    It works..... I try to grant this priviledge in root.

    1. log in as root
    2. GRANT EXECUTE ON PROCEDURE TestMediaControl.monthavrage TO 'jeinqa'@'localhost'
    3. flush privileges;
    0 讨论(0)
  • 2021-01-03 19:15

    I have encountered this in phpMyAdmin, a few hours ago, when executing a stored procedure with what I thought would be detected as a syntax error.

    I was missing a comma between a field name, and a calculated field, and this gave me the same error message.

    0 讨论(0)
  • 2021-01-03 19:18

    Very late to the party also try a combination of.

    GRANT EXECUTE ON PROCEDURE TestMediaControl.monthavrage TO 'jeinqa'@'%';
    

    AND

    flush privileges;
    

    Also try replacing PROCEDURE with FUNCTION.

    0 讨论(0)
提交回复
热议问题