首页 > 数据库技术 > 详细

CentOS7 下调教mysql记实 之二

时间:2017-05-20 16:27:29      阅读:296      评论:0      收藏:0      [点我收藏+]

导入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 |

 

CentOS7 下调教mysql记实 之二

原文:http://www.cnblogs.com/dreamfine/p/6882287.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!