BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: udomchok ที่ ตุลาคม 31, 2008, 15:04:42 PM
-
พอติดตั้ง HOSxP Version 3.51.10.22 ไปแล้ว พบว่ามีการปรับแต่งข้อมูลให้เป็น Innodb แต่ปัญหาคือ InnoDB ของผมถูก diasble อยู่ จะ enale ได้อย่างไรครับ
(ถึงว่าสิ..พยายามทำ high performance หลายครั้ง ก็ยังไม่ได้ซะที => ทำเสร็จ แต่พอดูแล้ว ก็ยังไม่เป็น InnoDB อย่างที่ต้องการ) พอเจอ version นี้ ถึงได้รู้ 5555555
-
โรงพยาบาลของคุณใช้ server แรม แค่ 512 M หรือครับ
ดูจาก my.cnf
#Begin /etc/my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 16M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 32M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
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
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
#End /etc/my.cnf
ผมดูจาก
key_buffer = 256M
innodb_buffer_pool_size = 256M ใช้กับ innodb
-
555555
ถ้าใช้แรม 2 G
my.cnf ใช้กับ innodb
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 128M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 256M
thread_cache = 8
query_cache_size= 128M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max-connection = 1000
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
############################# mysql 5.1.X
#innodb_log_arch_dir = /var/lib/mysql/
#############################
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
[mysqldump]
quick
max_allowed_packet = 16M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
;D ;D ;D ;D ;D
-
พอติดตั้ง HOSxP Version 3.51.10.22 ไปแล้ว พบว่ามีการปรับแต่งข้อมูลให้เป็น Innodb แต่ปัญหาคือ InnoDB ของผมถูก diasble อยู่ จะ enale ได้อย่างไรครับ
(ถึงว่าสิ..พยายามทำ high performance หลายครั้ง ก็ยังไม่ได้ซะที => ทำเสร็จ แต่พอดูแล้ว ก็ยังไม่เป็น InnoDB อย่างที่ต้องการ) พอเจอ version นี้ ถึงได้รู้ 5555555
พี่ยังไม่ได้บอก spec เครื่องครับ
และ RAM เครื่องด้วยครับ
จะได้ปรับให้ถูก
remote ได้ครับ
:)
-
พี่เปิดระบบ remote ได้เลยครับ
เห็นพี่ชอบลงไว้แล้วนี้
สงสัยน้องจะไม่ได้ทำไว้ หรือ หรือพี่ทำเครือ่งเอง
เปลียน my.cnf แล้ว
พี่ต้องไปลบ
/var/lib/mysql/
rm -rf ib*
ออกให้หมดแล้ว stop start ใหม่ ครับ
สำคัญมากๆๆๆๆๆ สำรองข้อมูลก่อนทำครับ
-
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
สำคัญมากๆๆๆๆๆ สำรองข้อมูลก่อนทำครับ
-
อย่างนี้ต้อง backup แล้ว update mysql ซะเลยดีไหม เอา 5.1.29 ลงซะเลย 5555555
-
อย่างนี้ต้อง backup แล้ว update mysql ซะเลยดีไหม เอา 5.1.29 ลงซะเลย 5555555
ครับ
สำรองไว้ก่อนกัน มีปัญหาครับ
เพื่อความสบายใจของทุกคน ;D ;D
-
อย่างนี้ต้อง backup แล้ว update mysql ซะเลยดีไหม เอา 5.1.29 ลงซะเลย 5555555
ผมลองแล้วครับ 55555
-
อยากอัปเวอร์ชั่น จาก 3.51.10.10 เป็น 3.51.10.29b แต่เจอปัญหา InnoDB ถูก disable อยู่ ไปต่อไม่ได้ครับ
ขอความช่วยเหลือจาก อ. อ๊อด อ.บอย พิจารณาหน่อยครับ
Ram 8 Gb MySQL 5.0.9
my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 16M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 32M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
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
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
-
อยากอัปเวอร์ชั่น จาก 3.51.10.10 เป็น 3.51.10.29b แต่เจอปัญหา InnoDB ถูก disable อยู่ ไปต่อไม่ได้ครับ
ขอความช่วยเหลือจาก อ. อ๊อด อ.บอย พิจารณาหน่อยครับ
Ram 8 Gb MySQL 5.0.9
my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 16M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 32M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
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
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
ยังไม่ได้เปิดครับ
ถ้าที่ไหนใช้ tool อบรมที่ ขอนแก่น
แล้วจะไม่ได้
ก็ยังไม่ได้เปิดจริงๆๆ
-
จะต้องทำยังไงต่อครับ อ.อ๊อด
ถ้าอัปเป็น 3.51.10.29 จะมีปัญหาไหมครับ
-
จะต้องทำยังไงต่อครับ อ.อ๊อด
ถ้าอัปเป็น 3.51.10.29 จะมีปัญหาไหมครับ
คนไข้ต่อวันเท่าไรครับ
บอก spec เครื่องด้วยครับ
ram
-
Server IBM X3500
HDD SATA 180x3
RAM 8 GB
OS : CentOS 4.3
MySQL 5.0.3
ปัจจุบัน HOSxP 3.51.10.10
ผู้ป่วยนอกเฉลี่ย วันละ 300-400
ใช้ HOSxP-PCU ใน HOSxP
ผู้ป่วยใน เดือนละประมาณ 400-450 รายครับ
-
Server IBM X3500
HDD SATA 180x3
RAM 8 GB
OS : CentOS 4.3
MySQL 5.0.3
ปัจจุบัน HOSxP 3.51.10.10
ผู้ป่วยนอกเฉลี่ย วันละ 300-400
ใช้ HOSxP-PCU ใน HOSxP
ผู้ป่วยใน เดือนละประมาณ 400-450 รายครับ
ขั้นตอนทำแบบนี้ครับ
1. สำรองข้อมูล hosxp ให้ได้ก่อน
2. หาเครื่อง windows xp 1 ตัว RAM 2 G
3. ทำการโอนข้อมูลจาก linux ไป windows XP ( full setup 3.51.10.22 )
4. ย้ายการทำงานไปเครื่อง windows แทน หลังจากโอนเสร็จ
5. เปิด remote
6. update mysql linux
7. นำข้อมูลกลับมาใช้ใหม่
-
อยากอัปเวอร์ชั่น จาก 3.51.10.10 เป็น 3.51.10.29b แต่เจอปัญหา InnoDB ถูก disable อยู่ ไปต่อไม่ได้ครับ
ขอความช่วยเหลือจาก อ. อ๊อด อ.บอย พิจารณาหน่อยครับ
Ram 8 Gb MySQL 5.0.9
my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 16M
table_cache = 1000
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 32M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
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
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
key_buffer = 256M
innodb_buffer_pool_size = 256M
ใครขึ้น server ให้ครับ
-
พอติดตั้ง HOSxP Version 3.51.10.22 ไปแล้ว พบว่ามีการปรับแต่งข้อมูลให้เป็น Innodb แต่ปัญหาคือ InnoDB ของผมถูก diasble อยู่ จะ enale ได้อย่างไรครับ
(ถึงว่าสิ..พยายามทำ high performance หลายครั้ง ก็ยังไม่ได้ซะที => ทำเสร็จ แต่พอดูแล้ว ก็ยังไม่เป็น InnoDB อย่างที่ต้องการ) พอเจอ version นี้ ถึงได้รู้ 5555555
พี่ยังไม่ได้เปิด remote ครับเย็นนะครับพี่
-
InnoDB ถูก disable กรณีนี้จะแก้ไขอย่างงัยครับ ขอคำแนะนำ ram 1 GB.
-
แนะนำให้ใช้ ram อย่างต่ำ 2 Gb แต่น่าจะใช้ 4 Gb ใน รพ.ชุมชน ที่ opd 200-300 คน/วัน
และใช้ my.cnf ที่ถูก
key_buffer = xxxM = 40-60% ของ ram
innodb_buffer_pool_size = xxxM = 40-60% ของ ram ใช้ innodb
-
InnoDB ถูก disable กรณีนี้จะแก้ไขอย่างงัยครับ ขอคำแนะนำ ram 1 GB.
1. หาเครื่องสำรอง ram 2-4 Gb
2. ลง linux + mysql 5.1.29 rc
3. initial import จาก serrver
4. ปิด server
5. เปลี่ยน ip เครื่อง สำรอง = server
6. หา ram มาเพิ่มที่ server
-
:-[ Innodb ถูก disable ด้วยเช่นกันค่ะ up v.3.51.10.10 และข้ามมาเป็น v.3.51.10.26 พอ upเป็น v.3.51.10.29 ก็เป็นเรื่อง upไม่ได้ค่ะ แต่พอ up กับเครื่อง slave ก็สามารถ up ได้ ตอนนี้เครื่อง server ช้าค่ะ แต่ก็พอใช้งานได้ ไม่ทราบว่าควรทำอย่างไรดีค่ะ สามารถนำ โฟลเดอร์ฐานข้อมูลจากเครื่อง slave ไปแทนในเครื่อง server ได้หรือเปล่าค่ะ หรือมีวิธีอื่นๆ บ้างค่ะ :'(
รพช.ทุ่งใหญ่ จ.นครศรีฯค่ะ
-
ฝากอาจารย์ทุกท่านช่วยดูและแนะนำการตั้งค่าด้วยครับ
ram 2 g ครับ
ผู้รับบริการประมาณ 200 ราย/วัน
คอมพิวเตอร์ 40 เครื่อง
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# 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 /opt/lampp/var/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 = /opt/lampp/var/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /opt/lampp/var/mysql/mysql.sock
default-character-set=tis620
skip-locking
key_buffer = 256M
max_allowed_packet = 128M
table_cache = 1000
sort_buffer_size = 1M
net_buffer_length = 32K
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 256M
default-character-set=tis620
character-set-client=tis620
#character-set-connection=tis620
skip-name-resolve
innodb_file_per_table
# 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 deactivated by default since XAMPP 1.4.11
#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 BDB tables
#bdb_cache_size = 256M
#bdb_max_lock = 400000
# Comment the following if you are using InnoDB tables
skip-innodb
innodb_data_home_dir = /opt/lampp/var/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /opt/lampp/var/mysql/
innodb_log_arch_dir = /opt/lampp/var/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 = 1024M
innodb_additional_mem_pool_size = 80M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
-
:-[ Innodb ถูก disable ด้วยเช่นกันค่ะ up v.3.51.10.10 และข้ามมาเป็น v.3.51.10.26 พอ upเป็น v.3.51.10.29 ก็เป็นเรื่อง upไม่ได้ค่ะ แต่พอ up กับเครื่อง slave ก็สามารถ up ได้ ตอนนี้เครื่อง server ช้าค่ะ แต่ก็พอใช้งานได้ ไม่ทราบว่าควรทำอย่างไรดีค่ะ สามารถนำ โฟลเดอร์ฐานข้อมูลจากเครื่อง slave ไปแทนในเครื่อง server ได้หรือเปล่าค่ะ หรือมีวิธีอื่นๆ บ้างค่ะ :'(
รพช.ทุ่งใหญ่ จ.นครศรีฯค่ะ
ram เท่าไร คับ
-
ram 2 G ครับ
ผู้รับบริการประมาณ 200 ราย/วัน
คอมพิวเตอร์ 40 เครื่อง
-
แนะนำให้ใช้ ram อย่างต่ำ 2 Gb แต่น่าจะใช้ 4 Gb ใน รพ.ชุมชน ที่ opd 200-300 คน/วัน
และใช้ my.cnf ที่ถูก
key_buffer = xxxM = 40-60% ของ ram
innodb_buffer_pool_size = xxxM = 40-60% ของ ram ใช้ innodb
อ.ครับ อย่างงี้ รพ.ทั่วไปอย่างผมนี่ ram ควรจะเป็น กี่ Gb ดีครับ อ. (ผู้มารับบริการประมาณ 1000 คนครับ) ;D
-
ผมยังไม่เข้าใจวิธีแก้ innoDB ถูก disable ครับ ไม่ทราบว่ามีภาพประกอบให้ผมดูมั้ยครับ ผมแก้ไม่ถูกครับ ผมใช้ ram 4GB ครับ ขอความช่วยเหลือหน่อยครับบบบบๆ
-
ผมยังไม่เข้าใจวิธีแก้ innoDB ถูก disable ครับ ไม่ทราบว่ามีภาพประกอบให้ผมดูมั้ยครับ ผมแก้ไม่ถูกครับ ผมใช้ ram 4GB ครับ ขอความช่วยเหลือหน่อยครับบบบบๆ
รอสักครู่
-
อ.ครับ อย่างงี้ รพ.ทั่วไปอย่างผมนี่ ram ควรจะเป็น กี่ Gb ดีครับ อ. (ผู้มารับบริการประมาณ 1000 คนครับ) ;D
น่าจะ 8-16 GB คับ
-
ผมยังไม่เข้าใจวิธีแก้ innoDB ถูก disable ครับ ไม่ทราบว่ามีภาพประกอบให้ผมดูมั้ยครับ ผมแก้ไม่ถูกครับ ผมใช้ ram 4GB ครับ ขอความช่วยเหลือหน่อยครับบบบบๆ
ผมใช้เป็น text mode คับ
ใช้คำสั่ง
[root@hosxp]#echo dump old mysql data
[root@hosxp]#mysqldump --opt --single-transaction -A > /root/hos.sql
[root@hosxp]#service mysql stop
[root@hosxp]#rm -fr /var/lib/mysql
[root@hosxp]#rm -f /etc/init.d/mysql*
[root@hosxp]#cp my.cnf /etc/my.cnf
[root@hosxp]#chmod 744 /etc/my.cnf
[root@hosxp]#rpm -Uvh perl-DBI-1.605-1.el5.rf.x86_64.rpm --nodeps --force
[root@hosxp]#rpm -Uvh MySQL-shared-5.1.30-0.glibc23.x86_64.rpm --nodeps --force
[root@hosxp]#rpm -Uvh MySQL-client-5.1.30-0.glibc23.x86_64.rpm --nodeps --force
[root@hosxp]#rpm -Uvh MySQL-server-5.1.30-0.glibc23.x86_64.rpm --nodeps --force
[root@hosxp]#mysql -e "drop database if exists hos"
[root@hosxp]#mysql -e "create database hos"
[root@hosxp]#mysql -e "grant all on hos.* to sa@'%' identified by 'sa'"
[root@hosxp]#mysql -e "grant all privileges on *.* to sa@'%' identified by 'sa' with grant option"
[root@hosxp]#echo restore old database
[root@hosxp]#mysql -e "\. /root/hos.sql
-
my.cnf = 4GB
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 820M
max_allowed_packet = 128M
table_cache = 1500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 512M
thread_cache_size = 8
query_cache_size= 386M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
innodb_file_per_table
innodb_data_home_dir = /var/lib/mysql/
#interactive_timeout = 600
#wait_timeout = 1200
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
############################# mysql 5.1.X
#innodb_log_arch_dir = /var/lib/mysql/
#############################
innodb_buffer_pool_size = 2456M
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 256M
innodb_log_buffer_size = 2M
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
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 500M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
-
ลองทำแล้วครับ พอถึงที่
[root@hosxp]#rpm -Uvh MySQL-server-5.1.30-0.glibc23.x86_64.rpm --nodeps --force
จะมีปัญหาแบบที่ผมแนบครับ
-
ถ้าเป็น mysql 5.0.xx
ต้อง remove mysql ออกก่อนครับ
ถ้าให้ดี ลง centos 5.2_64bit แล้วลง mysql 5.1.30 น่าจะดีกว่าคับ
-
SERVER2>>>IBM Core(TM) Duo 2.4GHz
RAM>>> 4GB
LINUX>>>CentOS 5.1+MySQL5.1.25
HOsXP>>>3.51.10.22
MySQL>>>mysql 5.0.37
น่าจะลง 64 bit นะทั้ง os=centos 5.2+mysql 5.1.30
-
ผมโหลด CentOS 5.2_64bit ยังไม่เสร็จครับ ก็ลองใช้ตัวนี้ไปก่อน
-
แจ้งเตือน แบบนี้มีผลเสียอะไรไหมครับ
และขอวิธีแก้ไขหน่อยนะครับ
-
แจ้งเตือน แบบนี้มีผลเสียอะไรไหมครับ
และขอวิธีแก้ไขหน่อยนะครับ
ที่รู้มาว่า เป็นการ config my.cnf ที่น้อยกว่าที่เป็นจริง
เพราะตอนนี้ อ.ชัยพร น่าจะให้ server ใช้ ram 2 GB ขึ้นไป
คงไม่มีใครใช้ ram 512 GB นะครับ(ถ้าใช้น่าจะอยู่กับ mysql 4.xx.x)
-
ผมใช้ Mysql 5.0.67 Ram 1G ก็ขึ้น warning : innodb engine status disable ครับ (เครื่อง slave)
เครื่อง master Ram 3 G จะต้องแก้ my.cnf ยังไงครับ ขอบคุณครับ
-
ผมใช้ Mysql 5.0.67 Ram 1G ก็ขึ้น warning : innodb engine status disable ครับ (เครื่อง slave)
เครื่อง master Ram 3 G จะต้องแก้ my.cnf ยังไงครับ ขอบคุณครับ
เครื่อง master Ram 3 G น่าจะใช้ Ram ไม่ 2 GB ก็ 4 GB
เพราะ Ram 3 G มักจะมีปัญหา
-
โอน ข้อมูลใส่ (เครื่อง slave) และ backup ข้อมูล
แล้วเปลี่ยนใช้ (เครื่อง slave)
จึงค่อยลงมือทำ (เครื่อง master)
ลง cent os 5.2+mysql 5.1.30 ลง 64 bit
ทำช่วงกลางคืนนะคับ
ลองทดสอบ my.cnf 3 GB
-
ขอบคุณ อ.บอยครับ แล้ว RAM 3G นี่มันจะมีปัญหาอะไรได้บ้างครับ จะได้เตรียมตัวรับไว้ก่อน แล้วถ้าใช้เวอร์ชั่น 5.0.67 นี้มันจะมีปัญหาอะไรมากไหม แล้ว อ.บอย พอจะมีวิธีการอัพเดท Mysql 5.0.37 เป็น 5.1.30 บ้างไหมครับ พอดีไม่เคยทำหน่ะครับ ขอบคุณครับ
-
ถ้าให้ดีทำ(เครื่อง slave)ก่อน อัพแรม 4 GB
แล้ว
โอน ข้อมูลใส่ (เครื่อง slave) และ backup ข้อมูล
แล้วเปลี่ยนใช้ (เครื่อง slave)
จึงค่อยลงมือทำ (เครื่อง master)
ลง cent os 5.2+mysql 5.1.30 ลง 64 bit
ทำช่วงกลางคืนนะคับ
-
งั้นสงสัยต้องขออนุมัติซื้อ server slave ใหม่ ก่อนแล้วหล่ะครับ เพราะเครื่อง slave มันเป็นแค่ pc ธรรมดา (เก่า)มาทำเครื่อง replicate เท่านั้น และเครื่อง server หลักก้อต้องอัพแรมเพิ่มด้วย
ส่วนตอนนี้ก้อต้องใช้เวอร์ชั่นนี้ไปก่อนครับ แล้วที่มันขึ้นข้อความเตือนแบบนี้เฉพาะ adminเท่านั้น userมันจะไม่ขึ้นข้อความนี้ แล้วไม่ทราบมันจะมีผลอะไรกับข้อมูลและการใช้งานหรือเปล่าและมากน้อยแค่ไหนครับผม
-
งั้นสงสัยต้องขออนุมัติซื้อ server slave ใหม่ ก่อนแล้วหล่ะครับ เพราะเครื่อง slave มันเป็นแค่ pc ธรรมดา (เก่า)มาทำเครื่อง replicate เท่านั้น และเครื่อง server หลักก้อต้องอัพแรมเพิ่มด้วย
เครื่อง slave มันเป็นแค่ pc ธรรมดา ผมว่าก็ประหยัดดีคับเปิดทิ้งไว้ 1 ปี แล้ว ค่อยเปลี่ยนเป็นเครื่องลูก
เปลี่ยนปีละ 1 เครื่อง ใช้งบประมาณปีละ 10000 บาท ประหยัดกว่าเราใช้ server ทั้ง 2 เครื่อง(สำหรับ รพ.เบี้ยน้อย) ผมก็ใช้ครับ
-
พี่บอย slave ที่ทำตัว replicate ควรเป็นวินโดว์ หรือ linuxครับ พี่
-
พี่บอย slave ที่ทำตัว replicate ควรเป็นวินโดว์ หรือ linuxครับ พี่
??? ??? ??? ??? ???
เครื่อง slave = 1 เครื่อง ควรเป็น linux
เครื่อง replicate = 1 เครื่อง ควรเป็นวินโดว์
ของพี่ ;D ;D ;D ;D ;D ;D ;D ;D
เครื่อง slave = 2 เครื่อง ควรเป็น linux
เครื่อง replicate+ส่ง datacenter ควรเป็นวินโดว์
-
ผมแก้ my.cnf แล้วแต่มันก็ยังขึ้นว่า innodb_file_per_table
อีกครั้ง ทั้งๆ ใน my.cnf ก็มี innodb_file_per_table อยู่แล้วครับ
ตัวที่ผมใช้เป็น my4G ครับ กับตัวที่เป็น my_4G อันนั้ยที่ควรจะใช้ครับ
-
ผมแก้ my.cnf แล้วแต่มันก็ยังขึ้นว่า innodb_file_per_table
อีกครั้ง ทั้งๆ ใน my.cnf ก็มี innodb_file_per_table อยู่แล้วครับ
ลง centos+mysql ใหม่เลย
ตัวที่ผมใช้เป็น my4G ครับ กับตัวที่เป็น my_4G อันนั้ยที่ควรจะใช้ครับ
ใช้ตัวไหนก็ได้
-
มาบอกว่า Innnodb_per_table ด้วยคน ทั้ง ๆ ที่ใน my.cnf มี บรรทัดนี้แล้ว และ Stop / strart ใหม่แล้ว ??? ???
-
ลองศึกษา
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=8892.msg50809