BMS-HOSxP Community
HOSxP => MySQL => ข้อความที่เริ่มโดย: A ที่ มีนาคม 22, 2011, 18:27:34 PM
-
ลง Percona-Server-51-5.1.55-rel12.6.200.rhel5.x86_64 บน CentOS 5.5 ไม่ผ่านครับ
ลองปรับ my.cnf ในจุดที่มีระบบฟ้องแล้วก้ยังเป็นเหมือนเดิม
รบกวนขอคำแนะนำด้วยครับ ขอบคุณทุกท่านที่เสียสละเวลาเข้ามาตอบครับ
Preparing... ########################################### [100%]
1:Percona-Server-client-5########################################### [100%]
Preparing... ########################################### [100%]
1:Percona-Server-shared-5########################################### [100%]
Preparing... ########################################### [100%]
1:Percona-Server-server-5########################################### [100%]
110322 18:20:06 [Note] Flashcache bypass: disabled
110322 18:20:06 [Note] Flashcache setup error is : ioctl failed
110322 18:20:06 [ERROR] You need to use --log-bin to make --binlog-format work.
110322 18:20:06 [ERROR] Aborting
110322 18:20:06 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
Starting MySQL (Percona Server).Manager of pid-file quit without updating file.[FAILED]
Giving mysqld 2 seconds to start
Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit
Run following command to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details
MySQL manager or server PID file could not be found! [FAILED]
Starting MySQL (Percona Server).Manager of pid-file quit wi[FAILED]dating file.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
-
ลองใส่ เครื่องหมาย # ตรงบรรทัด binlog_format=mixed แล้ว start mysql ดูครับ
-
ได้หรือยังครับ พี่
-
ได้หรือยังครับ พี่
อย่าเรียกผมพี่เลยครับ เดี๋ยวผมอายุสั้นเอาน่ะ แฮ่ะ ๆ
ขอเป็นติดไว้่ทดสอบเย็นนี้ล่ะกัน ได้ผลยังไงจะแจ้งอีกทีครับ
ขอบคุณครับ
-
ขออภัยที่มาตอบช้าครับ วิธีแก้ปัญหา ผมลบ config ใน my.cnf ที่เป็น log ออกหมด แล้วติดตั้ง mysql ใหม่ ปรากฎว่า สามารถ start mysql ได้
แต่ยังมี ฟ้อง Flashcache bypass: disabled / Flashcache setup error is : ioctl failed ขึ้นมาตอนลง ตัว server เสร็จ
ไม่แน่ใจว่าจะมีปัญหาอะไรตามมาหรือไม่ (กำลังหาข้อมูล) ท่านใดที่แก้ปัญหานี้ได้ ช่วยแนะนำด้วยนะครับ ขอบคุณครับ
-
ต้องไล่ดูตั้งแต่ os linux +mysql+my.cnf
-
ต้องไล่ดูตั้งแต่ os linux +mysql+my.cnf
CentOS 5.6 64 Bit / Percona-Server-51-5.1.55 ขอบคุณที่เสียสละเวลาเข้ามาตอบนะครับ
my.cnf ครับ
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
default_storage_engine=INNODB
default_table_type = INNODB
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer = 512M
max_allowed_packet = 1024M
table_cache = 2048
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
join_buffer_size = 2M
bulk_insert_buffer_size = 40M
max_heap_table_size = 512M
myisam_sort_buffer_size = 512M
myisam_max_sort_file_size = 512M
myisam_repair_threads = 1
myisam_recover
thread_cache_size = 1600
query_cache_size= 1024M
thread_cache_size = 8
thread_concurrency = 8
character-set-server=tis620
max_connections = 400
skip-name-resolve
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
transaction_isolation = REPEATABLE-READ
tmp_table_size = 512M
log-bin=mysql-bin
binlog_format=mixed
innodb_file_per_table
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_files_in_group = 3
innodb_log_group_home_dir = /var/lib/mysql/
innodb_max_dirty_pages_pct = 90
innodb_buffer_pool_size = 8G
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 512M
innodb_log_buffer_size = 8M
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 1
innodb_fast_shutdown = 0
innodb_flush_method=O_DIRECT
innodb_doublewrite = 0
innodb_file_io_threads = 4
innodb_lock_wait_timeout = 10
innodb_thread_concurrency = 0
innodb_support_xa = 0
innodb_locks_unsafe_for_binlog = 1
innodb_open_files = 4000
concurrent_insert = 2
[mysqldump]
quick
max_allowed_packet = 4096M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M
[myisamchk]
key_buffer = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit = 8192
-
ช่วยบอกด้วยครับว่า ram server เท่าไร
-
ช่วยบอกด้วยครับว่า ram server เท่าไร
10GB ครับผม
-
ลองถอย os มาเป้น centos4.7-server cd ดูครับ .................มันเกี่ยวกันไหมนี้ ??? ??? ??? ??? ??? ??? ??? ???
-
ลองถอย os มาเป้น centos4.7-server cd ดูครับ .................มันเกี่ยวกันไหมนี้ ??? ??? ??? ??? ??? ??? ??? ???
ผมว่า รพ.เขาน่าจะซื้อแรมเพิ่ม บอกมาเป็นปีแล้ว
ผอ.ก็เปลี่ยนคนใหม่แล้ว
เห็นว่าลงทุนเรื่อง IT และกำลังจะซื้อ Server HP ใหม่ CPU sixCORE x2 แรม 32-64 G
พอดีนั่งดื่่มเบียร์กันหลังประชุม สสจ.
-
ลองถอย os มาเป้น centos4.7-server cd ดูครับ .................มันเกี่ยวกันไหมนี้ ??? ??? ??? ??? ??? ??? ??? ???
ผมว่า รพ.เขาน่าจะซื้อแรมเพิ่ม บอกมาเป็นปีแล้ว
ผอ.ก็เปลี่ยนคนใหม่แล้ว
เห็นว่าลงทุนเรื่อง IT และกำลังจะซื้อ Server HP ใหม่ CPU sixCORE x2 แรม 32-64 G
พอดีนั่งดื่่มเบียร์กันหลังประชุม สสจ.
คาดว่าจะเป็นเดือนหน้าครับ ตอนนี้ก้พยายามใช้ทรัพยากรที่มีให้คุ้มค่าไปก่อน
-
คาดว่าจะเป็นเดือนหน้าครับ ตอนนี้ก้พยายามใช้ทรัพยากรที่มีให้คุ้มค่าไปก่อน
10+10 G =20 G หน้าคุ้มค่า ตอนนี้
-
10GB ครับผม
10 GB สำหรับร.พ.ขนาด 440 เตียง มันก็ได้แค่นี้แหละครับ อย่างนี้ต้อง 16 GB ขึ้นไปครับ ถ้าจะให้ดี 32 GB ไปเลยครับ
-
โอโห ...ใช้ ram เยอะจริงๆ ...............
-
10GB ครับผม
10 GB สำหรับร.พ.ขนาด 440 เตียง มันก็ได้แค่นี้แหละครับ อย่างนี้ต้อง 16 GB ขึ้นไปครับ ถ้าจะให้ดี 32 GB ไปเลยครับ
เนื่องจากระบบเริ่มมีเก็บรูปและต้องส่ง Datacenter สสจ.
และมีระบบ xray digital+Lab LIS
ระบบใช้มาก
ผม แค่รพ. 30 เตียงกำลังจะเป็นปรับ 24-32G แล้ว ภายใน 1-2 เดือน
-
เอาแบบสุดๆๆ ไปเลยครับ
ใส่ให้หมดเท่าที่ server รับได้เลยครับ
จัดเต็มๆๆ
-
พี่บอยแล้ว รพ.ผม ขนาด 90 เตียง คนไข้ ประมาณ 550 สูงสุด 700 ใช้ Ram ประมาณเท่าไรดีครับ พี่
-
พี่บอยแล้ว รพ.ผม ขนาด 90 เตียง คนไข้ ประมาณ 550 สูงสุด 700 ใช้ Ram ประมาณเท่าไรดีครับ พี่
16-64 G