ผู้เขียน หัวข้อ: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB  (อ่าน 88426 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #50 เมื่อ: กันยายน 07, 2009, 19:25:40 PM »
0

SET OPTION SQL_QUOTE_SHOW_CREATE=1

นี้คือปัญหาของน้องครับ

http://bugs.mysql.com/bug.php?id=12719
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #51 เมื่อ: กันยายน 07, 2009, 23:39:09 PM »
0

SET OPTION SQL_QUOTE_SHOW_CREATE=1

นี้คือปัญหาของน้องครับ

http://bugs.mysql.com/bug.php?id=12719
ต้อง set ตรงไหนครับ อ.  ;Dอิอิ ขอความรู้ด้วยครับ :o
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #52 เมื่อ: กันยายน 09, 2009, 17:23:43 PM »
0
 ;D วันนี้ผมลอง
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction -h ip_server_a -u sa -psa hos opitemrece | mysql -h ip_server_b -u sa -psa hos คือว่าจะ dump เฉพาะตารางน่ะครับ แต่ก็ยังติด error
mysqldujp: Error 2013: Lost connection to MySQL server during query when dumping table 'opitemrece' at row: 215927
แล้วก็หยุดครับ แก้ไขอย่างไรครับ ??? :'(
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #53 เมื่อ: กันยายน 09, 2009, 18:23:01 PM »
0
;D วันนี้ผมลอง
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction -h ip_server_a -u sa -psa hos opitemrece | mysql -h ip_server_b -u sa -psa hos คือว่าจะ dump เฉพาะตารางน่ะครับ แต่ก็ยังติด error
mysqldujp: Error 2013: Lost connection to MySQL server during query when dumping table 'opitemrece' at row: 215927
แล้วก็หยุดครับ แก้ไขอย่างไรครับ ??? :'(

ลองใช้ดู
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction -h ip_server_a -u sa -psa hos opitemrece | mysql -h ip_server_b -u sa -psa hos opitemrece
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #54 เมื่อ: กันยายน 09, 2009, 18:34:02 PM »
0
ไม่ได้ครับ อ. :'(
 ???[root@Slave3 ~]# mysqldump --opt --default-character-set=tis620 --force --allow-keyword
s --single-transaction -h 192.168.0.10 -u sa -psa hos opitemrece |mysql -h 192.168.0.5
-u sa -psa hos opitemrece
mysql  Ver 14.14 Distrib 5.1.30, for pc-linux-gnu (i686) using readline 5.1
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Usage: mysql [OPTIONS] [database]
  -?, --help          Display this help and exit.
  -I, --help          Synonym for -?
  --auto-rehash       Enable automatic rehashing. One doesn't need to use
                      'rehash' to get table and field completion, but startup
                      and reconnecting may take a longer time. Disable with
                      --disable-auto-rehash.
  -A, --no-auto-rehash
                      No automatic rehashing. One has to use 'rehash' to get
                      table and field completion. This gives a quicker start of
                      mysql and disables rehashing on reconnect. WARNING:
                      options deprecated; use --disable-auto-rehash instead.
  -B, --batch         Don't use history file. Disable interactive behavior.
                      (Enables --silent)
  --character-sets-dir=name
                      Directory where character sets are.
  --column-type-info  Display column type information.
  -c, --comments      Preserve comments. Send comments to the server. The
                      default is --skip-comments (discard comments), enable
                      with --comments
  -C, --compress      Use compression in server/client protocol.
  -#, --debug[=#]     This is a non-debug version. Catch this and exit
  --debug-check       Check memory and open file usage at exit .
  -T, --debug-info    Print some debug info at exit.
  -D, --database=name Database to use.
  --default-character-set=name
                      Set the default character set.
  --delimiter=name    Delimiter to be used.
  -e, --execute=name  Execute command and quit. (Disables --force and history
                      file)
  -E, --vertical      Print the output of a query (rows) vertically.
  -f, --force         Continue even if we get an sql error.
  -G, --named-commands
                      Enable named commands. Named commands mean this program's
                      internal commands; see mysql> help . When enabled, the
                      named commands can be used from any line of the query,
                      otherwise only from the first line, before an enter.
                      Disable with --disable-named-commands. This option is
                      disabled by default.
  -g, --no-named-commands
                      Named commands are disabled. Use \* form only, or use
                      named commands only in the beginning of a line ending
                      with a semicolon (;) Since version 10.9 the client now
                      starts with this option ENABLED by default! Disable with
                      '-G'. Long format commands still work from the first
                      line. WARNING: option deprecated; use
                      --disable-named-commands instead.
  -i, --ignore-spaces Ignore space after function names.
  --local-infile      Enable/disable LOAD DATA LOCAL INFILE.
  -b, --no-beep       Turn off beep on error.
  -h, --host=name     Connect to host.
  -H, --html          Produce HTML output.
  -X, --xml           Produce XML output
  --line-numbers      Write line numbers for errors.
  -L, --skip-line-numbers
                      Don't write line number for errors. WARNING: -L is
                      deprecated, use long version of this option instead.
  -n, --unbuffered    Flush buffer after each query.
  --column-names      Write column names in results.
  -N, --skip-column-names
                      Don't write column names in results. WARNING: -N is
                      deprecated, use long version of this options instead.
  -O, --set-variable=name
                      Change the value of a variable. Please note that this
                      option is deprecated; you can set variables directly with
                      --variable-name=value.
  --sigint-ignore     Ignore SIGINT (CTRL-C)
  -o, --one-database  Only update the default database. This is useful for
                      skipping updates to other database in the update log.
  --pager[=name]      Pager to use to display results. If you don't supply an
                      option the default pager is taken from your ENV variable
                      PAGER. Valid pagers are less, more, cat [> filename],
                      etc. See interactive help (\h) also. This option does not
                      work in batch mode. Disable with --disable-pager. This
                      option is disabled by default.
  --no-pager          Disable pager and print to stdout. See interactive help
                      (\h) also. WARNING: option deprecated; use
                      --disable-pager instead.
  -p, --password[=name]
                      Password to use when connecting to server. If password is
                      not given it's asked from the tty.
  -P, --port=#        Port number to use for connection or 0 for default to, in
                      order of preference, my.cnf, $MYSQL_TCP_PORT,
                      /etc/services, built-in default (3306).
  --prompt=name       Set the mysql prompt to this value.
  --protocol=name     The protocol of connection (tcp,socket,pipe,memory).
  -q, --quick         Don't cache result, print it row by row. This may slow
                      down the server if the output is suspended. Doesn't use
                      history file.
  -r, --raw           Write fields without conversion. Used with --batch.
  --reconnect         Reconnect if the connection is lost. Disable with
                      --disable-reconnect. This option is enabled by default.
  -s, --silent        Be more silent. Print results with a tab as separator,
                      each row on new line.
  -S, --socket=name   Socket file to use for connection.
  -t, --table         Output in table format.
  --tee=name          Append everything into outfile. See interactive help (\h)
                      also. Does not work in batch mode. Disable with
                      --disable-tee. This option is disabled by default.
  --no-tee            Disable outfile. See interactive help (\h) also. WARNING:
                      option deprecated; use --disable-tee instead
  -u, --user=name     User for login if not current user.
  -U, --safe-updates  Only allow UPDATE and DELETE that uses keys.
  -U, --i-am-a-dummy  Synonym for option --safe-updates, -U.
  -v, --verbose       Write more. (-v -v -v gives the table output format).
  -V, --version       Output version information and exit.
  -w, --wait          Wait and retry if connection is down.
  --connect_timeout=# Number of seconds before connection timeout.
  --max_allowed_packet=#
                      Max packet length to send to, or receive from server
  --net_buffer_length=#
                      Buffer for TCP/IP and socket communication
  --select_limit=#    Automatic limit for SELECT when using --safe-updates
  --max_join_size=#   Automatic limit for rows in a join when using
                      --safe-updates
  --secure-auth       Refuse client connecting to server if it uses old
                      (pre-4.1.1) protocol
  --server-arg=name   Send embedded server this as a parameter.
  --show-warnings     Show warnings after every statement.

Default options are read from the following files in the given order:
/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit
--no-defaults           Don't read default options from any options file
--defaults-file=#       Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read

Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)
--------------------------------- -----------------------------
auto-rehash                       FALSE
character-sets-dir                (No default value)
column-type-info                  FALSE
comments                          FALSE
compress                          FALSE
debug-check                       FALSE
debug-info                        FALSE
database                          (No default value)
default-character-set             tis620
delimiter                         ;
vertical                          FALSE
force                             FALSE
named-commands                    FALSE
local-infile                      FALSE
no-beep                           FALSE
host                              192.168.0.5
html                              FALSE
xml                               FALSE
line-numbers                      TRUE
unbuffered                        FALSE
column-names                      TRUE
sigint-ignore                     FALSE
port                              3306
prompt                            mysql>
quick                             FALSE
raw                               FALSE
reconnect                         FALSE
socket                            /var/lib/mysql/mysql.sock
table                             FALSE
user                              sa
safe-updates                      FALSE
i-am-a-dummy                      FALSE
connect_timeout                   0
max_allowed_packet                16777216
net_buffer_length                 16384
select_limit                      1000
max_join_size                     1000000
secure-auth                       FALSE
show-warnings                     FALSE
mysqldump: Got errno 32 on write
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

doramon

  • บุคคลทั่วไป
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #55 เมื่อ: กันยายน 09, 2009, 18:50:28 PM »
0
  -D, --database=name Database to use.

  -t, --table         Output in table format.

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #56 เมื่อ: กันยายน 09, 2009, 19:16:15 PM »
0
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction --table=hos.opitemrece -h 192.168.0.10 -u sa -psa  | mysql --table=hos.opitemrece -h 192.168.0.5 -u sa -psa
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #57 เมื่อ: กันยายน 09, 2009, 19:34:34 PM »
0
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction --table=hos.opitemrece -h 192.168.0.10 -u sa -psa  | mysql --table=hos.opitemrece -h 192.168.0.5 -u sa -psa
mysqldump: option '--table' cannot take an argument ครับ ???
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #58 เมื่อ: กันยายน 09, 2009, 19:48:01 PM »
0
คือถ้าใช้
mysqldump --opt --default-character-set=tis620 --force --allow-keywords --single-transaction -h ip_server_a -u sa -psa hos an_stat | mysql -h ip_server_b -u sa -psa hos
ทำแล้วมาครบครับ แต่ตารางมันแค่ 133MB เองครับ แต่กับ opitemrece น่ะมัน 10GB ครับ ???
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #59 เมื่อ: กันยายน 10, 2009, 09:26:56 AM »
0
ขอ ดู my.cnf ที่เครื่องหลักทั้ง 2 เครื่อง
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #60 เมื่อ: กันยายน 10, 2009, 11:01:01 AM »
0
ตามนี้ครับ อ. ;D
server1 >my4GInnoDBnow
server2 >my4GXtraDBnow (ทดสอบ นำเข้าข้อมูลอยู่น่ะครับ) ???
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #61 เมื่อ: กันยายน 10, 2009, 14:35:04 PM »
0
ดันสักฮี้ด ครับ ;D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #62 เมื่อ: กันยายน 10, 2009, 18:49:03 PM »
0
ตามนี้ครับ อ. ;D
server1 >my4GInnoDBnow
server2 >my4GXtraDBnow (ทดสอบ นำเข้าข้อมูลอยู่น่ะครับ) ???

แนะนำให้ใช้ แรม อย่างน้อย  8 Gb นะครับ
จะทำให้ง่ายขึ้น และดีกว่านี้ครับ
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #63 เมื่อ: กันยายน 11, 2009, 09:41:45 AM »
0
ขอบคุณครับ อ.บอย กำลังหาเงินซื้ออยู่ครับ เพราะว่า การเงินบอกว่าปิดงบไปแล้วครับ ??? เฮ้อ HDD ก็กำลังจะเต็มเหมือนกันครับ เหลืออีก 10% ของ 72G ครับ (ใช้มานานแล้วล่ะครับ set ก็ไม่ค่อยเก่งเลยครับ) ;D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #64 เมื่อ: กันยายน 11, 2009, 10:41:13 AM »
0
ตามนี้ครับ อ. ;D
server1 >my4GInnoDBnow
server2 >my4GXtraDBnow (ทดสอบ นำเข้าข้อมูลอยู่น่ะครับ) ???

แนะนำให้ใช้ แรม อย่างน้อย  8 Gb นะครับ
จะทำให้ง่ายขึ้น และดีกว่านี้ครับ


สนับสนุน แรม 8 Gb ครับ

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #65 เมื่อ: กันยายน 12, 2009, 17:01:49 PM »
0
ตามนี้ครับ อ. ;D
server1 >my4GInnoDBnow
server2 >my4GXtraDBnow (ทดสอบ นำเข้าข้อมูลอยู่น่ะครับ) ???

แนะนำให้ใช้ แรม อย่างน้อย  8 Gb นะครับ
จะทำให้ง่ายขึ้น และดีกว่านี้ครับ

อิอิ แล้ว my.cnf ของผมเป็นอย่างไรบ้างครับ อ.
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #66 เมื่อ: กันยายน 12, 2009, 17:26:59 PM »
0
ก็ใช้ของผมนี้ครับ แต่เป็นตัวเก่า อิอิอิอิ

รพ.ที่มีคนไข้มากกว่าและใช้ข้อมูลมา 2-3 ปี
การค้นหาข้อมูลและการฐานข้อมูล จะมากกว่า รพ.ที่พึ่งขึ้นระบบครับ
การใช้งาน server จะมีมากกว่า 3-5 เท่า
เช่น การดึงรายงาน, 12 แฟ้ม,18 แฟ้ม,ยิ่งดึงเป็นปีงบนี่แหล่ะ คือบทพิสูจน์ server ครับ
ถ้าระบบเริ่มมีปัญหาเวลาดึงรายงานที่เป็นปีงบแล้ว เช่นอาการ ระบบทำงานช้าลง จนถึง ระบบล่ม
เตรียมทำใจขออนุมัติเพิ่มแรมเลยครับ

ผมใช้ประมาณนี้ครับเป็นตัวสังเกตุ เพราะ รพ.ผมมั่งจะมีการดึงรายงานตลอด
จนผมต้องแยกให้ดึงจากเครื่อง slave แต่บางทีผมเองที่ชอบดึงจาก master มากกว่า
พิสูจน์ว่าเราทำระบบได้แค่ไหน

เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #67 เมื่อ: กันยายน 12, 2009, 17:33:09 PM »
0
ถูกแล้วครับ ผมใช้ของ อ.แหละครับ ;D ;D ;D
ช่วงนี้ เครื่อง hang บ่อยครับ เพราะมีการดึงรายงานกันเรื่อย(แรมกำลังขออนุัมัติซื้อครับ อยู่ในช่วงปิดงบพอดี)
เดิมผมก็ให้ดึงรายงานจาก slave แหละครับ แต่ผมทำ slave ใหม่แล้วข้อมูลยังไม่เท่ากันเลยครับ (ก็ยังทดลองนำเข้าอยู่เรื่อยๆ แต่ก็ยังใช้ไม่ได้สักที จึงต้องรบกวน อ.ในบอร์ด HOSxP อยู่เรื่อยเลยน่ะสิครับ ??? ;D :D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #68 เมื่อ: กันยายน 12, 2009, 17:49:47 PM »
0
ถูกแล้วครับ ผมใช้ของ อ.แหละครับ ;D ;D ;D
ช่วงนี้ เครื่อง hang บ่อยครับ เพราะมีการดึงรายงานกันเรื่อย(แรมกำลังขออนุัมัติซื้อครับ อยู่ในช่วงปิดงบพอดี)
เดิมผมก็ให้ดึงรายงานจาก slave แหละครับ แต่ผมทำ slave ใหม่แล้วข้อมูลยังไม่เท่ากันเลยครับ (ก็ยังทดลองนำเข้าอยู่เรื่อยๆ แต่ก็ยังใช้ไม่ได้สักที จึงต้องรบกวน อ.ในบอร์ด HOSxP อยู่เรื่อยเลยน่ะสิครับ ??? ;D :D

ของท่านยอด ต้องเพิ่ม HD ด้วยนะครับเหลือน้อยแล้ว
ถ้าเครื่องหลักเป็นอะไรไปคง ปวดหัวและโดนเล่นงานแน่เลยครับ หรือจะขอที่เดียวเป็น 16~32~64 G  น่าจะดีนะครับ จะเห็นระบบที่แตกต่างครับ

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


ระบบพอใช้
-แรม 8 G ต้องแยก server ดึงรายงาน อยู่ได้อีก 1-2 ปี

ระบบทีทำงานได้ง่ายขึ้น
-แรม 16 G กำลังดี อยู่ได้อีก 3-4 ปี คนใช้งานจะยิ้มมากขึ้น
-แรม 32 G  ดีมากเลยครับ(ผมกำลังจะใช้ รอว่าจะซื้อที่ไหน ผอ.อนุมัติมา 2 เดือนแล้ว)

เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #69 เมื่อ: กันยายน 12, 2009, 17:55:39 PM »
0
ขอบคุณ อ.ที่เป็นห่วงครับ ;D
ผมก็กลัวว่ามันจะล่มเหมือนกันครับ (ทุกวันนี้มันก็ hang วันละหลายๆ รอบแล้วล่ะครับ) ปวดหัวครับ ;D :'(
แรม ผมว่าจะซื้อที่ memorytoday.com น่ะครับ อิอิ ;D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #70 เมื่อ: กันยายน 12, 2009, 18:31:16 PM »
0
ทดสอบระบบ Cent OS 5.3 +MySQL Percona 5.4.1 กับ สอ. 1 แห่ง CPU Quad 8200 Ram 4 Gb HD 320  วันที่ 15 กย. 2552 ครับ

Server ทำเสร็จแล้ว,ทดสอบแล้ว,อิอิอิอิอิ
« แก้ไขครั้งสุดท้าย: กันยายน 12, 2009, 18:50:45 PM โดย บอย(ด่านมะขามเตี้ย) »
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #71 เมื่อ: กันยายน 12, 2009, 18:59:04 PM »
0
ซู้ดยอด เอ้ย...สุดยอดเลยครับ ;D ;D ;D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #72 เมื่อ: กันยายน 12, 2009, 19:37:51 PM »
0
สุดยอด .... ใช้ดีแล้วบอกต่อด้วยนะครับ  ;D ;D ;D ;D ;D ;D

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #73 เมื่อ: กันยายน 14, 2009, 21:58:51 PM »
0
ถ้าหากว่าผม แปลงให้ตารางที่ใหญ่ อย่างเช่น opitemrece เป็น แบบ MyISAM แล้วค่อย mysqldump ได้หรือไม่ครับ (เฉพาะตารางที่มีขนาดใหญ่เท่านั้นน่ะครับ อ.) :'(
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ security094

  • Newbie
  • *
  • กระทู้: 45
  • spec :ผมยาว ขาว สวย หมวย X ตัวเล็ก ดัดฟัน นิสัยดี
  • Respect: 0
    • ดูรายละเอียด
    • โรงพยาบาลชานุมาน
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #74 เมื่อ: กันยายน 29, 2009, 20:06:47 PM »
0
พี่ๆ ช่วยดู my.cnf ให้หน่อยครับผมลองปรับเอง แต่รู้สึกว่าใช้ไม่ค่อยดีเลย หรือไม่ก็ขอไฟล์ my.cnf
โดยผมลงเป็น centos 5.3 64 บิต MySQL 5.1.30-percona--64 bit แรม 2 gb ibm system x3200
ขอด่วนด้วยนะครับจะลองพรุ่งนี้เช้าเลย
นักวิชาการคอมพิวเตอร์ โรงพยาบาลชานุมาน 30 เตียง
Master : IBM System X3200
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
Slave   : HP ProLiant ML110
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
HOSXP3.52.7.20
Firewall : Endian 2.2,Centos 5.3+freeradius+chillispot ฯลฯ
เว็บไซต์: http://www.amno.moph.go.th/chanumanhos/

ออฟไลน์ เด็กใหม่

  • Newbie
  • *
  • กระทู้: 32
  • Respect: 0
    • ดูรายละเอียด
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #75 เมื่อ: ตุลาคม 01, 2009, 07:45:50 AM »
0
 ;D ;D ;D ;D ;D
Server Oracle-Enterprise-R6-U4+MySQL-5.5.30
Slave PC CoreI7 Ram64G HD2TBxBuffer64MB ประกอบ
เครื่องลูกข่าย Windows Vista+7+8 64bit+ระบบ HOSxP&HOSxP PCU Online(VPN)

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #76 เมื่อ: ตุลาคม 01, 2009, 09:03:26 AM »
0
ถ้าหากว่าผม แปลงให้ตารางที่ใหญ่ อย่างเช่น opitemrece เป็น แบบ MyISAM แล้วค่อย mysqldump ได้หรือไม่ครับ (เฉพาะตารางที่มีขนาดใหญ่เท่านั้นน่ะครับ อ.) :'(
;D
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: mysql 5.4 percona และขั้นตอนการลง MySQL XtraDB
« ตอบกลับ #77 เมื่อ: ตุลาคม 08, 2009, 17:52:57 PM »
0
ถ้าหากว่าผม แปลงให้ตารางที่ใหญ่ อย่างเช่น opitemrece เป็น แบบ MyISAM แล้วค่อย mysqldump ได้หรือไม่ครับ (เฉพาะตารางที่มีขนาดใหญ่เท่านั้นน่ะครับ อ.) :'(

ต้องลองทำดูครับ แต่ สำรองก่อนนะครับ

เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11