Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Azure mySQL中创建函数/存储过程_Mysql_Azure - Fatal编程技术网

无法在Azure mySQL中创建函数/存储过程

无法在Azure mySQL中创建函数/存储过程,mysql,azure,Mysql,Azure,我刚刚在Azure上建立了一个mysql数据库,我正在使用Navicat连接到它,一切正常。我现在正试图创建一些函数和存储过程,但遇到一个超级用户错误: 您没有超级权限,并且启用了二进制日志记录(您可能希望使用不太安全的log\u bin\u trust\u function\u creators变量)>时间:0.027s 以下是其中一个的代码: CREATE function `triggertradersazure`.`sf_entity_active_sub`(`p_entity_id`

我刚刚在Azure上建立了一个mysql数据库,我正在使用Navicat连接到它,一切正常。我现在正试图创建一些函数和存储过程,但遇到一个超级用户错误:

您没有超级权限,并且启用了二进制日志记录(您可能希望使用不太安全的log\u bin\u trust\u function\u creators变量)>时间:0.027s

以下是其中一个的代码:

CREATE function `triggertradersazure`.`sf_entity_active_sub`(`p_entity_id` INT) 
returns INT(11) 
DETERMINISTIC 
begin 
  IF EXISTS (SELECT 1 
             FROM   tbl_stripe_customer_link_sub sc 
                    JOIN tbl_stripe_sub_payments ss 
                      ON sc.stripe_customer_id = ss.stripe_customer_id 
                         AND ss.stripe_subscription_id = 
                             sc.stripe_subscription_id 
             WHERE  active = 'Y' 
                    AND entity_id = p_entity_id) THEN 
    RETURN 1; 
  ELSE 
    RETURN 0; 
  end IF; 
end; 
来自
mql.User
的用户信息:

INSERT INTO `mysql`.`user` 
            (`host`, `user`, `password`, `select_priv`, `insert_priv`, `update_priv`, `delete_priv`, `create_priv`, `drop_priv`, `reload_priv`, `shutdown_priv`, `process_priv`, `file_priv`, `grant_priv`, `references_priv`, `index_priv`, `alter_priv`, `show_db_priv`, `super_priv`, `create_tmp_table_priv`, `lock_tables_priv`, `execute_priv`, `repl_slave_priv`, `repl_client_priv`, `create_view_priv`, `show_view_priv`, `create_routine_priv`, `alter_routine_priv`, `create_user_priv`, `event_priv`, `trigger_priv`, `create_tablespace_priv`, `ssl_type`, `ssl_cipher`, `x509_issuer`, `x509_subject`, `max_questions`, `max_updates`, `max_connections`, `max_user_connections`, `plugin`, `authentication_string`, `password_expired`) 
VALUES      ('%', 'triggertraders', '*', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', '', '', '', '', 0, 0, 0, 0, 'mysql_native_password', '', 'N'); 
此用户没有超级用户,但我不需要它,Azure不允许它

现在不知道该怎么办。我的职能有

`CREATE DEFINER = `tiggertraders`@`ip`
我删除了这个,因为这是为了解决问题

任何帮助都会很好


谢谢,

我必须在Azure中登录\u bin\u trust\u函数\u creators服务器属性以允许此操作-如下所示:


我必须在Azure中记录\u bin\u trust\u函数\u creators服务器属性以允许此操作-如下所示: