ผู้เขียน หัวข้อ: update เป็น versions 3.51.4.17 แล้ว มี Error  (อ่าน 6612 ครั้ง)

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

ออฟไลน์ patum

  • Full Member
  • ***
  • กระทู้: 176
  • deamie
  • Respect: 0
    • ดูรายละเอียด
    • http://www.wangwisethospital.com
update เป็น versions 3.51.4.17 แล้ว มี Error
« เมื่อ: พฤษภาคม 12, 2008, 13:28:31 PM »
0
ข้างล่างนี้คือ รายงาน ความผิดพลาด


EurekaLog 6.0.12

Application:
-------------------------------------------------------
  1.1 Start Date      : Mon, 12 May 2008 11:54:20 +0700
  1.2 Name/Description: HOSMy.exe
  1.3 Version Number  : 3.51.4.17
  1.4 Parameters      :
  1.5 Compilation Date: Thu, 17 Apr 2008 14:08:05 +0700
  1.6 Up Time         : 1 hour, 29 minutes, 8 seconds

Exception:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2.1 Date          : Mon, 12 May 2008 13:23:28 +0700
  2.2 Address       : 01F6F337
  2.3 Module Name   : HOSMy.exe
  2.4 Module Version: 3.51.4.17
  2.5 Type          : Exception
  2.6 Message       : SQL Error: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable).
  2.7 ID            : 5FCA
  2.8 Count         : 1
  2.9 Status        : New
  2.10 Note         :

User:
-------------------------------------------------------
  3.1 ID        : Administrator
  3.2 Name      : WincoolV5
  3.3 Email     :
  3.4 Company   : nzn
  3.5 Privileges: SeChangeNotifyPrivilege         - ON
                  SeSecurityPrivilege             - OFF
                  SeBackupPrivilege               - OFF
                  SeRestorePrivilege              - OFF
                  SeSystemtimePrivilege           - OFF
                  SeShutdownPrivilege             - OFF
                  SeRemoteShutdownPrivilege       - OFF
                  SeTakeOwnershipPrivilege        - OFF
                  SeDebugPrivilege                - OFF
                  SeSystemEnvironmentPrivilege    - OFF
                  SeSystemProfilePrivilege        - OFF
                  SeProfileSingleProcessPrivilege - OFF
                  SeIncreaseBasePriorityPrivilege - OFF
                  SeLoadDriverPrivilege           - ON
                  SeCreatePagefilePrivilege       - OFF
                  SeIncreaseQuotaPrivilege        - OFF
                  SeUndockPrivilege               - ON
                  SeManageVolumePrivilege         - OFF
                  SeImpersonatePrivilege          - ON
                  SeCreateGlobalPrivilege         - ON

Active Controls:
--------------------------------
  4.1 Form Class   : TMainForm
  4.2 Form Text    : :: HOSxP ::
  4.3 Control Class: TcxButton
  4.4 Control Text :   ตกลง

Computer:
----------------------------------------------------------------------------
  5.1 Name          : SNOTEBOOK
  5.2 Total Memory  : 511 Mb
  5.3 Free Memory   : 187 Mb
  5.4 Total Disk    : 9.77 Gb
  5.5 Free Disk     : 2.5 Gb
  5.6 System Up Time: 3 hours, 6 minutes, 28 seconds
  5.7 Processor     : Intel(R) Pentium(R) M processor 1.60GHz
  5.8 Display Mode  : 1280 x 800, 32 bit
  5.9 Display DPI   : 96
  5.10 Video Card   : MOBILITY RADEON 9200 (driver 6.14.10.6422 - RAM 64 MB)
  5.11 Printer      : Microsoft Shared Fax Driver (driver 5.2.2600.2180)

Operating System:
------------------------------------
  6.1 Type    : Microsoft Windows XP
  6.2 Build # : 2600
  6.3 Update  : Service Pack 2
  6.4 Language: Thai
  6.5 Charset : 222

Network:
---------------------------------------------------------------------
  7.1 IP Address: 000.000.000.000 - 000.000.000.000 - 192.168.001.012
  7.2 Submask   : 000.000.000.000 - 000.000.000.000 - 255.255.255.000
  7.3 Gateway   : 000.000.000.000 - 000.000.000.000 - 192.168.001.001
  7.4 DNS 1     : 000.000.000.000 - 000.000.000.000 - 202.069.137.137
  7.5 DNS 2     : 000.000.000.000 - 000.000.000.000 - 000.000.000.000
  7.6 DHCP      : ON              - ON              - ON             

Custom Information:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8.1 Hospital Code    : 11410 [รพช. สิเกา]
  8.2 Database Type    : MySQL
  8.3 Database Protocol: mysql-4.1 [5.0.45-log
                          Database hos1 @ 192.168.1.222]
  8.4                  :
  8.5 No 1             : create function get_serialnumber(param1 varchar(150)) returns int  begin   declare serial_exist int;   declare xserial_no  int;   if param1='' then      select 'test' into param1;   end if;    select count(serial_no) into serial_exist from serial where name = param1;   if serial_exist = 0 then   insert into serial (name,serial_no) values (param1,0);   end if;   update serial set serial_no = serial_no + 1 where name = param1;   select serial_no into xserial_no from serial where name = param1;   return xserial_no;  end;
  8.6 No 2             : drop function get_serialnumber
  8.7 No 3             : select get_serialnumber('test')
................................................................................
HOSxP 3.56.X++ On FreeBSD Server 8++ 64bit
................................................................................
เริ่มใช้งาน ระบบ 10 ต.ค. 2552 ขึ้นระบบเอง
................................................................................
รพ.วังวิเศษ จ.ตรัง

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: update เป็น versions 3.51.4.17 แล้ว มี Error
« ตอบกลับ #1 เมื่อ: พฤษภาคม 12, 2008, 14:07:06 PM »
0
เรียกใช้โปรแกรม mysql_upgrade ที่ linux ครับ
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ patum

  • Full Member
  • ***
  • กระทู้: 176
  • deamie
  • Respect: 0
    • ดูรายละเอียด
    • http://www.wangwisethospital.com
Re: update เป็น versions 3.51.4.17 แล้ว มี Error
« ตอบกลับ #2 เมื่อ: พฤษภาคม 12, 2008, 20:23:15 PM »
0
ผมใช้  server เป้น Freebsd  6.2  mysql 5.X
พอ ดี ได้ ความช่วย เหลือ จาก คุณ โสธร  มือโปร ด้าน Linux มาครับ  ก็เลย เอามา ปรับ Freebsd ที่ผมใช้  จาก web http://freebsd.sothorn.org/node/6
โดย ผม ปรับ ใช้ ดัง นี้


จากอาการ Error อย่างนี้นะ


This function has none of DETERMINISTIC, NO SQL,
or READS SQL DATA in its declaration and binary logging is enabled
(you *might* want to use the less safe log_bin_trust_function_creators
variable)

แก้อย่าง นี้ นะ
 เข้า   
#
แล้ว หาที่อยู่ ของ mysql  รึไม่ ถ้า ลงเอง ก็ จะรู้ ว่า อยู่ที่ไหน
# cd /usr
#whereis mysql
มัน ก็จะบอก ว่า mysql อยู่ที่ไหน บ้างไง
#mysql: /usr/local/bin/mysql /usr/local/man/man1/mysql.1.gz /usr/ports/databases/php5-mysql/work/php-5.2.4/ext/mysql
อะเจอ เข้า แล้ว มัน อยู่ ที่ นี่ นะ
เข้า ไปที่นั่น ซะ
#cd /usr/local/bin
จาก นั้นก็
#mysql_upgrade -u root -p
แล้วก็ทำตามมันว่าไปเถอะพอจบก็ เอาอีก
#mysql_fix_privilege_tables --password=root_password<-------------------------เจ้านี่ password root นะเว้ย ครับ
แล้วก็ทำตามมันว่าไปเถอะ มัน ถาม อะไร ก็ตอบ มัน ตามจริง ละ พอจบก็ เอาอีก
ทีนี้ เข้า mysql ด้วย command line น่าเข้า ท่ากว่า
#mysql -u root -ppassword <-------------------------------------------------------------รหัสของ  root  นะ อะไร ๆ จะง่าย กว่า
เช่น   mysql -u -p123456
ก็จะได้
mysql>
แล้วก็ ใส่ คำสั่ง
mysql>SET GLOBAL log_bin_trust_function_creators = 1;
มัน ก็ จะบอก อะไร ที่เรา อยาก เห็น มา แล่ว ก็ \q ออก มา
restart mysql สักทีน่า จะดี   รึไม่ก็รีบูท  server ไปเลย
................................................................................
HOSxP 3.56.X++ On FreeBSD Server 8++ 64bit
................................................................................
เริ่มใช้งาน ระบบ 10 ต.ค. 2552 ขึ้นระบบเอง
................................................................................
รพ.วังวิเศษ จ.ตรัง

doramon

  • บุคคลทั่วไป
Re: update เป็น versions 3.51.4.17 แล้ว มี Error
« ตอบกลับ #3 เมื่อ: พฤษภาคม 12, 2008, 20:29:31 PM »
0
จริงๆๆ ที่ควรศึกษาและหาวิธีแก้ปัญหาคือ

http://dev.mysql.com/doc/refman/5.1-maria/en/mysql-upgrade.html

เวปแม่ ครับ
 ;D