BMS-HOSxP Community

HOSxP => นอกเรื่อง => ข้อความที่เริ่มโดย: yokyai ที่ กันยายน 04, 2011, 20:31:22 PM

หัวข้อ: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: yokyai ที่ กันยายน 04, 2011, 20:31:22 PM
1.cent5.4 64 bit+mysql Percona-55-5.5.14-rel20.5.149.rhel6.x86_64
2.cent 6.0 64 bit+ mysql Percona-55-5.5.14-rel20.5.149.rhel6.x86_64
3.หรืออื่นๆ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 04, 2011, 20:58:42 PM
เลือกให้ตรงกับ OS
http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.15-21.0/RPM/
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: yokyai ที่ กันยายน 04, 2011, 21:09:34 PM
คือดาวน์โหลดไว้ทั้งหมดแล้วครับ ตอนนี้ตัดสินใจว่าจะใช้ os ตัวไหนดีเท่านั้นครับ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 04, 2011, 21:11:41 PM
Oracle Linux 6.1 
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: dotAtainer ที่ กันยายน 05, 2011, 00:47:41 AM
ใช้ตัวที่คิดว่าตัวเองถนัดครับ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: jackkawave ที่ กันยายน 05, 2011, 10:30:18 AM
ใช้ตัวที่คิดว่าตัวเองถนัดครับ

ผมว่าจะลง cent 6.0 64 bit+ mysql Percona--5.5.15-21.0

แล้วเจ้า
■rhel5
■rhel6
มันแตกต่างกันอย่างไรครับ   ว่าจะลงอาทิตย์หน้านี้แล้ว ยังไงถ้าติดปัญหาอย่างไรช่วยเป็นพี่เลี้ยงให้ด้วยนะครับ   ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 05, 2011, 12:04:34 PM
Percona-xxxxxx.rhel5   ใช้กับ centos 5.x /redhat5.x /oracle5.x
Percona-xxxxxx.rhel6   ใช้กับ centos 6.x /redhat6.x /oracle6.x


หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: jackkawave ที่ กันยายน 05, 2011, 16:29:41 PM
ผมมี hdd 300gb  sas 15k rpm   จะแบ่งพื้นที่เท่าไหร่ครับให้เหมาะสมครับ  cent 6.0 64 bit+ mysql Percona--5.5.15-21.0   

 
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: dotAtainer ที่ กันยายน 05, 2011, 16:46:56 PM
ถ้าไม่ auto ก็แบ่ง custom

/   5 G  ถ้าลงอะไรเยอะๆอาทิกราฟฟิก
/ boot 512M
/tmp 512M
/swap 4G
/var ที่เหลือทั้งหมด
ถ้า linux ผมแบ่งแค่นี้ครับ

ท่านอื่นต่อเลยครับผม

ผมมี hdd 300gb  sas 15k rpm   จะแบ่งพื้นที่เท่าไหร่ครับให้เหมาะสมครับ  cent 6.0 64 bit+ mysql Percona--5.5.15-21.0   

 
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 05, 2011, 23:52:25 PM
ถ้าไม่ auto ก็แบ่ง custom

/   5 G  ถ้าลงอะไรเยอะๆอาทิกราฟฟิก
/ boot 512M
/tmp 512M
/swap 4G
/var ที่เหลือทั้งหมด
ถ้า linux ผมแบ่งแค่นี้ครับ

ท่านอื่นต่อเลยครับผม

ผมมี hdd 300gb  sas 15k rpm   จะแบ่งพื้นที่เท่าไหร่ครับให้เหมาะสมครับ  cent 6.0 64 bit+ mysql Percona--5.5.15-21.0   

 
ตามนั้นจัดการโลด
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: Bordin ที่ กันยายน 06, 2011, 09:35:50 AM
แล้วเจ้า
■rhel5
■rhel6
มันแตกต่างกันอย่างไรครับ   ว่าจะลงอาทิตย์หน้านี้แล้ว ยังไงถ้าติดปัญหาอย่างไรช่วยเป็นพี่เลี้ยงให้ด้วยนะครับ   ;D ;D

rhel = RedHat Enterprise Linux ตัวเลขคือ Version ครับ <---> ซึ่งตรงกับ Version ของ CentOS

^_^ ทำความเข้าใจกันตามนี้ครับ  ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 06, 2011, 09:37:22 AM
เอาง่าย  ๆ   centos / redhat /oracle ใช้ packet ติดตั้ง อันเดียวกัน   แต่ให้เลือก version ให้ถูกต้องครับ

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: Bordin ที่ กันยายน 06, 2011, 09:46:08 AM
เอาง่าย  ๆ   centos / redhat /oracle ใช้ packet ติดตั้ง อันเดียวกัน   แต่ให้เลือก version ให้ถูกต้องครับ

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

จะได้เข้าใจง่าย ^_^ ว่า rhel คืออะไร  ;D ;D และ เข้าใจกันตามนี้ ว่า redhat = centos = oracle linux

มันคือ linux สายพันธุ์เดียวกันครับ  ;D ;D ;D

เหมือนกับ debian = ubuntu ครับ  ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: dotAtainer ที่ กันยายน 06, 2011, 10:01:05 AM
 ;D ;D ;D ยังขาดอีกตัวนะครับ Fedora core Posfix Redhat
ถ้าติดตั้งแล้วไม่ทราบว่าจะเลือก software แบบไหนมาติดตั้งให้สั่ง uname -r แล้วสังเกตุดูช่วงท้ายบรรทัดมันจะบอกว่าเป็น rhel5 or rhel6
 
เอาง่าย  ๆ   centos / redhat /oracle ใช้ packet ติดตั้ง อันเดียวกัน   แต่ให้เลือก version ให้ถูกต้องครับ

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: jackkawave ที่ กันยายน 06, 2011, 10:58:16 AM
แล้วเจอกันบ่ายนี้ครับ กับ cent 6.0 64 bit+ mysql Percona--5.5.15-21.0
 ;D ;D ;D ;D   กับเจ้า Slave 1 : IBM X3400 Xeon 1.6GHz Ram9216MB (9GB) hdd300gb Raid1
และ my.cnf ท่าน อ.tanoy999   ;D ;D ;D
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 06, 2011, 12:00:21 PM
แล้วเจอกันบ่ายนี้ครับ กับ cent 6.0 64 bit+ mysql Percona--5.5.15-21.0
 ;D ;D ;D ;D   กับเจ้า Slave 1 : IBM X3400 Xeon 1.6GHz Ram9216MB (9GB) hdd300gb Raid1
และ my.cnf ท่าน อ.tanoy999   ;D ;D ;D

ผมส่งแล้วหรือครับ  .......ไม่รู้เลย หรือผมลืม      ถ้าได้แล้วลองๆเอาไปปรับดูครับ     ......
....บางอย่างอาจจะไม่หรูหราดีเลิศทั้งหมด     ...แต่ทุกอย่างที่ทำให้ทำด้วยใจเต็มที่  ....ขอบพระคุณครับ   

หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 06, 2011, 12:04:23 PM
1.centos 6.0 64 bit 

2.Percona-Server 5.5.15  >>>>ต้องใช้กับ hosxp ตัวใหม่ๆนะครับ   3.54.8.1x น่าจะดี

-Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-shared-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

ติดตั้งก็

#rpm -ivh Percona-Server-*  --nodeps --force

หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: jackkawave ที่ กันยายน 06, 2011, 13:28:16 PM

อ.tanoy999  ใจดีมากครับ  อ.ให้ผมมาแล้วครับ  แต่ผมก็ปรับนิดหน่อยครับ ขอบคุณ อ.tanoy มากครับ   ;D ;D

การให้เป็นบุญอันยิ่งใหญ่ โดยเฉพาะ ให้ความรู้ครับ     ;D ;D ;D ;D

แล้วเจอกันบ่ายนี้ครับ กับ cent 6.0 64 bit+ mysql Percona--5.5.15-21.0
 ;D ;D ;D ;D   กับเจ้า Slave 1 : IBM X3400 Xeon 1.6GHz Ram9216MB (9GB) hdd300gb Raid1
และ my.cnf ท่าน อ.tanoy999   ;D ;D ;D

ผมส่งแล้วหรือครับ  .......ไม่รู้เลย หรือผมลืม      ถ้าได้แล้วลองๆเอาไปปรับดูครับ     ......
....บางอย่างอาจจะไม่หรูหราดีเลิศทั้งหมด     ...แต่ทุกอย่างที่ทำให้ทำด้วยใจเต็มที่  ....ขอบพระคุณครับ   


หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: jackkawave ที่ กันยายน 06, 2011, 13:36:46 PM
 ติดตั้งแค่ 3  ตัวตามที่ อ.ว่าใช่ไหมครับ ที่เคยติดตั้งมาผมฟาดไป 7 ตัวเลย   ;D ;D ;D ผมเข้าใจผิดมาซะนาน ;D

1. Percona-Server-55-debuginfo-5.5.15-rel21.0.158.rhel6.x86_64
2. Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64
3. Percona-Server-devel-55-5.5.15-rel21.0.158.rhel6.x86_64
4. Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64
5. Percona-Server-shared-55-5.5.15-rel21.0.158.rhel6.x86_64
6. Percona-Server-shared-compat-5.5.15-rel21.0.158.rhel6.x86_64
7. Percona-Server-test-55-5.5.15-rel21.0.158.rhel6.x86_64

1.centos 6.0 64 bit 

2.Percona-Server 5.5.15  >>>>ต้องใช้กับ hosxp ตัวใหม่ๆนะครับ   3.54.8.1x น่าจะดี

-Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-shared-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

ติดตั้งก็

#rpm -ivh Percona-Server-*  --nodeps --force


หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 06, 2011, 13:41:13 PM
1.centos 6.0 64 bit 

2.Percona-Server 5.5.15  >>>>ต้องใช้กับ hosxp ตัวใหม่ๆนะครับ   3.54.8.1x น่าจะดี

-Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

-Percona-Server-shared-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm

ติดตั้งก็

#rpm -ivh Percona-Server-*  --nodeps --force




ตามนี้เลยครับ  3 ตัวก็พอ   
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: vjcode ที่ กันยายน 22, 2011, 15:02:35 PM
ช่วยที่ครับ ทำตาม อ.tanoy999  แนะนำครับ แล้ว ขึ้น error อย่างนี้ แก้อย่างไรครับ
/* -----------------------
[root@server1 ~]# cd /tmp
[root@server1 tmp]# cd mysql
[root@server1 mysql]# rpm -ivh Percona-Server-* --nodeps --force
warning: Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:Percona-Server-shared-5########################################### [ 33%]
   2:Percona-Server-client-5########################################### [ 67%]
ls: cannot access /var/lib/mysql/*.err: No such file or directory
ls: cannot access /var/lib/mysql/*.err: No such file or directory
Giving mysqld 5 seconds to exit nicely
   3:Percona-Server-server-5########################################### [100%]
111022 14:57:37 [Note] Flashcache bypass: disabled
111022 14:57:37 [Note] Flashcache setup error is : ioctl failed

111022 14:57:38 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'
111022 14:57:38 [ERROR] Aborting

111022 14:57:38 [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!

Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands 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
[root@server1 mysql]#
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: pop_hosxp ที่ กันยายน 22, 2011, 15:57:20 PM
error ตรงนี้ครับ

111022 14:57:38 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'

แก้ไขโดยเข้าไปเพิ่ม # ไว้หน้าบรรทัดที่มีคำว่า --skip-locking ใน my.cnf ครับ

หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: vjcode ที่ กันยายน 22, 2011, 19:16:18 PM
ขอบคุณครับ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: vjcode ที่ กันยายน 23, 2011, 11:17:09 AM
ขอความอนุเคราะห์ my.cnf  สำหรับ centos 6.0 +Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm    ตัวที่มีปัจจุบัน ติดตั้งไปแล้วมันขึ้น ตามข้างล่างครับ
 //my.cnf ที่ผมมีได้มาจากการอบรม //

mail :vjcode@hotmail.com

(กำลังติดย้าย serverไปเครื่องใหม่ครับ)
ขอบคุณครับ
[root@server1 mysql]# ls
Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm
Percona-Server-server-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm
Percona-Server-shared-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm
[root@server1 mysql]# rpm -ivh Percona-Server-* --nodeps --force
warning: Percona-Server-client-55-5.5.15-rel21.0.158.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:Percona-Server-shared-5########################################### [ 33%]
   2:Percona-Server-client-5########################################### [ 67%]
Giving mysqld 5 seconds to exit nicely
   3:Percona-Server-server-5########################################### [100%]
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted

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!

Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands 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
[root@server1 mysql]#
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: โรงพยาบาลอัมพวา ที่ กันยายน 23, 2011, 11:31:20 AM
พี่มด ครับ มีคู่มือcentos 6.0 64 bit  ไหม ครับพี่ กำลังลงเลย ลงไม่ผ่านอีกแล้ว อ่ะครับ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ กันยายน 23, 2011, 11:34:25 AM
ไม่มีครับ  ยังไม่ได้ทำครับ   แต่การติดตั้งก็เหมือนๆกับ centos5.x   ครับ   ลองๆติดตั้งหลายๆรอบ ใจเย็นๆ จะได้เองครับ
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: vjcode ที่ กันยายน 23, 2011, 12:54:35 PM
ขอบคุณครับ  // ถ้าไม่ได้คงต้องถอยกลับไปใช้ centos 5.4 แล้ว :'(
หัวข้อ: Re: cent5.4 กับ cent6.0
เริ่มหัวข้อโดย: dotAtainer ที่ กันยายน 23, 2011, 13:10:55 PM
 ;D ;D ;D ใช้งานเหมือนกันทุกอย่างนะครับ จะต่างก็แค่ package ที่ติดตั้ง

ขอบคุณครับ  // ถ้าไม่ได้คงต้องถอยกลับไปใช้ centos 5.4 แล้ว :'(