ผู้เขียน หัวข้อ: mysql show  (อ่าน 8043 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

doramon

  • บุคคลทั่วไป
mysql show
« เมื่อ: มีนาคม 27, 2010, 11:05:33 AM »
0
mysql> set global log_bin_trust_routine_creators=1;


mysql> show variables like 'log_bin%';
« แก้ไขครั้งสุดท้าย: พฤษภาคม 30, 2015, 14:33:17 PM โดย admin »

ออฟไลน์ nph2006

  • Sr. Member
  • ****
  • กระทู้: 417
  • Respect: +1
    • ดูรายละเอียด
    • www.nongphok.net
Re: mysql show
« ตอบกลับ #1 เมื่อ: มีนาคม 27, 2010, 13:40:09 PM »
0
มีประโยชย์ อะไรครับ อ.อ๊อด
รพ.หนองพอก จ.ร้อยเอ็ด 30 เตียง
www.nongphok.net
cup_nph@yahoo.com
may_put@hotmail.com
Server :  CentOS 6.4 64 Bit  Ram 32 Gb SAS 300*3 RAID 5 MySQL Percona Server 5.5.30 64 Bit
Slave : CentOS 5.4 64 Bit  Ram 4 Gb MySQL 5.1.55 64 Bit
Lis : Smart LIMS

Client : Windows XP  HosXP : 3.56.6.20, 72 client

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: mysql show
« ตอบกลับ #2 เมื่อ: มีนาคม 27, 2010, 14:13:49 PM »
0

mysql> set global log_bin_trust_routine_creators=1;


mysql> show variables like 'log_bin%';

มีประโยชย์ อะไรครับ อ.อ๊อด

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ กรรมคือการกระทำ

  • Jr. Member
  • **
  • กระทู้: 99
  • Respect: 0
    • ดูรายละเอียด
Re: mysql show
« ตอบกลับ #3 เมื่อ: มีนาคม 27, 2010, 15:42:27 PM »
0
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
« แก้ไขครั้งสุดท้าย: มีนาคม 27, 2010, 15:51:50 PM โดย pompam2 »
Server Master FreeBSD-9.0+MySQL-5.5.30
Server Slave   FreeBSD-8.2+MySQL-5.5.30

ออฟไลน์ asawincyber

  • Hero Member
  • *****
  • กระทู้: 1,011
  • สู้ต่อไป ทาเกชิ
  • Respect: 0
    • ดูรายละเอียด
    • http://www.okhospital.net
Re: mysql show
« ตอบกลับ #4 เมื่อ: มีนาคม 28, 2010, 22:49:23 PM »
0
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 ถูกต้องไหมครับ
เสน่ห์  คงมูล (เอก)
โรงพยาบาลองครักษ์ อ.องครักษ์ จ.นครนายก
HOSxP  3.56.2.26  Activate License
Server : DELL T710 Xeon 5500 Ram 64Gb (16 X 4GB) 10600R Centos 5.5 64 bit MySQL 5.5.11 percona By อ.อ็อด
Server : IBM X3400 2.4 Ghz. Ram 4Gb. Centos 5.5 64 bit MySQL 5.5.11 percona By อ.อ็อด