The user specified as a definer ('root'@'%') does not exist,specifieddefiner

來源:互聯網
上載者:User

The user specified as a definer ('root'@'%') does not exist,specifieddefiner
一般是由於root使用者對全域host無存取權限。因此只要給root使用者添加一個存取權限即可。

  解決辦法:

  登陸mysql ,執行

  mysql -u root -pPasswd

  mysql >grant all privileges on *.* to root@"%" identified by "Passwd"

  mysql >flush privileges


mysql使用者動作表許可權的問題(java)

那是因為你這個資料庫裡面有個delete 的觸發器,trigger 是用admin定義的,
解決辦法;
1, 刪除這個觸發器
2,增加admin@localhost使用者

2或1任取一個;
注意必須是admin@localhost,而不是admin@%或者admin@127.0.01這樣的
 
CREATE DEFINER='root'@'localhost' TRIGGER `wl_db``tbl_dispatch_trigger` BEFORE DELETE ON `wl_db`

目測文法上面, 好像沒什麼錯誤啊。
報錯資訊是什麼呀?
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.