zoukankan      html  css  js  c++  java
  • mysql存储过程定义者

    1.

    执行update mysql.proc set DEFINER='root@%' WHERE NAME='p_update_rim_batch_log' AND db='otherdataonline';

    NAME:函数名字、不填所有的

    DB:所属的数据库

    DEFINER:那个用户

    2.

    mysql> CREATE USER 'dxroot'@'%' IDENTIFIED BY 'root

    '; 
    Query OK, 0 rows affected


    mysql> GRANT all privileges ON dxjr.* TO 'dxroot'@'%' ;
    Query OK, 0 rows affected


    mysql> flush privileges;
    Query OK, 0 rows affected


    mysql> show grants for dxroot;
    +-------------------------------------------------------------------------------------------------------+
    | Grants for dxroot@%                                                                                   |
    +-------------------------------------------------------------------------------------------------------+
    | GRANT USAGE ON *.* TO 'dxroot'@'%' IDENTIFIED BY PASSWORD '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B' |
    | GRANT ALL PRIVILEGES ON `dxjr`.* TO 'dxroot'@'%'                                                      |
    +-------------------------------------------------------------------------------------------------------+
    2 rows in set


    mysql> 
  • 相关阅读:
    PHP中的NULL类型
    js中自定义事件,使用了jQuery
    chrome调试文章
    codeforces 633D
    hdu 1496 Equations
    poj 1286 Necklace of Beads
    poj 2154 Color
    poj 3270 Cow Sorting
    poj 1026 Cipher
    poj 2369 Permutations
  • 原文地址:https://www.cnblogs.com/root429/p/9251342.html
Copyright © 2011-2022 走看看