CentOS7 下调教mysql记实 之二
Posted ntcat
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7 下调教mysql记实 之二相关的知识,希望对你有一定的参考价值。
导入SQL后,普通用户不能调用存储过程,root可以。
解决:
mysql> update mysql.proc set Definer=‘[email protected]%‘;
然后修改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 | [email protected]% | 2017-05-20 11:24:57 | 2017-05-20 13:26:45 | INVOKER | | utf8 | utf8_general_ci | gbk_chinese_ci |
以上是关于CentOS7 下调教mysql记实 之二的主要内容,如果未能解决你的问题,请参考以下文章