BMS-HOSxP Community

HOSxP => MySQL => ข้อความที่เริ่มโดย: doramon ที่ มีนาคม 27, 2010, 11:05:33 AM

หัวข้อ: mysql show
เริ่มหัวข้อโดย: doramon ที่ มีนาคม 27, 2010, 11:05:33 AM
mysql> set global log_bin_trust_routine_creators=1;


mysql> show variables like 'log_bin%';
หัวข้อ: Re: mysql show
เริ่มหัวข้อโดย: nph2006 ที่ มีนาคม 27, 2010, 13:40:09 PM
มีประโยชย์ อะไรครับ อ.อ๊อด
หัวข้อ: Re: mysql show
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ มีนาคม 27, 2010, 14:13:49 PM

mysql> set global log_bin_trust_routine_creators=1;


mysql> show variables like 'log_bin%';

มีประโยชย์ อะไรครับ อ.อ๊อด
หัวข้อ: Re: mysql show
เริ่มหัวข้อโดย: กรรมคือการกระทำ ที่ มีนาคม 27, 2010, 15:42:27 PM
To relax the preceding conditions on function creation (that you must have the SUPER privilege and that a function must be declared deterministic or to not modify data), set the global log_bin_trust_function_creators system variable to 1. By default, this variable has a value of 0, but you can change it like this:

mysql> SET GLOBAL log_bin_trust_function_creators = 1;

You can also set this variable by using the --log-bin-trust-function-creators=1 option when starting the server.

If binary logging is not enabled, log_bin_trust_function_creators does not apply and SUPER is not required for function creation.

ปกติ จะเป็น  0

หรือจะทำไว้ที่ My.cnf ก็ได้ครับ

http://mysql-dox.net/O.Reilly-MySQL.Stored.Procedur/0596100892/mysqlspp-CHP-10-SECT-1.html
หัวข้อ: Re: mysql show
เริ่มหัวข้อโดย: asawincyber ที่ มีนาคม 28, 2010, 22:49:23 PM
mysql> set global log_bin_trust_routine_creators=1;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> show variables like 'log_bin%';
+---------------------------------------+-------+
| Variable_name                            | Value |
+---------------------------------------+-------+
| log_bin                                       | OFF   |
| log_bin_trust_function_creators | ON    |
| log_bin_trust_routine_creators   | ON    |
+----------------------------------------+-------+
3 rows in set (0.02 sec)
 ;D ถูกต้องไหมครับ