insert command denied in mysql

后端 未结 7 987
天涯浪人
天涯浪人 2021-01-17 07:41

I have a database table from which, when I select data with username and password, it works but when I insert some data in that table with same username and password it show

7条回答
  •  隐瞒了意图╮
    2021-01-17 08:17

    This also happened to me and the problem is that when you call the command INSERT in your php file you must have specified another database.

    In short, find where your INSERT command is and check the part your_database_name below

    "INSERT INTO \`your_database_name\`.\`your_table_name\`
    

    That might solve your problem. Of course, if all privileges are granted for you.

提交回复
热议问题