แสดงกระทู้

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 - komanp

หน้า: 1 ... 3 4 [5] 6 7 8
201
select v.hn ,count(v.vn) as visitcount  ,
timestampdiff(year,p.birthday,now()) as age_y,
concat(p.pname,p.fname," ",p.lname)as ptname,
   p.birthday,p.addrpart,p.moopart,a.full_name ,v.pttype ,p.cid
from vn_stat v
left outer join patient p on p.hn =v.hn
left outer join thaiaddress a on p.chwpart =a.chwpart and p.amppart = a. amppart and p.tmbpart=a.tmbpart
where  v.vstdate between '2009-01-01' and '2009-01-05'
group by v.hn
having visitcount >= 2 and age_y >='60'

v.hn p.birthday  v.vn
ไม่เข้าใจว่าทำไมต้องมี v.   p.   ข้างหน้าด้วยครับ

202
Development / Re: code506name506ล่าสุด
« เมื่อ: กุมภาพันธ์ 18, 2009, 20:40:58 PM »
ทำไมตาราง code506 มันน้อยกว่าเดิมครับ
ตารางของผมก็ 285 records
แต่ของใหม่แค่200 records เอง มันลบทิ้งเหรอครับ

203
ผมลองนำเข้าโดย exec แล้วข้อมูลมันไม่เปลี่ยนตามตารางใหม่ ที่นำเข้า
มีวิธีอื่นอีกไหมครับ
บางทีนำเข้าได้ บางทีเข้าได้บาง record หรือบาง ฟีลล์ อยากให้ชัวร์กว่านี้ครับ

ตัวอย่างที่ผมลองทำขึ้นมาตามขั้นตอน
ช่วยดูหน่อยครับว่าทำถูกไหม
เพราะผมทำตามแบบนี้ตลอด

204
ขอบคุณมากเลยครับ

205
รักษาอะไรมากที่สุด
ต้องใช้คำสั่งเพิ่มเข้าไปอีกครับ

ไม่เอารักษาอะไรก็ได้ครับ

206
คลินิคผู้สูงอายุต้องการคัดกรองคนที่มีอายุมากกว่า 60 ปีขึ้นไป
ได้คำสั่ง
select cid,hn,pname,fname,lname ,birthday ,death from patient
where birthday <= '1949-01-01'

ผมต้องการให้มันคัดกรองด้วยว่ามารักษาด้วยโรคอะไร
รักษาอะไรมากที่สุด
ต้องใช้คำสั่งเพิ่มเข้าไปอีกครับ

ไปอ่านเห็น

select count(distinct hn) as person_count,count(vn) as visit_count
from vn_stat
where vstdate between 'xxxx' and 'xxxx'
and age_y > 60

207
ถ้าใช้คำสั่งที่ให้ แล้วไม่มี record ขึ้นเลย
แสดงว่าไม่มีปัญหาใช่ไหมครับ

208
ยินดีต้อนรับ / Re: HOSxP 3.52.2.13
« เมื่อ: กุมภาพันธ์ 14, 2009, 00:47:59 AM »
สงสัยเขียนไว้ตั้งแต่เวอร์ชั่น 3.52.2.11
ผมเปิดขึ้นมาตกใจเลย
โห
ยิ้มออกเลย
เข้าใจทำครับ
55555555

209
spclty                            nhso_code
dchstts         nhso_dchstts
dchtype         nhso_dchtype
person_vaccine      vaccine_group   export_vaccine
student_vaccine      export_vaccine_code
vaccine_combination   
wbc_vaccine      
women_vaccine
religion
person_labor_type
nationality         nhso_code
occupation      nhso_code
pttype         nhso_code

ผมลองค้นหากระทู้ต่าง ๆ ที่โพสไว้ เกี่ยวกับการแก้ไขตาราง เพื่อให้ส่งออก 12 และ 18 แฟ้มให้สมบูรณ์มากขึ้น
ไม่รู้ว่ายังมีอีกมากแค่ไหน
ลองโพสขึ้นเสริมหน่อยครับ

210
ลืมบอกไปว่า nhso_code อยู่ในตาราง pttype

211
บางรพ.ก็ใช้ nhso_code เป็นตัวเลขเช่น เด็กอายุไม่เกิน 12 ปีบริบูรณ์ เป็น 71
แต่บาง รพ. nhso_code  เป็นตัวสองหลักอังกฤษ เด็กอายุไม่เกิน 12 ปีบริบูรณ์ เป็น AA
แล้ว 18 แฟ้มจะดึงเอา nhso_code ไปใช้ใช่ไหมครับ
พอดีไปประชุมที่จังหวัดมา เขาบอกว่าต้องเป็นตัวเลขสองหลัก

212
แจ้งปัญหา / ขอความช่วยเหลือ / login จำค่าเดิม
« เมื่อ: กุมภาพันธ์ 12, 2009, 20:55:43 PM »
ตอนจะล็อกอินให้ค่าเป็นของโน้ตบุค 127.0.0.1 เวลาออกจากหน้าตั้งค่านี้แล้ว
เวลาเราไปล็อกอินแล้วมันจะเปลี่ยนเป็นค่าของ server ตลอดเลย
ต้องทำไงครับ
ค่านี้มันจะตั้งค่าที่ไหน
windows vista

213
ได้แล้วครับ
ไม่รู้ใครไปเพิ่มใส่

214
Development / Re: HOSxP 3.52.2.9
« เมื่อ: กุมภาพันธ์ 12, 2009, 13:27:38 PM »
นำเข้าแบบ zip ไม่ได้เหมือนเดิมครับ
ไม่มีให้เลือกเป็นแบบ .cds เหรอครับ

215
Development / Re: HOSxP 3.52.2.9
« เมื่อ: กุมภาพันธ์ 12, 2009, 12:34:17 PM »
อาจารย์ครับในส่วนของข้อมูล person.labor
ช่วยตรวจสอบฐานข้อมูลด้วยครับเพราะในส่วนของ
สนย นั้น code_labor มี 2 หลักครับ เวลาส่งไป error ครับ

ถ้าเราเพิ่มชนิดบุคคล ในตาราง person_labor_type ตามรูปที่สองที่ให้มา
เวลามันแสดงผล จะเป็นเหมือนรูปข้างล่างครับ
ขยายลิสออกอีกได้ไหมครับ
แล้วบุคคลทั่วไปรหัส nhso_code เป็นอะไรครับ
หรือเป็น รหัส 23

216
Development / Re: HOSxP 3.52.2.9
« เมื่อ: กุมภาพันธ์ 12, 2009, 12:15:10 PM »
อ้างจาก: nuttavut ที่ กุมภาพันธ์ 10, 2009, 03:17:54 PM
อ้างจาก: nuayny ที่ กุมภาพันธ์ 10, 2009, 01:36:45 PM
อ้างจาก: usa0823 ที่ กุมภาพันธ์ 10, 2009, 09:54:09 AM
อยู่ที่ system setting ด้านล่างเลยครับ
วิธีสร้างก็คล้ายๆ กับ lab design นะครับ...



ขอบคุณมากครับ..แต่พอIMPORT มันขึ้นอย่างนี้อ่ะครับ..ช่วยทีนะครับ


ใช่แล้ว...เป็นเหมือนกัน...

เป็นเหมือนกัน.........ครับ



เหมือนกันอีกคนครับ

217
ส่งตารางครับ

218
ห้องบัตรจะนับและตรวจสอบจำนวนการคืนแฟ้มเวชระเบียนทุกวัน
ถ้ามีลำดับจะนับบง่ายมากขึ้น

219
ก็มีอยู่นะครับ แต่ฟีลล์มีว่างอยู่อย่างภาพ

220
ตามภาพครับ ปรกติจะฟ้องเฉพาะคนที่แพ้ยา แต่นี่ไม่ได้คีย์ยา และคนไข้ไม่มีประวัติแพ้ยา
ในรูปคนไข้ขอใบรับรองแพทย์ แต่จะฟ้องขึ้น drug interaction และไม่มีรายการยาขึ้นมาเลย
เป็นเพราะอะไรครับ

221

ช่วยดูให้ด้วยครับไม่รู้เป็นอะไร


EurekaLog 6.0.18

Application:
------------------------------------------------------
  1.1 Start Date      : Fri, 6 Feb 2009 12:38:47 +0700
  1.2 Name/Description: HOSMy.exe
  1.3 Version Number  : 3.52.2.3
  1.4 Parameters      :
  1.5 Compilation Date: Tue, 3 Feb 2009 21:41:29 +0700
  1.6 Up Time         : 1 hour, 30 minutes, 22 seconds

Exception:
-----------------------------------------------------
  2.1 Date          : Fri, 6 Feb 2009 14:09:09 +0700
  2.2 Address       : 00521750
  2.3 Module Name   : HOSMy.exe
  2.4 Module Version: 3.52.2.3
  2.5 Type          : EDatabaseError
  2.6 Message       : Field 'epi_place_id' not found.
  2.7 ID            : 3279
  2.8 Count         : 1
  2.9 Status        : New
  2.10 Note         :

User:
-------------------------------------------------------
  3.1 ID        : superkomanp
  3.2 Name      : superkomanp
  3.3 Email     :
  3.4 Company   :
  3.5 Privileges: SeShutdownPrivilege             - OFF
                  SeChangeNotifyPrivilege         - ON
                  SeUndockPrivilege               - OFF
                  SeIncreaseWorkingSetPrivilege   - OFF
                  SeTimeZonePrivilege             - OFF

Active Controls:
----------------------------------------------------------------------------------------
  4.1 Form Class   : TMainForm
  4.2 Form Text    : :: HOSxP :: 3.52.2.3 5.0.67-0ubuntu6  Database hos @ 192.168.2.9 []
  4.3 Control Class: TwwDBGrid
  4.4 Control Text :

Computer:
-------------------------------------------------------------------------------
  5.1 Name          : SUPERADMIN
  5.2 Total Memory  : 3581 Mb
  5.3 Free Memory   : 2069 Mb
  5.4 Total Disk    : 97.66 Gb
  5.5 Free Disk     : 48.93 Gb
  5.6 System Up Time: 5 hours, 11 minutes, 4 seconds
  5.7 Processor     : Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
  5.8 Display Mode  : 1280 x 800, 32 bit
  5.9 Display DPI   : 96
  5.10 Video Card   : NVIDIA GeForce 8400M GS (driver 7.15.11.143 - RAM 128 MB)
  5.11 Printer      : Canon MP140 series Printer (driver 2.10.2.10)

Operating System:
---------------------------------------
  6.1 Type    : Microsoft Windows Vista
  6.2 Build # : 6001
  6.3 Update  : Service Pack 1
  6.4 Language: Thai
  6.5 Charset : 222

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

Custom Information:
------------------------------------------------------------------------------------------------------------------
  8.1 Hospital Code            : 11085 [รพ. ท่าคันโท]
  8.2 Database Type            : MySQL
  8.3 Database Protocol        : mysql-4.1 [5.0.67-0ubuntu6
                                  Database hos @ 192.168.2.9]
  8.4                          :
  8.5 No 1                     : select vsttime from ovst where vn = '520205083341'
  8.6 No 2                     : select vstdate from ovst where vn = '520205083341'
  8.7 No 3                     : select count(*) as cc from person_epi_vaccine where  person_epi_vaccine_id = 9670
  8.8 DBMS Variables           :
  8.9                          :
  8.10 auto_increment_increment: 1
                                 auto_increment_offset = 1
                                 automatic_sp_privileges = ON
                                 back_log = 50
                                 basedir = /usr/
                                 binlog_cache_size = 32768
                                 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/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 = /var/lib/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
                                 keep_files_on_create = OFF
                                 engine_condition_pushdown = OFF
                                 expire_logs_days = 10
                                 flush = OFF
                                 flush_time = 0
                                 ft_boolean_syntax = + -><()~*:""&|
                                 ft_max_word_len = 84
                                 ft_min_word_len = 4
                                 ft_query_expansion_limit = 20
                                 ft_stopword_file = (built-in)
                                 group_concat_max_len = 1024
                                 have_archive = YES
                                 have_bdb = NO
                                 have_blackhole_engine = YES
                                 have_compress = YES
                                 have_crypt = YES
                                 have_csv = YES
                                 have_dynamic_loading = YES
                                 have_example_engine = NO
                                 have_federated_engine = DISABLED
                                 have_geometry = YES
                                 have_innodb = YES
                                 have_isam = NO
                                 have_merge_engine = YES
                                 have_ndbcluster = DISABLED
                                 have_openssl = DISABLED
                                 have_ssl = DISABLED
                                 have_query_cache = YES
                                 have_raid = NO
                                 have_rtree_keys = YES
                                 have_symlink = YES
                                 hostname = hosxp
                                 init_connect = SET NAMES tis620
                                 init_file =
                                 init_slave =
                                 innodb_additional_mem_pool_size = 25165824
                                 innodb_autoextend_increment = 8
                                 innodb_buffer_pool_awe_mem_mb = 0
                                 innodb_buffer_pool_size = 1717567488
                                 innodb_checksums = ON
                                 innodb_commit_concurrency = 0
                                 innodb_concurrency_tickets = 500
                                 innodb_data_file_path = ibdata1:100M:autoextend
                                 innodb_data_home_dir = /var/lib/mysql/
                                 innodb_adaptive_hash_index = ON
                                 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_arch_dir =
                                 innodb_log_archive = OFF
                                 innodb_log_buffer_size = 20971520
                                 innodb_log_file_size = 67108864
                                 innodb_log_files_in_group = 2
                                 innodb_log_group_home_dir = /var/lib/mysql/
                                 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 = 0
                                 innodb_thread_sleep_delay = 10000
                                 interactive_timeout = 28800
                                 join_buffer_size = 131072
                                 key_buffer_size = 1073741824
                                 key_cache_age_threshold = 300
                                 key_cache_block_size = 1024
                                 key_cache_division_limit = 100
                                 language = /usr/share/mysql/english/
                                 large_files_support = ON
                                 large_page_size = 0
                                 large_pages = OFF
                                 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_error =
                                 log_queries_not_using_indexes = OFF
                                 log_slave_updates = OFF
                                 log_slow_queries = OFF
                                 log_warnings = 1
                                 long_query_time = 10
                                 low_priority_updates = OFF
                                 lower_case_file_system = OFF
                                 lower_case_table_names = 0
                                 max_allowed_packet = 268435456
                                 max_binlog_cache_size = 18446744073709547520
                                 max_binlog_size = 104857600
                                 max_connect_errors = 10
                                 max_connections = 886
                                 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
                                 multi_range_count = 256
                                 myisam_data_pointer_size = 6
                                 myisam_max_sort_file_size = 9223372036853727232
                                 myisam_recover_options = BACKUP
                                 myisam_repair_threads = 1
                                 myisam_sort_buffer_size = 268435456
                                 myisam_stats_method = nulls_unequal
                                 ndb_autoincrement_prefetch_sz = 1
                                 ndb_force_send = ON
                                 ndb_use_exact_count = ON
                                 ndb_use_transactions = ON
                                 ndb_cache_check_time = 0
                                 ndb_connectstring =
                                 net_buffer_length = 16384
                                 net_read_timeout = 30
                                 net_retry_count = 10
                                 net_write_timeout = 60
                                 new = OFF
                                 old_passwords = OFF
                                 open_files_limit = 1024
                                 optimizer_prune_level = 1
                                 optimizer_search_depth = 62
                                 pid_file = /var/run/mysqld/mysqld.pid
                                 plugin_dir =
                                 port = 3306
                                 preload_buffer_size = 32768
                                 profiling = OFF
                                 profiling_history_size = 15
                                 protocol_version = 10
                                 query_alloc_block_size = 8192
                                 query_cache_limit = 1048576
                                 query_cache_min_res_unit = 4096
                                 query_cache_size = 134217728
                                 query_cache_type = ON
                                 query_cache_wlock_invalidate = OFF
                                 query_prealloc_size = 8192
                                 range_alloc_block_size = 4096
                                 read_buffer_size = 1048576
                                 read_only = OFF
                                 read_rnd_buffer_size = 1048576
                                 relay_log =
                                 relay_log_index =
                                 relay_log_info_file = relay-log.info
                                 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 = /tmp/
                                 slave_net_timeout = 3600
                                 slave_skip_errors = OFF
                                 slave_transaction_retries = 10
                                 slow_launch_time = 2
                                 socket = /var/run/mysqld/mysqld.sock
                                 sort_buffer_size = 1048576
                                 sql_big_selects = ON
                                 sql_mode =
                                 sql_notes = ON
                                 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_cache = 64
                                 table_lock_wait_timeout = 50
                                 table_type = MyISAM
                                 thread_cache_size = 8
                                 thread_stack = 131072
                                 time_format = %H:%i:%s
                                 time_zone = SYSTEM
                                 timed_mutexes = OFF
                                 tmp_table_size = 33554432
                                 tmpdir = /tmp
                                 transaction_alloc_block_size = 8192
                                 transaction_prealloc_size = 4096
                                 tx_isolation = REPEATABLE-READ
                                 updatable_views_with_limit = YES
                                 version = 5.0.67-0ubuntu6
                                 version_comment = (Ubuntu)
                                 version_compile_machine = x86_64
                                 version_compile_os = debian-linux-gnu
                                 wait_timeout = 28800

222
กดตรงไหนครับ

223
เช็คทุกครั้งหลังจากที่อัพเวอร์ชั่นแล้วนะครับ

224
เมื่อกรอกข้อมูลเข้าไปเวลาเข้าหน้าจอนี้มันจะฟ้องเป็นระดับโภชนาการเป็นระดับ 4 ทุกรายเลยครับ
เป็นเพราะอะไรครับ
แล้วถ้าเราคลิ๊กที่ วัดซีน 1-6 ปีมันจะฟ้อง ดังรูปครับ แล้วมันจะใส่วัดซีนไม่ได้ ทั้ง ๆ ที่เด็กอยู่ระยะ ปีกว่า เป็นเพราะอะไร

225
HOSxP PCU / Re: Vaccine
« เมื่อ: กุมภาพันธ์ 05, 2009, 20:38:23 PM »
ช่วยดูตาราง epi_vaccine ให้ด้วยครับว่าครบหรือยัง
ถ้ายังก็ขออัพด้วยนะครับ

226
HOSxP PCU / Re: Vaccine
« เมื่อ: กุมภาพันธ์ 05, 2009, 15:39:49 PM »
ขึ้นแล้วครับ
ขอบคุณมาก ๆ เลยครับ

227
HOSxP PCU / Re: Vaccine
« เมื่อ: กุมภาพันธ์ 05, 2009, 13:38:17 PM »
เอาตารางมาให้ดูครับ
ต้องเพิ่มอะไรอีกหรือเปล่า

228
HOSxP PCU / Re: Vaccine
« เมื่อ: กุมภาพันธ์ 05, 2009, 10:52:00 AM »
ของรพ.ผมก็เป็นเหมือนกันครับ recalc แล้วก็เหมือนเดิมครับ เป็น 0
แล้วปรับอะไรบ้างครับ ในตาราง vaccine

229
พึ่งอัพระบบใหม่เป็นรุ่น 3.52.1.30 หาหน้าจอวัดซีนไม่เจอครับ
และพยาบาลอยากให้เพิ่มวัดซีน BCG ให้ด้วยครับ

230
นอกเรื่อง / Re: มาแล้วครับ entity_code ฉบับปรับปรุง
« เมื่อ: กุมภาพันธ์ 04, 2009, 15:35:18 PM »
ก็อบแล้วเอาไปวางไว้ไหนครับ
ไม่เข้าใจ
แล้วไฟล์ตัวแรกให้โหลด นำเข้ายังไงครับ
ที่เป็น .cds ผมคิดว่ามันเป็นไฟล์ของ ฟอร์มรายงาน
ไปนำเข้าจะมีปัญหาไหม
หรือเข้าได้ไหม

231
แจ้งปัญหา / ขอความช่วยเหลือ / Re: endian firewallกับoutlook
« เมื่อ: กุมภาพันธ์ 04, 2009, 15:06:13 PM »
ของผมก็ไม่ได้เหมือนกัน

232
endian firewall rc3
ที่แท็บ group policies เวลาสร้างกรูปขึ้นมา กรูปที่ชื่อ extended ผมกำหนดให้เป็น unrestricted
เวลาเข้าอินเทอร์เน็ตของ user ที่กำหนดเป็นกรูปนี้จะเข้าได้
แต่ถ้าเข้าที่เป็น proxy group name ที่ชื่อ user จะเข้าเว็บไม่ได้
เพราะอะไรครับ
หรือว่าต้องไปตั้งค่าอะไรไหม

233
ของผมแต่ก่อนก็ทำบัตรทองด้วย ทำจ่ายและดูแลระบบด้วย แต่ตอนนี้ได้ไปอยู่ในตำแหน่งของนวก.คอม เต็มตัวแล้ว
ไม่ต้องจับหลายงานพร้อมกัน
แต่ตอนนี้ ได้ดูแล hosxp pcu ด้วย ดูแลเรื่อง 18 แฟ้มด้วย
55555555
หัวหน้าไม่ให้สบายเลย

234
ปรกติแล้วใน ubuntu 7.10 ถ้าเพิ่มแค่ grant super all
แล้วก็จะหายครับ
ไม่ได้ยุ่งยากเหมือนกระทู้ที่ผ่านมา

ubuntu 8.10 mysql เวอร์ชั่น 5.0.67 มันจะไม่สร้าง user root
เวลาเราเข้า mysql
จะเข้าไปโดย ใช้แค่คำสั่ง mysql หรือคำสั่ง mysql -u root -p ก็ได้
อาจจะงง ๆ นะครับ เพราะผมก็ไม่เข้าใจเหมือนกัน ว่าทำไมมันเป็นอย่างนี้
เวอร์ชั่น 8.10 ยังมีปัญหาเรื่อง network ที่ตั้ง network แบบ manual แล้ว แต่ตอน restart เครื่องขึ้นมาแล้ว
กลายเป็น dhcp เฉยเลย ทำให้มีปัญหาเวลาที่เครื่องดับ หรือ restart เอง เพราะหมายเลข ip ของเครื่องจะไม่ตรงกับ my.cnf ทันที

ผมลองเข้าไปแก้ไข ที่ไฟล์ที่เป็นเน็ตเวิร์คแล้วก็ไม่เป็นตามค่าที่เราตั้งไว้ เวอร์ชั่นนี้ bug เยอะมาก ๆ เลยครับ
แต่ที่ใช้ ubuntu ไม่ใช่ไม่มีข้อดีนะครับ
ข้อดีก็มีครับ เช่น
ติดตั้งง่ายด้วย apt-get
config ง่าย ๆ ด้วย nano
boot เครื่องเร็วกว่าเวอร์ชั่นก่อนหน้านี้มาก
ซัพพอร์ทภาษาไทยเต็มที่ อ่านง่ายสบายตา ไม่ต้องติดตั้งเพิ่ม มีให้เลือกตอนติดตั้งเลย


ผมว่าถ้า อ.MN ได้อ่านกระทู้นี้เป็นไปได้ไหมที่จะรวมคำสั่ง funtion ไว้ในโปรแกรมเลย
เวลาใครอัพเดตเวอร์ชั่นใหม่แล้วจะได้ไม่มีปัญหา
ขอบคุณทุกกระทู้ที่ผ่านมาด้วยนะครับ
ได้ข้อมูลเยอะดี

235
ลองดูแล้วครับerror หายแล้วครับ
ไม่โชว์มากวนใจแล้ว

236
ก็อปทั้งหมดแล้ววางแล้วครับ ตั้งแต่ funtion จนถึง end ครับ
แค่กด exec ใช่ไหมครับ
แล้วมันจะหายเลยเหรอครับ
เดี๋ยวจะลองดูครับ
ขอบคุณมาก ๆ ครับ

237
ใช่อย่างนี้ไหมครับ
มัน error ครับ

238
ผมรันที่ mysql ที่ server ครับ

mysql> CREATE FUNCTION get_serialnumber(param1 varchar(150)) RETURNS int(11)
    -> 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;
ERROR 1046 (3D000): No database selected
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare xserial_no  int' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if param1='' then      select 'test' into param1' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'end if' at line 1
ERROR 1327 (42000): Undeclared variable: serial_exist
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if serial_exist = 0 then   insert into serial (name,serial_no) values (param1,0)' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'end if' at line 1
ERROR 1046 (3D000): No database selected
ERROR 1327 (42000): Undeclared variable: xserial_no
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return xserial_no' at line 1

239
รันที่สายฟ้า
หรือว่าที่ server ครับ

240
เคยเห็นมีคนโพสถามไปแล้ว แต่ยังไม่มีใครสรุปว่าสาเหตุมาจากอะไรแน่ชัด
ผมทำตามลิ้งค์
http://hosxp.net/index.php?option=com_smf&topic=6601
ก็ทำไม่ได้
มีลิ้งค์ไหนที่อธิบายละเอียดกว่านี้มีไหมครับ
ผมติดตั้ง hosxp ใหม่ พยายามมาเป็นอาทิตย์แล้วก็ยังไม่ได้
ทั้ง centos และ ubuntu ครับ
สรุปคำสั่งที่ผมใช้
เมื่อติดตั้ง mysql เสร็จ
1. mysql_upgrade
2.mysql_fix_privilege_tables
จากนั้นก็ไปกำหนด password ให้ mysql
เข้าไปที่ mysql -u root -p
และ ใช้คำสั่ง set global log_bin_trust_function_creators = 1;
สร้างฐานข้อมูล hos
create database hos;
grant สิทธิ
grant all on *.* to sa@'192.168.2.%' identified by 'sa' with grant option;
flush privileges;
grant super on *.* to sa@'192.168.2.%' identified by 'sa';
flush privileges;
\q
ทำการ restart mysql
sudo service mysql restart
จากนั้นก็โอนข้อมูลมา และ ทำการ upgrade structure  และ check and repair table

241
ไม่ทราบว่าเป็นจากข้อมูลจริงใช่ไหมครับ
        ลอง Upstructure ดูใหม่นะครับ

ลองอัพดูแล้วครับ
ก็ยังใช้ไม่ได้

242
ขึ้น error ตามรูปครับ
พอดีขึ้นระบบใหม่ ทำการโอนข้อมูลมาใช้ครับ

243
format ทิ้งเรียบร้อยแล้วครับ
ตอนนี้ติดตั้ง ubuntu 8.10
รู้สึกว่าไม่รองรับ raid5 ของ raid hardware

244
แจ้งปัญหา / ขอความช่วยเหลือ / Re: Function Upgrade_INNODB disabled
« เมื่อ: พฤศจิกายน 30, 2008, 17:51:15 PM »
รบกวนด้วยครับ
ตอนนี้ผมใช้งาน hosxp ที่ server ไม่ได้เลย
เพราะไปอัพให้เป็น innodb ต้องเอาข้อมูลสำรองมาใช้ครับตอนนี้
ดีที่เมื่อวานคนไข้ไม่เยอะ
ข้อมูลเลยหายไม่เท่าไหร่
ตอนนี้เอาข้อมูลสำรองมาใช้ก่อนใน server สำรอง
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port      = 3306
socket      = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket      = /var/run/mysqld/mysqld.sock
nice      = 0

[mysqld]
#
# * Basic Settings
#
user      = mysql
pid-file   = /var/run/mysqld/mysqld.pid
socket      = /var/run/mysqld/mysqld.sock
port      = 3306
basedir      = /usr
table_cache     = 400
sort_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 1000M
query_cache_size = 16M
datadir      = /var/lib/mysql
tmpdir      = /tmp
language   = /usr/share/mysql/english
default-character-set=tis620
innodb_file_per_table
#skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address      = 192.168.2.9
#
# * Fine Tuning
#
key_buffer      = 900M
max_allowed_packet   = 16M
thread_stack      = 128K
thread_cache_size   = 8
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log      = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries   = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id      = 1
log_bin         = /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
expire_logs_days   = 10
max_binlog_size         = 100M
#binlog_do_db      = include_database_name
#binlog_ignore_db   = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet   = 16M

[mysql]
default-character-set=tis620
#no-auto-rehash   # faster start of mysql but no tab completition

[isamchk]
key_buffer      = 16M

#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1


#
# * IMPORTANT: Additional settings that can override those from this file!
#
!includedir /etc/mysql/conf.d/

245
แจ้งปัญหา / ขอความช่วยเหลือ / Re: error 3.51.11.29b
« เมื่อ: พฤศจิกายน 30, 2008, 02:41:25 AM »
ต้องลบก่อนทุกครั้งเหรอครับ แต่ก่อนผมไม่เคยลบเลย แล้วลบตรงไหน
ผมอัพ innodb ด้วย
แต่ไม่สำเร็จ

ไม่ได้เซฟหน้าจอให้ดูครับ
มันจะบอกว่าฐานข้อมูลอะไรนี่แหละ แล้วเกี่ยวกับ innodb
พอเปิดใช้งานอีกที ก็ฟ้อง error แบบนี้ตลอดเลย

ไม่รู้ต้องทำไง
restore ข้อมูลกลับก็ฟ้องเหมือนเดิม
สุดท้ายก็ต้องติดตั้งที่ windows ให้เป็น server แทน แล้วค่อยลง server ใหม่  :'( :'( :'(
เศร้าเลยครับ

246
แจ้งปัญหา / ขอความช่วยเหลือ / error 3.51.11.29b
« เมื่อ: พฤศจิกายน 30, 2008, 00:38:56 AM »
หลังจากอัพเสร็จแล้วเป็นแบบนี้ครับ

247
แจ้งปัญหา / ขอความช่วยเหลือ / Function Upgrade_INNODB disabled
« เมื่อ: พฤศจิกายน 29, 2008, 19:56:19 PM »
เป็นเพราะอะไรครับ
ผมอยากจะอัพแค่ไม่กี่ตาราง
พอคลิ๊กที่ Up innodb แล้วมันขึ้นแบบนี้
ต้องทำไงครับ

248
แจ้งข้อผิดพลาดการทำงานของ HOSxP V3 / Re: 3.51.11.28
« เมื่อ: พฤศจิกายน 29, 2008, 18:29:47 PM »

ผมกำลังอัพเวอร์ชั่น 3.51.11.29 อยู่เลย
3.51.11.29b มาใหม่แล้วหรอครับ

249
Report Exchange / Re: มีใครพอจะอธิบายการใช้ variable บ้างครับ
« เมื่อ: พฤศจิกายน 23, 2008, 14:54:16 PM »
save report เสร็จแล้ว
ออกแล้วเข้าใหม่
preview ดูได้แล้วครับ
ขอบคุณมาก ๆ เลยครับ

รายงานตัวข้างล่างคือตัวที่แก้ไขเสร็จเรียบร้อยแล้วครับ

250
Report Exchange / Re: มีใครพอจะอธิบายการใช้ variable บ้างครับ
« เมื่อ: พฤศจิกายน 23, 2008, 13:23:48 PM »
เห็นบอกว่าเป็นใบรับรองแพทย์แบบใหม่
ผอ.เลยออกแบบให้อิงใบรับรองแพทย์ที่ประชุมมาล่าสุด

ผมลองเพิ่มตามที่ได้บอกแล้วแต่ไม่ได้
compli ดูไม่มี error
แต่ตอน preview ดู มัน error เหมือนเดิม
น่าจะมาจากสาเหตุอะไรครับ

หน้า: 1 ... 3 4 [5] 6 7 8