zoukankan      html  css  js  c++  java
  • CentOS7 下调教mysql记实 之二

    导入SQL后,普通用户不能调用存储过程,root可以。

    解决:

    mysql> update mysql.proc set Definer='username@%';

    然后修改Security_type字段:

    MariaDB [(none)]> update mysql.proc set Security_type='INVOKER';

    Query OK, 19 rows affected (0.00 sec)
    Rows matched: 19 Changed: 19 Warnings: 0

    MariaDB [(none)]> show function status;
    +---------+-------------+----------+----------+---------------------+---------------------+---------------+---------+----------------------+----------------------+--------------------+
    | Db | Name | Type | Definer | Modified | Created | Security_type | Comment | character_set_client | collation_connection | Database Collation |
    +---------+-------------+----------+----------+---------------------+---------------------+---------------+---------+----------------------+----------------------+--------------------+
    | redfish | GetDanHao | FUNCTION | bashen@% | 2017-05-20 11:24:57 | 2017-05-20 13:26:45 | INVOKER | | utf8 | utf8_general_ci | gbk_chinese_ci |

  • 相关阅读:
    Eclipse生成部署描述符(web.xml)
    异步Servlet和异步过虑器
    安装 R 及 R 包
    Servlet封装类
    设计模式——装饰者模式
    Eclipse快速生成覆盖方法、Getter、Setter的方法
    查看CPU核数和内存
    Filter 过滤器
    Listener 监听器
    Tag file
  • 原文地址:https://www.cnblogs.com/dreamfine/p/6882287.html
Copyright © 2011-2022 走看看