BMS-HOSxP Community

HOSxP => HOSxP PCU => ข้อความที่เริ่มโดย: nukhari ที่ กุมภาพันธ์ 07, 2015, 17:32:11 PM

หัวข้อ: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nukhari ที่ กุมภาพันธ์ 07, 2015, 17:32:11 PM
ส่วนที่ 1 เครือง server

ลง Centos 7 พร้อมคอมฟิก ip lan เสร็จแล้ว ปิดไฟล์วอลร์ ปิด ซีลีนุกซ์ แล้วลง Percona-Server-5.6

แล้วก๊อบไฟล์ my.cnf  แทนที่ไฟล์เดิม

เปิด service mysql  ได้

สร้างฐานข้อมูล hosxp_pcu ได้

ส่วนที่ 2 เครื่อง Notebook

ping ip เจอ

ลอง เชื่อมต่อ ผ่านโปรแกรม hosxp และ hosxp_pcu  ทดสอบการเชื่อมต่อ  สามารถเชื่อมต่อได้

ปัญหาเกิดตอนนี้จะดันฐานเข้า server

เข้า hosxp  รันฐาน hosxp_pcu  host 120.0.0.1 ใส่ u/p sa

เข้าไปที่ replication แล้วใส่ host server database hosxp_pcu ใส่ u/p sa  แล้ว lnitial import ไม่ได้ error

ลองใช้ nevicat นำเข้า ก็ไม่ได้

สรุป
1. เป็นเพราะ mysql 5.6
2. เป็นเพราะ my.cnf
3. เป็นเพราะ centos 7

ขอขอบคุณมากๆ นะครับ




หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: udomchok ที่ กุมภาพันธ์ 07, 2015, 19:58:55 PM
สรุปว่าจะเอาฐานข้อมูลจาก Notebook ที่เป็น windows กับ MySQL 5.x ไปใส่ลงใน server ที่เป็น CentOS 7 MySQL 5.6 ใช่ไหมครับ

ลองทำ Backup/Restore หรือยัง
หรือใช้ HOSxP แล้วเข้าemergency mode เพื่อไป restore ฐานข้อมูลที่ backup ไว้ ไปใส่ใน Server

แนะนำว่าไม่ควรปิด Firewall นะครับ ควรจะเปิดไว้ และอนุญาตให้ MySQL ผ่านได้ (port 3306)
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: Sukjai ที่ กุมภาพันธ์ 08, 2015, 09:43:39 AM
ลองทำตามพี่โก้แนะนำครับ 

ไม่รู้ว่า error อะไร น่าจะโพสภาพ error ที่พบมาด้วยครับ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: Trunks ที่ กุมภาพันธ์ 09, 2015, 11:17:57 AM
ทำตามที่พี่โก้แนะนำครับ โพสต์รูปด้วยก็น่าจะดีนะ จะได้มองเห็นปัญหาที่ชัดเจนขึ้น เท่าที่ดูจากโพสต์ เหมือนกับว่ายังไม่ได้นำเข้าฐานข้อมูล HOSxP_PCU ที่ Server Linux
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nukhari ที่ กุมภาพันธ์ 09, 2015, 15:25:00 PM
ลงใหม่ centos v. 6.6 แทน v. 7  ส่วน Percona-Server v. 5.5 แทน v. 5.6

ได้แล้วครับ ขอบพระคุณมากๆ นะครับ

ช่วย config my.cnf  ให้หน่อยนะครับ  สำหรับ แรม 4 GB

[client]
port= 3306
socket= /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port= 3306
socket= /var/lib/mysql/mysql.sock
skip-external-locking
default_storage_engine=MyISAM
key_buffer = 104M
max_allowed_packet = 512M
table_cache = 1500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 52M
thread_concurrency = 8
character-set-server=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_heap_table_size = 52M
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_files_in_group=2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size = 519M
innodb_additional_mem_pool_size = 20M
innodb_thread_concurrency = 0
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_doublewrite=0
innodb_support_xa = 0
innodb_open_files = 3000
innodb_locks_unsafe_for_binlog=1
myisam-recover=FORCE,BACKUP
innodb_file_format = Barracuda
innodb_flush_method=O_DIRECT
join_buffer_size = 2M
concurrent_insert = 2
max_connections=1000
[mysqldump]
quick
max_allowed_packet = 512M
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

ขอบพระคุณมากมากนะครับผม

หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: Sukjai ที่ กุมภาพันธ์ 10, 2015, 08:43:16 AM
ถ้าติดตั้ง Server ใหม่ และยังไม่มี Database อยู่ในเครื่องเลย
แนะนำใช้ Tool BMSxTraBackupGUI ช่วยในการติดตั้ง เพราะโปรแกรมจะช่วย config ค่าพื้นฐานที่จำเป็นต้องใช้
เมื่อติดตั้งเสร็จแล้ว ค่อยปรับแต่งค่าอีกนิดหน่อยครับ

http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=29963.msg258834#msg258834

หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nukhari ที่ กุมภาพันธ์ 10, 2015, 09:24:37 AM
ขอบคุณครับ
hosxp_pcu ขึ้น

หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กุมภาพันธ์ 10, 2015, 09:55:29 AM
ขอบคุณครับ
hosxp_pcu ขึ้น



รพ.สต. แถว อำเภอผมใช้ CentOS-7+MariaDB-10.0.7 แล้ว

error ที่ขึ้น กด อัพ     upgrade structure ใหม่
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nukhari ที่ กุมภาพันธ์ 10, 2015, 10:36:54 AM
ยังไงก็ช่วยชี้แนะด้วยนะครับ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: wiphusit ที่ กุมภาพันธ์ 11, 2015, 09:06:24 AM
ผมเคยเจอ mysql 5.6  ติดตั้งเสร็จ  lnitial import เสร็จใช้จริง หลังจากนั้น  lnitial import เข้า Slave ปรากฎว่าไม่ได้ครับ เปลี่ยนมาใช้ mysql 5.5 ได้ครับ แต่ผมใช้ Centos 6.5 นะครับ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กุมภาพันธ์ 12, 2015, 16:09:04 PM
ผมเคยเจอ mysql 5.6  ติดตั้งเสร็จ  lnitial import เสร็จใช้จริง หลังจากนั้น  lnitial import เข้า Slave ปรากฎว่าไม่ได้ครับ เปลี่ยนมาใช้ mysql 5.5 ได้ครับ แต่ผมใช้ Centos 6.5 นะครับ

ได้ครับ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กุมภาพันธ์ 14, 2015, 10:24:07 AM
เวลาผมทดสอบ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nop@skn ที่ มิถุนายน 16, 2015, 11:52:06 AM
nukhari เพิ่มบรรทัด event_scheduler=ON ใน my.cnf ครับ
หัวข้อ: Re: ลง Centos 7 + Percona-Server-5.6 แล้วมีปัญหา ช่วยแนะนำทีครับ
เริ่มหัวข้อโดย: nukhari ที่ มิถุนายน 23, 2015, 15:18:10 PM
แก้ไขเรียบร้อยแล้วครับ ขอบคุณครับ

[client]
port= 3306
socket= /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
event_scheduler=on
port= 3306
socket= /var/lib/mysql/mysql.sock
skip-external-locking
default_storage_engine=MyISAM
key_buffer =1600M
max_allowed_packet =512M
table_cache = 5000
sort_buffer_size =2M
read_buffer_size =2M
read_rnd_buffer_size =2M
myisam_sort_buffer_size=600M
thread_cache = 8
query_cache_size=350M
thread_concurrency = 8
character-set-server=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_heap_table_size =52M
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_files_in_group=2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_buffer_pool_size =1800M
innodb_additional_mem_pool_size =20M
innodb_thread_concurrency = 0
innodb_log_file_size =256M
innodb_log_buffer_size =32M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_doublewrite=0
innodb_support_xa = 0
innodb_open_files = 3000
innodb_locks_unsafe_for_binlog=1
myisam-recover=FORCE,BACKUP
innodb_file_format = Barracuda
innodb_flush_method=O_DIRECT
join_buffer_size = 2M
concurrent_insert = 2
max_connections=1000
[mysqldump]
quick
max_allowed_packet = 512M
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