แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - เข้ม

หน้า: 1 ... 54 55 [56]
2751
MySQL / Re: ลงmysql 5.1.25 แล้วหา my.cnf ไม่เจออะครับทำไงดี
« เมื่อ: กรกฎาคม 22, 2008, 00:29:39 AM »


#cp  /usr/local/share/mysql/my-huge.cnf  /etc/my.cnf   ---> เลือกใช้ไฟล์ตามแต่ขนาดของ RAM ในเครื่อง ในที่นี้คือ 1-2 GB
#chown  root:sys  /etc/my.cnf    ---> กำหนดสิทธิ์ให้เป็นของ root
#chmod  644  /etc/my.cnf   ---> กำหนด mode การทำงานของไฟล์
#rehash   ---> regenerates system's cached ของระบบ เมื่อต้องการให้โปรแกรมที่เพิ่งติดตั้งเสร็จ
ใช้งานได้ทันที โดยไม่ต้อง boot
#vi  /etc/my.cnf      ---> แก้ไขไฟล์ my.cnf

2752
ปกติเราใช้คำสั่ง ping หาเครื่องในวงแลนเดียวกันจะต้องเจอทุกตัวหรือป่าวครับ

ไม่เสมอไปครับ ถ้าเครื่องที่จะ ping ไปหาเปิด firewall เอาไว้ ก็จะไม่เจอครับ
แต่ถ้าใช้ HOSxP ได้ ก็เดาได้ว่า firewall ไม่ได้เปิดเอาไว้


อ้อ ผมสังเกตเห็นว่า version HOSxP ของ client มีหลาย version มากเลยนะครับ

2753
งานเข้าแล้วครับพี่น้อง
ผมชักงง แฮะ
อย่างนี้ก็ broadcast กันตรึมเลยครับ หาทางไปไม่เจอ
ไม่มี proxy หรือครับ
set network ใหม่เถอะครับ

2754
ลองทดสอบใส่ข้อมูลในตาราง oapp_contact ดูก่อนครับ

แล้วจะพบกับความแตกต่าง

ลองดูครับ

 ;D ;D ;D

ขอบคุณครับ ผมพบอะไรที่แตกต่างจริง ๆ ครับ

2755
กด Enter เร็วเกินไปหรือป่าวครับ  :-[

2756
ยินดีต้อนรับ / Re: ขอเสนอแนะหน่อยครับ
« เมื่อ: กรกฎาคม 20, 2008, 22:22:46 PM »
ใช้คำค้นหาก็ได้ครับ
แต่ว่าต้องใส่คำให้ถูก ว่าจะใช้คำไหน

 ;D

ถูกต้องแล้วครับ  ;D
1. ค้นหาก่อนครับ
2. โพสมาเถอะครับ ถ้ามีผู้รู้ (ตนเองหรือแหล่งข้อมูลในบอร์ด) จะส่งลิงค์ให้ครับ


2757
Development / Re: ฝากภาษาซี mysql-c-api.c.txt
« เมื่อ: กรกฎาคม 20, 2008, 12:33:22 PM »
Howto: Connect MySQL server using C program API under Linux or UNIX

ขอบคุณ อ. อ๊อด ครับ แหล่ม...จริง ๆ  ;D

2758
ซื้อคอมถูกว่าตอนนี้


แหม...คนมีกะตังค์ ทำอะไรก็น่ารัก
ลองดูครับ มาเล่าสู่กันฟังบ้างนะครับ

โดยส่วนตัวผมแล้ว เห็นด้วยกับ อ.อ๊อด ครับ ผมกลัวมีปัญหาครับ
เพราะถ้าตัวนี้มีอันเป็นไป (ถ้านะครับ) และถ้านำมาใช้กับห้องแพทย์ หรือ OPD ผมว่าน่าห่วงครับ

2759
รพ ไม่เคยทำได้เลย    วันนี้จะทำ  มาทันที่  คนไข้ ไม่เคยหยุด   คิดว่าไม่มี ก็มีทุกครั้ง เลยไม่คิดจะหยุดระบบอีกแล้ว   


วิธี เดียว ต้องปิดประตู รพ อยากเดียวไม่ให้เข้ามา

 ;D ;D

หัวอกเดียวกันเลย (แต่ไม่ตรงกันนะ) อ.อ๊อด ;D

2760
กรณีของผม ที่เจอ คือเจอตั้งแต่วันที่อยู่ที่คุ้มหม่อมไฉไลครับ
พอดีมันเจอกับเครื่องผมก่อน ซึ่งเครื่องผมมีทั้ง Kaspersky และ Avast
Kaspersky ไม่เตือนอะไร
แต่ Avast เตือนว่า ไฟล์ที่มีปัญหากันนี้กำลังจะ run จะให้มันทำอย่างไร ผมก็ตอบ no action ไป สุดท้ายก็ error เหมือนที่เป็นกันอยู่ ผมก็คิดว่างานเข้าแล้วครับ พี่น้อง สักพักน้องที่ รพ. โทรหาตอนอยู่ในห้องประชุม
ก็บอกให้ ปิด antivirus ก่อน แล้ว copy จากเครื่องอื่น มาใส่แทน ก็ OK ครับ หาย
อีกวันต่อมาก็ไม่มีปัญหาเลย คาดว่านะครับ(ผมเดา) คงมี คนส่งรายงานไปให้ avast! หรือไม่ก็ตัวมันเองกำจัดไวรัสที่ว่ากันเนี่ยะไปแล้ว เลยไม่มีปัญหาในวันต่อมา

2761
อ.อ๊อดใช้โปรแกรมอะไรครับ ผมไม่มีความรู้ครับขอคคำแนะนำท่านผู้รู้ครับ
ผมใช้ NOD32 update ทุกวัน ช่วยอะไรได้ไหมครับ

Deepfreeze
PCKeeper

2762
อ.อ๊อด ลองเองเลยหรือครับ  ;D

2763
;D ;D ;D ผมก็กำลังทดสอบการใช้งาน AVG 8.1 อยู่ยังไม่ค่อยคุ้นเท่าไหร่กับบางหน้าจอ บางทีมันก็ฉลาดเกินไป
โปรแกรมที่โหลดมาเก็บไว้มันลบ crack ทิ้งเกลี้ยงเลย ยังดีที่เซฟไว้ใน External ด้วย บางทีมันเห็นไฟล์ของบางโปรแกรมเป็นไวรัสไปซะงั้น ดังนั้นใครจะใช้ต้องรู้ว่าไฟล์ไหนเราใช้งานจริงอยู่ไฟล์ไหนเป็นไวรัส แต่มันจะมีปัญหา
ถ้าใช้งานคู่กับ XoftSpy เพราะทุกไฟล์ของ AVG 8.1 XoftSpy จะมองเห็นเป็น Spyware หมดเลยเวลาสแกน
ต้องมาคอยติ๊กเครื่องหมายถูกออกทุกที มากเสียด้วยสิ แต่ก็อย่างว่าโปรแกรมแต่ละตัวมันก็ต้องมีข้อดีข้อเสีย
อยู่ที่ว่าเราต้องเรียนรู้และเข้าใจที่จะใช้งานมันครับ  ;D ;D ;D


ใส่ password ให้ crack ครับ มันมองไม่เห็นครับ

2764
ดู antivirus ครับ
ใช้ avast! มั๊ยครับ ถ้าใช้มันอาจจะไป block ไม่ให้ run ครับ

2766
V.3.51.7.2  OS VISTA HOME PREMIUM 

ผมเปิด HOSxP  แล้วจะเข้าไปเปลี่ยนเลข IP ให้ใช้ฐานข้อมูลจากเครื่อง Server แต่เหมือนมันไม่จำครับ มันเป็น 127.0.0.1 เหมือนเดิม ;D

ผมก็เป็นครับ แต่ก็ดีนะครับ คนอื่น(ที่ไม่ค่อยรู้มาก)จะได้ไม่รู้ ถ้ามาเล่นเครื่องเรา

ผมใช้อยู่ จะมีปัญหาเรื่อง ย่อหน้าต่างแล้วลงไม่สุด
จะลงเป็น tab ลอยๆ ไม่ลงไปถึง task bar
คนอื่นเป็นเหมือนกันไหมครับ  :'(

อันนี้ก็เพียงแค่ อย่าไปคลิก minimize ที่มุมบนขวามือ เปลี่ยนมาเป็น คลิก toggle ที่ taskbar เอาละกันครับหมอ
หรือไม่ก็ Alt-Tab


ใช้ได้ แต่ต้องแลกมาด้วยการยกเลิกระบบรักษาความปลอดภัยของ Windows Vista เพิ่มความเสี่ยงต่อการติด malware/virus

โปรแกรม HOSxP ต้องใช้สิทธิ์ Administrator ในการทำงาน เนื่องจากต้องเขียนไฟล์ ใน %windir%, Program Files\HOSxP และ %AllUserProfile% ระหว่างการทำงาน
ผมเคยเสนอให้เลิกเขียนไฟล์ใน folder Windows และ Program Files\HOSxP ซึ่ง อ. manoi ก็ได้แก้ไขไปบ้างแล้ว แต่ยังแก้ไม่หมดเท่านั้นเอง

ถึงจะย้ายที่เขียน hos-win32.ini จาก %windir% ไปยัง %AllUserProfile%\Application Data  แต่การเขียนไฟล์ที่นั่นก็ต้องใช้สิทธิ์ administrator อยู่ดี ปกติแล้ว Limited User จะเขียนไม่ได้

ผมว่าน่าจะแก้ให้โปรแกรมไม่ต้องเขียนไฟล์ในลงใน folder ที่ต้องใช้สิทธิ์ administrator น่าจะดีกว่าการที่ต้องใช้ administrator account ร่วมกับการปิด UAC
เขียนเฉพาะใน %UserProfile% ของ user account ที่ใช้งานในขณะนั้น ก็น่าจะพอแล้ว

ผมเห็นด้วยครับ แต่ อ.ชัยพร ต้องแลกกับการแก้ปัญหา HOS-WIN32.INI จะต้องไม่มีค่า config การเข้าใช้ HOSxP เก็บไว้ที่ไฟล์นี้ เพราะจะไม่มีประโยชน์เลยถ้า ผู้ไม่อยากจะออกนาม เข้าไปแก้ไข แค่ลบ รหัสที่ lock ไว้

แต่ทั้งหมดทั้งปวงก็ น่าเห็นใจ อ.ชัยพร ครับ เขียนอยู่คนเดียว เหนื่อย....ครับ พี่น้อง
เรามาลองคิดดูเล่น ๆ แต่ไม่อยากให้เกิดขึ้นเลย .... ถ้า อ. ชัยพร เลิก เราจะทำงัยกันดี .....


2767
ได้ปรับแก้ my.cnf อีกนิดหนึ่งโดยปรับและเพิ่ม เพราะ
ได้ลอง replicate แล้วมี error เกี่ยวกับ illegal mixed ของ tis620_thai_ci  กับ latin1_swedich

[mysqld]
table_cache = 1000           ---------> เดิม 512
default-character-set=tis620       
skip-name-resolve                       
skip-character-set-client-handshake       

[mysqldump]
allow-keywords

[mysql]
default-character-set=tis620

2768
initial import เสร็จแล้วครับ ใช้เวลาประมาณ 3 ชั่วโมง ครึ่ง ครับ
ก่อนใช้ก็ทำ   mysql> SET GLOBAL log_bin_trust_function_creators=1;
ไม่มี warning  4  ให้เห็นอีกแล้ว ครับ พี่น้อง

จากนี้ไป ก็จะมี SLAVE ที่ run mysql-5.1.26-rc บน FreeBSD 7- 64 bit เพิ่มมาอีกตัว

ไม่รู้จะหลบคนเจาะได้หรือป่าวหนอ.......อ.ชัยพร  ;)

2769
ผมใช้ไฟล์นี้ครับ ปรับแล้ว daemon MySQL ......SUCCESS!!!
อย่างน้อยก็มีกำลังใจที่จะ initial import แล้วละครับ อ.อ๊อด อ.ชัยพร ขอบคุณครับ

2770
ตอนนี้ผม เปิดใช้ variable innodb_file_per_table ใน mysql-5.1.26-rc ได้แล้วครับ กำลัง initial import ข้อมูลเข้าไปอยู่ครับ


 have_innodb                     | YES                                  |
| have_ndbcluster                 | NO                                   |
| have_openssl                    | NO                                   |
| have_partitioning               | NO                                   |
| have_query_cache                | YES                                  |
| have_rtree_keys                 | YES                                  |
| have_ssl                        | NO                                   |
| have_symlink                    | YES                                  |
| hostname                        | hostname                       |
| identity                        | 0                                    |
| init_connect                    | SET NAME tis620                      |
| init_file                       |                                      |
| init_slave                      |                                      |
| innodb_adaptive_hash_index      | ON                                   |
| innodb_additional_mem_pool_size | 20971520                             |
| innodb_autoextend_increment     | 8                                    |
| innodb_autoinc_lock_mode        | 1                                    |
| innodb_buffer_pool_size         | 402653184                            |
| innodb_checksums                | ON                                   |
| innodb_commit_concurrency       | 0                                    |
| innodb_concurrency_tickets      | 500                                  |
| innodb_data_file_path           | ibdata1:2000M;ibdata2:10M:autoextend |
| innodb_data_home_dir            | /usr/local/var/                      |
| innodb_doublewrite              | ON                                   |
| innodb_fast_shutdown            | 1                                    |
| innodb_file_io_threads          | 4                                    |
| innodb_file_per_table           | ON                                   |
| innodb_flush_log_at_trx_commit  | 1                                    |
| innodb_flush_method             |                                      |
| innodb_force_recovery           | 0                                    |
| innodb_lock_wait_timeout        | 50                                   |
| innodb_locks_unsafe_for_binlog  | OFF                                  |
| innodb_log_buffer_size          | 8388608                              |
| innodb_log_file_size            | 104857600                            |
| innodb_log_files_in_group       | 2                                    |
| innodb_log_group_home_dir       | /usr/local/var/                      |
| innodb_max_dirty_pages_pct      | 90                                   |
| innodb_max_purge_lag            | 0                                    |
| innodb_mirrored_log_groups      | 1                                    |
| innodb_open_files               | 300                                  |
| innodb_rollback_on_timeout      | OFF                                  |
| innodb_support_xa               | ON                                   |
| innodb_sync_spin_loops          | 20                                   |
| innodb_table_locks              | ON                                   |
| innodb_thread_concurrency       | 8                                    |
| innodb_thread_sleep_delay       | 10000                                |



ถ้าเสร็จแล้ว จะดูว่า warning 4 ของ HOSxP จะขึ้นมั๊ยนะครับ

 :D ;D

2771
ผมใช้ Vista Ultimate from DELL
ไม่มีปัญหาครับ

2772
ผมลองเข้าไปใช้ แผ่น hiren's แล้ว มีให้เลือก account is disable ด้วย ก็น่าจะทำได้นะครับ
ถ้าทำได้หรือไม่ได้ก็บอกกันบ้างนะครับ เอาใจช่วยครับ

2773
ทดลองบูตจากแผ่น windows ครับ แผ่นธรรมดาครับ ถ้าเป็นแผ่น โม ไม่น่าจะ repair ได้
ถ้าใช้แผ่น Hiren's ไม่แน่ใจนะครับ ปกติแล้วจะใช้ตอนลืม password Administrator อ่ะ
ใช้ enable Administrator  ได้ด้วยหรือครับ

2774
อ. อ๊อด เค้าโป้งตัวเองแล้วหล่ะ ถ้ามะให้ดาวน์น่ะ :D

2775
ขอบคุณครับ คุณตะนอย แต่ยังไม่ได้ช่วยแก้ปัญหานี้ครับ

ผมขอให้คุณตะนอย or อ.อ๊อด and อ.นาจ = true พิจารณาให้ละเอียดอีกทีครับ

ผมกำลังสงสัยว่า mysql เอา variable จากไหนมารัน ในเมื่อผมไม่ได้เอาไฟล์ my.cnf ไปไว้ที่ /etc/my.cnf และผมก็ไม่ได้ cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf ด้วย

และผมเคยลอง cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf
และแก้ไขไฟล์ my.cnf โดยเปิด option innodb_xxx มันรัน mysql ไม่ได้

ขอยกสักแก้วนะครับ ...เอื๊อก....

2776
ผมลองมาหลายรอบแล้วครับ อ.อ๊อด ไม่ขึ้นครับ
เดี๋ยวไปลองกับ VM ที่บ้านอีกทีครับ
ตอนนี้ขอกลับบ้านไปกินข้าวก่อน เจอกันที่บ้านครับ (บ้านใครบ้านมัน) แหม..มันน่ามีเบียร์สักเหยือกนะ  :P

2777
ถ้าหมายถึง hostname.err ของ mysql ตามนี้ครับ

080715 20:38:17 mysqld_safe Starting mysqld daemon with databases from /usr/local/var
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
080715 20:38:17  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
080715 20:38:19  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
080715 20:38:19  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
080715 20:38:21  InnoDB: Started; log sequence number 0 0
080715 20:38:21 [Note] Event Scheduler: Loaded 0 events
080715 20:38:21 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.26-rc'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
080715 20:43:17 mysqld_safe A mysqld process already exists
080715 20:45:40 [Note] /usr/local/libexec/mysqld: Normal shutdown

080715 20:45:40 [Note] Event Scheduler: Purging the queue. 0 events
080715 20:45:40  InnoDB: Starting shutdown...
080715 20:45:41  InnoDB: Shutdown completed; log sequence number 0 46409
080715 20:45:41 [Note] /usr/local/libexec/mysqld: Shutdown complete

080715 20:45:41 mysqld_safe mysqld from pid file /usr/local/var/hostname.pid ended
080715 20:47:33 mysqld_safe Starting mysqld daemon with databases from /usr/local/var
080715 20:47:34  InnoDB: Started; log sequence number 0 46409
080715 20:47:34 [Note] Event Scheduler: Loaded 0 events
080715 20:47:34 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.26-rc'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

Status information:

Current dir: /usr/local/var/
Running threads: 0  Stack size: 262144
Current locks:
lock: 0x8033f1368:

lock: 0x8033a4368:

lock: 0x8033d7368:

lock: 0x8033a2368:

lock: 0x8033ad368:

lock: 0x8029ff368:

lock: 0x8027ff368:

lock: 0x8024ff368:


Key caches:
default
Buffer_size:       8388600
Block_size:           1024
Division_limit:        100
Age_limit:             300
blocks used:             0
not flushed:             0
w_requests:              0
writes:                  0
r_requests:              0
reads:                   0


handler status:
read_key:            0
read_next:           0
read_rnd             0
read_first:          3
write:               0
delete               0
update:              0

Table status:
Opened tables:         15
Open tables:            8
Open files:            16
Open streams:           0

Alarm status:
Active alarms:   0
Max used alarms: 0
Next alarm time: 0

Begin safemalloc memory dump:

End safemalloc memory dump.



Events status:
LLA = Last Locked At  LUA = Last Unlocked At
WOC = Waiting On Condition  DL = Data Locked

Event scheduler status:
State      : INITIALIZED
Thread id  : 0
LLA        : n/a:0
LUA        : n/a:0
WOC        : NO
Workers    : 0
Executed   : 0
Data locked: NO

Event queue status:
Element count   : 0
Data locked     : NO
Attempting lock : NO
LLA             : init_queue:132
LUA             : init_queue:142
WOC             : NO
Next activation : never

2778
เหมือนเดิม ใน HOSxP ขึ้น warning 4    บอกว่ายังไม่ได้เปิด innodb_file_per_table
อย่างที่บอกตอนท้ายครับ ว่า ผมเข้าไปแก้ my.cnf แล้ว รัน mysql ไม่ได้ตั้งแต่ boot ครับ
ณ. ตอนนี้ผมก็ไม่รู้ว่า mysql เอา variable จากที่ไหนมาทำงานทั้ง ๆที่ผมยังไม่ได้แก้ไขไฟล์ my.cnf เลย

2779
วันนี้กลับมาตามสัญญาครับ
การติดตั้งแบบ compile source distribution เป็นไปด้วยดีครับ
แต่ อย่างว่าครับ --->  ;D
รบกวน อ. ชัยพรครับ
ตอนนี้ innodb engine ใช้ได้แล้วครับ แต่.... :'(  variable  innodb_file_per_table ไม่ถูกเปิดใช้งานครับ
ถ้าจะให้ผมแก้ /etc/my.cnf ก็ไม่มีไฟล์นี้ครับ
ผมถามหน่อยครับ แล้ว MySQL เอา variables จากที่ไหนมาทำงานครับ (ไม่รู้จริง ๆครับ)

mysql> show variables;
+---------------------------------+----------------------------------+
| Variable_name                   | Value                            |
+---------------------------------+----------------------------------+
| auto_increment_increment        | 1                                |
| auto_increment_offset           | 1                                |
| autocommit                      | ON                               |
| automatic_sp_privileges         | ON                               |
| back_log                        | 50                               |
| basedir                         | /usr/local/                      |
| big_tables                      | OFF                              |
| binlog_cache_size               | 32768                            |
| binlog_format                   | MIXED                            |
| bulk_insert_buffer_size         | 8388608                          |
| character_set_client            | tis620                           |
| character_set_connection        | tis620                           |
| character_set_database          | tis620                           |
| character_set_filesystem        | binary                           |
| character_set_results           | tis620                           |
| character_set_server            | tis620                           |
| character_set_system            | utf8                             |
| character_sets_dir              | /usr/local/share/mysql/charsets/ |
| collation_connection            | tis620_thai_ci                   |
| collation_database              | tis620_thai_ci                   |
| collation_server                | tis620_thai_ci                   |
| completion_type                 | 0                                |
| concurrent_insert               | 1                                |
| connect_timeout                 | 10                               |
| datadir                         | /usr/local/var/                  |
| date_format                     | %Y-%m-%d                         |
| datetime_format                 | %Y-%m-%d %H:%i:%s                |
| default_week_format             | 0                                |
| delay_key_write                 | ON                               |
| delayed_insert_limit            | 100                              |
| delayed_insert_timeout          | 300                              |
| delayed_queue_size              | 1000                             |
| div_precision_increment         | 4                                |
| engine_condition_pushdown       | ON                               |
| error_count                     | 0                                |
| event_scheduler                 | OFF                              |
| expire_logs_days                | 0                                |
| flush                           | OFF                              |
| flush_time                      | 0                                |
| foreign_key_checks              | ON                               |
| ft_boolean_syntax               | + -><()~*:""&|                   |
| ft_max_word_len                 | 84                               |
| ft_min_word_len                 | 4                                |
| ft_query_expansion_limit        | 20                               |
| ft_stopword_file                | (built-in)                       |
| general_log                     | OFF                              |
| general_log_file                | /usr/local/var/host.log           |
| group_concat_max_len            | 1024                             |
| have_community_features         | NO                               |
| have_compress                   | YES                              |
| have_crypt                      | YES                              |
| have_csv                        | YES                              |
| have_dynamic_loading            | YES                              |
| have_geometry                   | YES                              |
| have_innodb                     | YES                              |
| have_ndbcluster                 | NO                               |
| have_openssl                    | NO                               |
| have_partitioning               | NO                               |
| have_query_cache                | YES                              |
| have_rtree_keys                 | YES                              |
| have_ssl                        | NO                               |
| have_symlink                    | YES                              |
| hostname                        | hostname                    |
| identity                        | 0                                |
| init_connect                    |                                  |
| init_file                       |                                  |
| init_slave                      |                                  |
| innodb_adaptive_hash_index      | ON                               |
| innodb_additional_mem_pool_size | 1048576                          |
| innodb_autoextend_increment     | 8                                |
| innodb_autoinc_lock_mode        | 1                                |
| innodb_buffer_pool_size         | 8388608                          |
| innodb_checksums                | ON                               |
| innodb_commit_concurrency       | 0                                |
| innodb_concurrency_tickets      | 500                              |
| innodb_data_file_path           | ibdata1:10M:autoextend           |
| innodb_data_home_dir            |                                  |
| innodb_doublewrite              | ON                               |
| innodb_fast_shutdown            | 1                                |
| innodb_file_io_threads          | 4                                |
| innodb_file_per_table           | OFF                              |
| innodb_flush_log_at_trx_commit  | 1                                |
| innodb_flush_method             |                                  |
| innodb_force_recovery           | 0                                |
| innodb_lock_wait_timeout        | 50                               |
| innodb_locks_unsafe_for_binlog  | OFF                              |
| innodb_log_buffer_size          | 1048576                          |
| innodb_log_file_size            | 5242880                          |
| innodb_log_files_in_group       | 2                                |
| innodb_log_group_home_dir       | ./                               |
| innodb_max_dirty_pages_pct      | 90                               |
| innodb_max_purge_lag            | 0                                |
| innodb_mirrored_log_groups      | 1                                |
| innodb_open_files               | 300                              |
| innodb_rollback_on_timeout      | OFF                              |
| innodb_support_xa               | ON                               |
| innodb_sync_spin_loops          | 20                               |
| innodb_table_locks              | ON                               |
| innodb_thread_concurrency       | 8                                |
| innodb_thread_sleep_delay       | 10000               
            |
| insert_id                       | 0                                |
| interactive_timeout             | 28800                            |
| join_buffer_size                | 131072                           |
| keep_files_on_create            | OFF                              |
| key_buffer_size                 | 8388600                          |
| key_cache_age_threshold         | 300                              |
| key_cache_block_size            | 1024                             |
| key_cache_division_limit        | 100                              |
| language                        | /usr/local/share/mysql/english/  |
| large_files_support             | ON                               |
| large_page_size                 | 0                                |
| large_pages                     | OFF                              |
| last_insert_id                  | 0                                |
| lc_time_names                   | en_US                            |
| license                         | GPL                              |
| local_infile                    | ON                               |
| locked_in_memory                | OFF                              |
| log                             | OFF                              |
| log_bin                         | OFF                              |
| log_bin_trust_function_creators | OFF                              |
| log_bin_trust_routine_creators  | OFF                              |
| log_error                       | /usr/local/var/hostname.err |
| log_output                      | FILE                             |
| log_queries_not_using_indexes   | OFF                              |
| log_slave_updates               | OFF                              |
| log_slow_queries                | OFF                              |
| log_warnings                    | 1                                |
| long_query_time                 | 10.000000                        |
| low_priority_updates            | OFF                              |
| lower_case_file_system          | OFF                              |
| lower_case_table_names          | 0                                |
| max_allowed_packet              | 1048576                          |
| max_binlog_cache_size           | 18446744073709551615             |
| max_binlog_size                 | 1073741824                       |
| max_connect_errors              | 10                               |
| max_connections                 | 151                              |
| max_delayed_threads             | 20                               |
| max_error_count                 | 64                               |
| max_heap_table_size             | 16777216                         |
| max_insert_delayed_threads      | 20                               |
| max_join_size                   | 18446744073709551615             |
| max_length_for_sort_data        | 1024                             |
| max_prepared_stmt_count         | 16382                            |
| max_relay_log_size              | 0                                |
| max_seeks_for_key               | 18446744073709551615             |
| max_sort_length                 | 1024                             |
| max_sp_recursion_depth          | 0                                |
| max_tmp_tables                  | 32                               |
| max_user_connections            | 0                                |
| max_write_lock_count            | 18446744073709551615             |
| min_examined_row_limit          | 0                                |
| multi_range_count               | 256                              |
| myisam_data_pointer_size        | 6                                |
| myisam_max_sort_file_size       | 9223372036854775807              |
| myisam_recover_options          | OFF                              |
| myisam_repair_threads           | 1                                |
| myisam_sort_buffer_size         | 8388608                          |
| myisam_stats_method             | nulls_unequal                    |
| myisam_use_mmap                 | OFF                              |
| net_buffer_length               | 16384                            |
| net_read_timeout                | 30                               |
| net_retry_count                 | 1000000                          |
| net_write_timeout               | 60                               |
| new                             | OFF                              |
| old                             | OFF                              |
| old_alter_table                 | OFF                              |
| old_passwords                   | OFF                              |
| open_files_limit                | 11095                            |
| optimizer_prune_level           | 1                                |
| optimizer_search_depth          | 62                               |
| pid_file                        | /usr/local/var/hostname.pid |
| plugin_dir                      | /usr/local/lib/mysql/plugin      |
| port                            | 3306                             |
| preload_buffer_size             | 32768                            |
| protocol_version                | 10                               |
| pseudo_thread_id                | 1                                |
| query_alloc_block_size          | 8192                             |
| query_cache_limit               | 1048576                          |
| query_cache_min_res_unit        | 4096                             |
| query_cache_size                | 0                                |
| query_cache_type                | ON                               |
| query_cache_wlock_invalidate    | OFF                              |
| query_prealloc_size             | 8192                             |
| rand_seed1                      |                                  |
| rand_seed2                      |                                  |
| range_alloc_block_size          | 4096                             |
| read_buffer_size                | 131072                           |
| read_only                       | OFF                              |
| read_rnd_buffer_size            | 262144                           |
| relay_log                       |                                  |
| relay_log_index                 |                                  |
| relay_log_info_file             | relay-log.info                   |
| relay_log_purge                 | ON                               |
| relay_log_space_limit           | 0                                |
| report_host                     |                                  |
| report_password                 |                                  |
| report_port                     | 3306                             |
| report_user                     |                                  |
| rpl_recovery_rank               | 0                                |
| secure_auth                     | OFF                              |
| secure_file_priv                |                                  |
| server_id                       | 0                                |
| skip_external_locking           | ON                               |
| skip_networking                 | OFF                              |
| skip_show_database              | OFF                              |
| slave_compressed_protocol       | OFF                              |
| slave_exec_mode                 | STRICT                           |
| slave_load_tmpdir               | /var/tmp/                        |
| slave_net_timeout               | 3600                             |
| slave_skip_errors               | OFF                              |
| slave_transaction_retries       | 10                               |
| slow_launch_time                | 2                                |
| slow_query_log                  | OFF                              |
| slow_query_log_file             | /usr/local/var/host-slow.log      |
| socket                          | /tmp/mysql.sock                  |
| sort_buffer_size                | 2097144                          |
| sql_auto_is_null                | ON                               |
| sql_big_selects                 | ON                               |
| sql_big_tables                  | OFF                              |
| sql_buffer_result               | OFF                              |
| sql_log_bin                     | ON                               |
| sql_log_off                     | OFF                              |
| sql_log_update                  | ON                               |
| sql_low_priority_updates        | OFF                              |
| sql_max_join_size               | 18446744073709551615             |
| sql_mode                        |                                  |
| sql_notes                       | ON                               |
| sql_quote_show_create           | ON                               |
| sql_safe_updates                | OFF                              |
| sql_select_limit                | 18446744073709551615             |
| sql_slave_skip_counter          |                                  |
| sql_warnings                    | OFF                              |
| ssl_ca                          |                                  |
| ssl_capath                      |                                  |
| ssl_cert                        |                                  |
| ssl_cipher                      |                                  |
| ssl_key                         |                                  |
| storage_engine                  | MyISAM                           |
| sync_binlog                     | 0                                |
| sync_frm                        | ON                               |
| system_time_zone                | ICT                              |
| table_definition_cache          | 256                              |
| table_lock_wait_timeout         | 50                               |
| table_open_cache                | 64                               |
| table_type                      | MyISAM                           |
| thread_cache_size               | 0                                |
| thread_handling                 | one-thread-per-connection        |
| thread_stack                    | 262144                           |
| time_format                     | %H:%i:%s                         |
| time_zone                       | SYSTEM                           |
| timed_mutexes                   | OFF                              |
| timestamp                       | 1216129916                       |
| tmp_table_size                  | 16777216                         |
| tmpdir                          | /var/tmp/                        |
| transaction_alloc_block_size    | 8192                             |
| transaction_prealloc_size       | 4096                             |
| tx_isolation                    | REPEATABLE-READ                  |
| unique_checks                   | ON                               |
| updatable_views_with_limit      | YES                              |
| version                         | 5.1.26-rc                        |
| version_comment                 | Source distribution              |
| version_compile_machine         | amd64                            |
| version_compile_os              | unknown-freebsd7.0               |
| wait_timeout                    | 28800                            |
| warning_count                   | 0                                |
+---------------------------------+----------------------------------+


ถ้าผมทำตามด้านล่างนี้ จะทำให้ไม่สามารถรัน daemon mysql ได้ครับ

#cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf
#chown root:sys /etc/my.cnf
#chmod 644 /etc/my.cnf

แล้วก็ไปแก้ไขไฟล์ /etc/my.cnf เพิ่ม
innodb_file_per_table
และเอา #  ในส่วนของ innodb_xxxxx ออก

ตอนนี้ยังไม่ได้ทำอะไรต่อครับ

2780
อยากทราบความคืบหน้าครับ ไม่ทราบว่าแก้ไขได้ หรือยังครับ ลองส่ง drugitems.cds เข้ามาตามที่อาจารย์บอกครับ

เป็นงัยบ้างครับ แก้ไขได้หรือยังครับ

2781
ผลครับ
MySQL ไม่สามารถ start daemon ได้เลยตั้งแต่ตอน boot เลยครับ
 ???  ???
นับหนึ่งใหม่ครับ
เจอกันพรุ่งนี้ครับ

2782
ผมเข้าไปดู /usr/local/var ครั้งที่ สอง

hostname.err         ------>ไม่มีข้อมูล
hostname.err-old    -----> มีข้อมูล 
hostname.pid
ib_logfile0                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ib_logfile1                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ibdata1                      -----> ขนาดไฟล์ 2000MB ตามการเปิดใช้
                                 innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
                                 แต่ไม่มีการสร้าง ibdata2
mysql-bin.000001
mysql-bin.000002
mysql-bin.000003       ------> เพิ่มมา
mysql-bin.000004       ------> เพิ่มมา
mysql-bin.index

หลังจากผมลบ

ibdata1                     
mysql-bin.000001
mysql-bin.000002
mysql-bin.000003       
mysql-bin.000004   

restart server ครับ

ได้ผล

hostname.err         ------>ไม่มีข้อมูล
hostname.err-old    -----> มีข้อมูล 
hostname.pid
ib_logfile0                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ib_logfile1                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ibdata1                      -----> ขนาดไฟล์ 2000MB
ibdata2                      -----> ถูกสร้างขึ้นมา ขนาดไฟล์ 10MB
mysql-bin.000001
mysql-bin.000002
mysql-bin.index

ถ้าเข้าไปดูใน
hostname.err-old จะพบว่า

Error: log file /usr/local/var/ib_logfile0 is of different size 0 5242880 bytes
than specified in the .cnf file 0 104857600 bytes!

ผมจะลบ

ib_logfile0                 
ib_logfile1                 
ibdata1                     
ibdata2                     
mysql-bin.000001
mysql-bin.000002


restart server แล้วดูผลครับ

// ผมมานั่งคิดดูว่า ผมน่าจะแก้ไขไฟล์ my.cnf ตั้งแต่ก่อน restart server ครั้งแรกแล้ว มันเลยไม่แหล่ม !!!

2783
ผมเข้าไปดู /usr/local/var พบ file

hostname.err         ------>ไม่มีข้อมูล แต่เป็นไฟล์ที่อยากให้มี
hostname.err-old    -----> มีข้อมูล  แต่ไม่อยากเจอเลยไฟล์นี้
hostname.pid
ib_logfile0                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ib_logfile1                   -----> ขนาดไฟล์ 5MB ตาม my.cnf
ibdata1                      -----> ขนาดไฟล์ 10MB ตาม my.cnf ไฟล์นี้แหละน่าจะมีปัญหา เมื่อเปิดใช้ innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
mysql-bin.000001
mysql-bin.000002
mysql-bin.index

หลังจากเปิด ใช้โดยเอา # ข้างหน้า innodb_xxx ออก จะเป็นยังงัย
รอดูผลครับ
restart server ครับ


2784
อ.อ๊อดครับ อยู่เวรสี่วันเลยจะมีเวลาหรือครับ ผมก็อยู่ห้องยาสี่วันเลยครับ แต่คงกระดิกไปไหนไม่ได้ครับ แต่ถ้าอยู่เวรศูนย์คอมฯ คงทำได้ครับ  ขอบคุณครับ

2785
ขอบคุณครับ
ผมติดตั้งผ่าน ports tree ครับ ซึ่งผมลองมาทั้งสองอย่างแล้วครับ ไม่ผ่านทั้งสองอย่างเลย
ผมจะลองอย่างที่อ.ชัยพรบอกอีกทีละกันครับ

http://dev.mysql.com/downloads/mysql/5.1.html#source

Source downloads
Compressed GNU TAR archive (tar.gz)      5.1.26-rc   26.8M

หรือ
FreeBSD (TAR packages)
FreeBSD 6.x (x86_64)      5.1.26   103.6M

ผมเอามาจากนี้ครับ ถูกมั๊ยครับ

ถ้า compile เองผมทำดังนี้ครับ

ผมเอาไปเก็บที่ /tmp/mysql-5.1.25-rc.tar.gz
#gzip -cd mysql-5.1.25-rc.tar.gz | tar xvf -
#cd mysql-5.1.25-rc
#./configure --with-charset=tis620 --with-xcharset=all --with-collation=tis620_thai_ci --with-innodb

รอแป๊บหนึ่ง

#make WITH_CHARSET=tis620 WITH_XCHARSET=all WITH_COLLATION=tis620_thai_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes install clean

รอประมาณ 10 นาที

#/usr/local/bin/mysql_install_db
#adduser      ----> ผมใช้ค่า default ทั้งหมดครับ
.
.
.
#chown -R mysql:mysql /usr/local/var
#/usr/local/bin/safe_mysqld & ------> ขั้นตอนนี้รู้สึกว่ามันจะขึ้น command not found
#/usr/local/share/mysql/mysql.server start  ----> Starting MySQL Success!!!

ผม restart server >>>

# mysqladmin -u root password xxxxxxx

แล้วก็ยังไม่ได้ทำอะไรต่อครับ
เข้าไปดู
 
#pico /etc/my.cnf         

เจอครับ แต่ยังไม่ได้เปิด option : innodb_file_per_table และยังไม่ได้เข้าไปเอา # ออก ในส่วนของ innodb_xxx ออกครับ ขอเข้าไปดู ในส่วนของ host.err, host.pid และไฟล์ที่ mysql สร้างก่อน















2786
show variables;
+-------------------------------------+-----------------------------------+
| Variable_name                       | Value                             |
+-------------------------------------+-----------------------------------+
| auto_increment_increment            | 1                                 |
| auto_increment_offset               | 1                                 |
| autocommit                          | ON                                |
| automatic_sp_privileges             | ON                                |
| back_log                            | 50                                |
| basedir                             | /usr/local/                       |
| big_tables                          | OFF                               |
| binlog_cache_size                   | 32768                             |
| binlog_format                       | MIXED                             |
| bulk_insert_buffer_size             | 8388608                           |
| character_set_client                | tis620                            |
| character_set_connection            | tis620                            |
| character_set_database              | tis620                            |
| character_set_filesystem            | binary                            |
| character_set_results               | tis620                            |
| character_set_server                | tis620                            |
| character_set_system                | utf8                              |
| character_sets_dir                  | /usr/local/share/mysql/charsets/  |
| collation_connection                | tis620_thai_ci                    |
| collation_database                  | tis620_thai_ci                    |
| collation_server                    | tis620_thai_ci                    |
| completion_type                     | 0                                 |
| concurrent_insert                   | 1                                 |
| connect_timeout                     | 5                                 |
| datadir                             | /var/db/mysql/                    |
| date_format                         | %Y-%m-%d                          |
| datetime_format                     | %Y-%m-%d %H:%i:%s                 |
| default_week_format                 | 0                                 |
| delay_key_write                     | ON                                |
| delayed_insert_limit                | 100                               |
| delayed_insert_timeout              | 300                               |
| delayed_queue_size                  | 1000                              |
| div_precision_increment             | 4                                 |
| engine_condition_pushdown           | ON                                |
| error_count                         | 0                                 |
| event_scheduler                     | OFF                               |
| expire_logs_days                    | 0                                 |
| flush                               | OFF                               |
| flush_time                          | 0                                 |
| foreign_key_checks                  | ON                                |
| ft_boolean_syntax                   | + -><()~*:""&|                    |
| ft_max_word_len                     | 84                                |
| ft_min_word_len                     | 4                                 |
| ft_query_expansion_limit            | 20                                |
| ft_stopword_file                    | (built-in)                        |
| general_log                         | OFF                               |
| general_log_file                    | /var/db/mysql/hostname.log             |
| group_concat_max_len                | 1024                              |
| have_compress                       | YES                               |
| have_crypt                          | YES                               |
| have_csv                            | YES                               |
| have_dynamic_loading                | YES                               |
| have_geometry                       | YES                               |
| have_innodb                         | NO                                |
| have_ndbcluster                     | NO                                |
| have_openssl                        | DISABLED                          |
| have_partitioning                   | YES                               |
| have_query_cache                    | YES                               |
| have_rtree_keys                     | YES                               |
| have_ssl                            | DISABLED                          |
| have_symlink                        | YES                               |
| hostname                            | bsd.pch.go.th                     |
| identity                            | 0                                 |
| init_connect                        |                                   |
| init_file                           |                                   |
| init_slave                          |                                   |
| insert_id                           | 0                                 |
| interactive_timeout                 | 28800                             |
| join_buffer_size                    | 131072                            |
| keep_files_on_create                | OFF                               |
| key_buffer_size                     | 8388600                           |
| key_cache_age_threshold             | 300                               |
| key_cache_block_size                | 1024                              |
| key_cache_division_limit            | 100                               |
| language                            | /usr/local/share/mysql/english/   |
| large_files_support                 | ON                                |
| large_page_size                     | 0                                 |
| large_pages                         | OFF                               |
| last_insert_id                      | 0                                 |
| lc_time_names                       | en_US                             |
| license                             | GPL                               |
| local_infile                        | ON                                |
| locked_in_memory                    | OFF                               |
| log                                 | OFF                               |
| log_bin                             | OFF                               |
| log_bin_trust_function_creators     | OFF                               |
| log_bin_trust_routine_creators      | OFF                               |
| log_error                           | /var/db/mysql/hostname.err   |
| log_output                          | TABLE                             |
| log_queries_not_using_indexes       | OFF                               |
| log_slave_updates                   | OFF                               |
| log_slow_queries                    | OFF                               |
| log_warnings                        | 1                                 |
| long_query_time                     | 10.000000                         |
| low_priority_updates                | OFF                               |
| lower_case_file_system              | OFF                               |
| lower_case_table_names              | 0                                 |
| max_allowed_packet                  | 1048576                           |
| max_binlog_cache_size               | 18446744073709551615              |
| max_binlog_size                     | 1073741824                        |
| max_connect_errors                  | 10                                |
| max_connections                     | 151                               |
| max_delayed_threads                 | 20                                |
| max_error_count                     | 64                                |
| max_heap_table_size                 | 16777216                          |
| max_insert_delayed_threads          | 20                                |
| max_join_size                       | 18446744073709551615              |
| max_length_for_sort_data            | 1024                              |
| max_prepared_stmt_count             | 16382                             |
| max_relay_log_size                  | 0                                 |
| max_seeks_for_key                   | 18446744073709551615              |
| max_sort_length                     | 1024                              |
| max_sp_recursion_depth              | 0                                 |
| max_tmp_tables                      | 32                                |
| max_user_connections                | 0                                 |
| max_write_lock_count                | 18446744073709551615              |
| min_examined_row_limit              | 0                                 |
| multi_range_count                   | 256                               |
| myisam_data_pointer_size            | 6                                 |
| myisam_max_sort_file_size           | 9223372036854775807               |
| myisam_recover_options              | OFF                               |
| myisam_repair_threads               | 1                                 |
| myisam_sort_buffer_size             | 8388608                           |
| myisam_stats_method                 | nulls_unequal                     |
| myisam_use_mmap                     | OFF                               |
| ndb_autoincrement_prefetch_sz       | 32                                |
| ndb_cache_check_time                | 0                                 |
| ndb_connectstring                   |                                   |
| ndb_extra_logging                   | 0                                 |
| ndb_force_send                      | ON                                |
| ndb_index_stat_cache_entries        | 32                                |
| ndb_index_stat_enable               | OFF                               |
| ndb_index_stat_update_freq          | 20                                |
| ndb_report_thresh_binlog_epoch_slip | 3                                 |
| ndb_report_thresh_binlog_mem_usage  | 10                                |
| ndb_use_copying_alter_table         | OFF                               |
| ndb_use_exact_count                 | ON                                |
| ndb_use_transactions                | ON                                |
| net_buffer_length                   | 16384                             |
| net_read_timeout                    | 30                                |
| net_retry_count                     | 1000000                           |
| net_write_timeout                   | 60                                |
| new                                 | OFF                               |
| old                                 | OFF                               |
| old_alter_table                     | OFF                               |
| old_passwords                       | OFF                               |
| open_files_limit                    | 11095                             |
| optimizer_prune_level               | 1                                 |
| optimizer_search_depth              | 62                                |
| pid_file                            | /var/db/mysql/hostname.pid   |
| plugin_dir                          | /usr/local/lib/mysql              |
| port                                | 3306                              |
| preload_buffer_size                 | 32768                             |
| protocol_version                    | 10                                |
| pseudo_thread_id                    | 1306                              |
| query_alloc_block_size              | 8192                              |
| query_cache_limit                   | 1048576                           |
| query_cache_min_res_unit            | 4096                              |
| query_cache_size                    | 0                                 |
| query_cache_type                    | ON                                |
| query_cache_wlock_invalidate        | OFF                               |
| query_prealloc_size                 | 8192                              |
| rand_seed1                          |                                   |
| rand_seed2                          |                                   |
| range_alloc_block_size              | 2048                              |
| read_buffer_size                    | 131072                            |
| read_only                           | OFF                               |
| read_rnd_buffer_size                | 262144                            |
| relay_log_purge                     | ON                                |
| relay_log_space_limit               | 0                                 |
| rpl_recovery_rank                   | 0                                 |
| secure_auth                         | OFF                               |
| secure_file_priv                    |                                   |
| server_id                           | 0                                 |
| skip_external_locking               | ON                                |
| skip_networking                     | OFF                               |
| skip_show_database                  | OFF                               |
| slave_compressed_protocol           | OFF                               |
| slave_load_tmpdir                   | /var/tmp/                         |
| slave_net_timeout                   | 3600                              |
| slave_skip_errors                   | OFF                               |
| slave_transaction_retries           | 10                                |
| slow_launch_time                    | 2                                 |
| slow_query_log                      | OFF                               |
| slow_query_log_file                 | /var/db/mysql/bsd-slow.log        |
| socket                              | /tmp/mysql.sock                   |
| sort_buffer_size                    | 2097144                           |
| sql_auto_is_null                    | ON                                |
| sql_big_selects                     | ON                                |
| sql_big_tables                      | OFF                               |
| sql_buffer_result                   | OFF                               |
| sql_log_bin                         | ON                                |
| sql_log_off                         | OFF                               |
| sql_log_update                      | ON                                |
| sql_low_priority_updates            | OFF                               |
| sql_max_join_size                   | 18446744073709551615              |
| sql_mode                            |                                   |
| sql_notes                           | ON                                |
| sql_quote_show_create               | ON                                |
| sql_safe_updates                    | OFF                               |
| sql_select_limit                    | 18446744073709551615              |
| sql_slave_skip_counter              |                                   |
| sql_warnings                        | OFF                               |
| ssl_ca                              |                                   |
| ssl_capath                          |                                   |
| ssl_cert                            |                                   |
| ssl_cipher                          |                                   |
| ssl_key                             |                                   |
| storage_engine                      | MyISAM                            |
| sync_binlog                         | 0                                 |
| sync_frm                            | ON                                |
| system_time_zone                    | ICT                               |
| table_definition_cache              | 128                               |
| table_lock_wait_timeout             | 50                                |
| table_open_cache                    | 64                                |
| table_type                          | MyISAM                            |
| thread_cache_size                   | 0                                 |
| thread_handling                     | one-thread-per-connection         |
| thread_stack                        | 262144                            |
| time_format                         | %H:%i:%s                          |
| time_zone                           | SYSTEM                            |
| timed_mutexes                       | OFF                               |
| timestamp                           | 1216027603                        |
| tmp_table_size                      | 16777216                          |
| tmpdir                              | /var/tmp/                         |
| transaction_alloc_block_size        | 8192                              |
| transaction_prealloc_size           | 4096                              |
| tx_isolation                        | REPEATABLE-READ                   |
| unique_checks                       | ON                                |
| updatable_views_with_limit          | YES                               |
| version                             | 5.1.22-rc                         |
| version_comment                     | FreeBSD port: mysql-server-5.1.22 |
| version_compile_machine             | amd64                             |
| version_compile_os                  | portbld-freebsd7.0                |
| wait_timeout                        | 28800                             |
| warning_count                       | 0                                 |
+-------------------------------------+-----------------------------------+

//////////////////////////////////////////////////

my.cnf

# Example MySQL config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/db/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password   = your_password
port      = 3306
socket      = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port      = 3306
socket      = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
innodb_file_per_table

default-character-set=tis620
skip-name-resolve
#innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_connections=1500
#

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id   = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin

# Point the following paths to different dedicated disks
#tmpdir      = /tmp/      
#log-update    = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /var/db/mysql/
innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
innodb_log_group_home_dir = /var/db/mysql/
#innodb_log_arch_dir = /var/db/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 384M
innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 100M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M
allow-keywords

[mysql]
no-auto-rehash
default-character-set=tis620
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

////////////////////////////////////////////////



2787
 :(  ทำแล้วครับ ทำก่อน initial import ครับ มันเป็นกับบางคนนะครับ มันไม่ได้เป็น ?? ?? ?? ทุกคน
แต่พอเข้าไปแก้ที่หน้า ลงทะเบียนผู้ป่วยใหม่ มันก็หายครับ อ.อ๊อด ... ได้โปรด

2788
Admin tools / Re: http://www.clarkconnect.com/
« เมื่อ: กรกฎาคม 14, 2008, 09:12:53 AM »
ขอบคุณ อ.อ๊อดครับ ตอนแรกผมกะว่าจะไปรุ่น 3 ไม่รู้ว่ามีรุ่น 4 ด้วยครับ

2789
ผมเคยลองแล้วตอนนี้เอาออกหมดแล้ว เกือบทุกตัว ถ้าจำไม่ผิดนะครับ (ไม่แน่ใจ) ว่ามันใช้กับ VLAN ได้หรือป่าว เหลือแต่ VNC ตัวที่มากับ HOSxP กับ Hamachi  ;D

2790
Admin tools / Re: http://www.clarkconnect.com/
« เมื่อ: กรกฎาคม 13, 2008, 13:44:35 PM »
IPCop = Free
ISA, Clarkconnect = Not Free or Crack Version

ผมใช้ Clarkconnect เป็น web gateway, IPCop เป็น Proxy Firewall, ISA ไม่มีตังค์ซื้อ
 ;D  :D
กำลังจะใช้ FreeBSD Squid Proxy, Radius Authen อ.อ๊อด อ.นาจ แนะนำหน่อยครับ

2792
ตอนนี้ใช้งานได้นะครับ ผ่าน ports tree ครับ แต่ก็ยังมี error ตอนเข้า HOSxP อยู่เลย  เป็น 5.1.22-rc ครับ ใครมี SHA256 ของ mysql-5.1.25-rc.tar.gz บ้างอะครับ ขอบ้างดิครับ

error!! หลังจากที่ initial import แล้วรองรัน HOSxP

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

ตอนนี้กำลังแก้อยู่ ไม่รู้เป็นเพราะอะไร

อ้อ! ใน my.cnf ไม่ต้องเอา # หน้า innodb_log_arch_dir=/var/db/mysql/ ออกนะครับ เอาไว้งั้นแหละ

2793
ลองเข้าไปดูที่ไฟล์ /var/db/mysql/hostname.err ซิครับ ถ้ามีข้อความประมาณนี้หรือป่าว


080712 18:21:16 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
080712 18:21:16  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
080712 18:21:18  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
080712 18:21:18  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
080712 18:21:19  InnoDB: Started; log sequence number 0 0
080712 18:21:19 [Note] Event Scheduler: Loaded 0 events
080712 18:21:19 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.22-rc'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD port: mysql-server-5.1.22

-----------------------------------------------------------------------------------------------------------------------

080712 19:41:12 [Note] /usr/local/libexec/mysqld: Normal shutdown

080712 19:41:12 [Note] Event Scheduler: Purging the queue. 0 events
080712 19:41:12  InnoDB: Starting shutdown...
080712 19:41:14  InnoDB: Shutdown completed; log sequence number 0 46409
080712 19:41:14 [Note] /usr/local/libexec/mysqld: Shutdown complete

080712 19:41:14 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended
080712 19:43:07 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: Error: data file /var/db/mysql/ibdata1 is of a different size
InnoDB: 640 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 128000 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
080712 19:43:07 [ERROR] Plugin 'InnoDB' init function returned error.
080712 19:43:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
080712 19:43:07 [ERROR] /usr/local/libexec/mysqld: unknown variable 'innodb_log_arch_dir=/var/db/mysql/'

080712 19:43:07 [ERROR] Aborting

080712 19:43:07 [Note] /usr/local/libexec/mysqld: Shutdown complete

080712 19:43:07 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended

--------------------------------------------------------------------------------------------------------------------------

อันแรก แสดงว่า mysql ใช้งานได้ครับ
แต่อันล่างใช้ไม่ได้ครับ เนื่องจากว่าตอนผมรัน mysql ครั้งแรกผมไม่ได้ copy my.cnf (ผมเลือก my-huge.cnf)ไว้ที่ /etc/my.cnf ครับ มันเลย error
ได้ยังงัยแล้วบอกกันด้วยนะครับ ผมกำลังลองเล่นอยู่ ลงไปแล้วสองเครื่องประมาณเกือบ 10 รอบแล้ว ทั้งแบบ ผ่าน ports tree และ compile เอง
มันเล้าใจจริง ...ขอบอก



2794
มันออกแบบได้ด้วยหรือครับ เท่าที่ทราบมา อ.ชัยพรเขียนใว้ในตัวโปรแกรมเลยไม่ใช่หรือครับ แต่สามารถปรับจำนวนรูของฉลากได้ เพื่อเพิ่มจำนวนบรรทัด ที่ฉลากยา หรือว่าข้อมูลผมไม่ update ก็ไม่รู้นะครับ

2796
 :-[  :-[ เมียไม่ให้ไป ...  ;D

2797
เอ๊ะ จะเหมือนที่เราเคยเจอปัญหากันหรือป่าวนะ phichit_admin (ทำเหมือนไม่ได้อยู่รพ.เดียวกันเลยนิ) ;D

ถามใครก็บอกว่าไม่ได้คีย์ เรื่องมันเกิดที่ห้องยา ห้องยา(ตามคำบอกเล่า)บอกว่ามันขึ้นมาตั้งแต่เรียกคนไข้ขึ้นมาแล้ว ขึ้นอะไรมาบ้าง คนทำก็บอกจำไม่ได้ จำได้แต่เพียงว่าให้มันกด OK อย่างเดียว (สงสัยจะให้เรานั่งทางในดูอะ) ทำไปทำมาเราก็ต้องทดลองทำว่ามันน่าจะเกิดจากอะไรบ้าง ทดลองแล้วก็ไม่ได้อะไรขึ้นมามากนะ ก็คงต้องทำและฟันธงไปตามที่ phichit_admin บอกแหละครับ ซึ่งมันทำให้ น้ำท่วมห้องยา เลย (เว่อร์ไปปะเนี่ยะ) จบ...

2798
Development / Re: HOSxP 3.51.7.1
« เมื่อ: กรกฎาคม 02, 2008, 10:50:49 AM »
 ;D หลังจาก upgrade เป็น 3.51.7.1 ตอนนี้ 2 ก.ค. 51 : 11.00 น. ยังไม่มีเสียง "ชื่นชม สรรเสริญ เยินยอ"  มาตามสายเลย  ;)

2799
ของผมก็เป็นครับ โดนห้องยาบ่นตลอดเลยครับ เท่าที่หาสาเหตุ อย่างที่ อ.อ๊อด บอกก็เป็นไปได้ครับ แต่ผมดูแล้วไม่มี item ไหนที่ใส่  ' S ครับ เริ่มเป็นหลังจากที่ upgrade เป็น  3.51.5.17 ครับ ก่อนหน้านั้นไม่เป็นครับ และตอนนี้ ทดสอบกับ  3.51.6.26b ไม่เป็นครับ ไม่แน่ใจว่าเกิดจาก ตัวโปรแกรมเองหรือป่าว ไม่ทราบว่าที่ใดเป็นบ้างครับ

2800
อะนะ อ.อ๊อด ตัดช่องน้อยแต่พอตัวไปแล้ว อ.นาจ งานเข้าแล้วครับพี่น้อง ทำให้แหล่มนะ เป็นกำลังใจให้ครับ บา บ่า บรื๋อ บ่า บรื๋อ บา

หน้า: 1 ... 54 55 [56]