午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    mysql設置觸發(fā)器權限問題的解決方法
    來源:易賢網 閱讀:1426 次 日期:2014-10-27 13:59:57
    溫馨提示:易賢網小編為您整理了“mysql設置觸發(fā)器權限問題的解決方法”,方便廣大網友查閱!

    本文實例講述了mysql設置觸發(fā)器權限的方法,針對權限錯誤的情況非常實用。具體分析如下:

    mysql導入數據提示沒有super privilege權限處理,如下所示:

    1 error 1419 (hy000): you do not have the super privilege and binary logging is enabled

    導入function 、 trigger 到 mysql database,報錯:

    1 you do not have the super privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)”.

    原因:

    function / trigger 中有dangerous statements修改數據庫,錯誤只在啟用binary logging選項進行主從復制的服務器上出現。

    解決方法如下:

    1)導入數據的用戶不僅需要create routine, alter routine, create trigger, alter trigger, create function 和 alter function 權限,還需要super privileges 權限,使用超級用戶導入數據。

    2)讓所有用戶具有執(zhí)行類似functions的權限,危險,不推薦,

    123 o by specifying it on the server start, like: –log-bin-trust-function-creators=1 o by setting it to 1 through the set global statement, like: mysql> set global log_bin_trust_function_creators = 1;

    3)如果不需要復制,或者是從庫,關閉binlog,

    1234 # binary logging – not required for slaves, but recommended #log-bin=mysql-bin # binary logging format – mixed recommended #binlog_format=mixed

    希望本文所述對大家的mysql數據庫設計有所幫助。

    更多信息請查看IT技術專欄

    更多信息請查看網絡編程

    2025國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網