BMS-HOSxP Community

HOSxP => MySQL => ข้อความที่เริ่มโดย: ธาดา ที่ ธันวาคม 16, 2011, 10:22:00 AM

หัวข้อ: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 16, 2011, 10:22:00 AM
centos 5.7
[root@rep1 tmp]# rpm --import http://www.percona.com/downloads/RPM-GPG-KEY-percona
[root@rep1 tmp]# rpm -ivh Percona-Server-shared-55-5.5.17-rel22.1.197.rhel5.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
   1:Percona-Server-shared-5########################################### [100%]
[root@rep1 tmp]# rpm -ivh Percona-Server-client-55-5.5.17-rel22.1.197.rhel5.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
   1:Percona-Server-client-5########################################### [100%]
[root@rep1 tmp]# rpm -ivh xtrabackup-1.6.3-292.rhel5.x86_64.rpm  --nodeps --force
Preparing...                ########################################### [100%]
   1:xtrabackup             ########################################### [100%]
[root@rep1 tmp]# rpm -ivh Percona-Server-server-55-5.5.17-rel22.1.197.rhel5.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
   1:Percona-Server-server-5########################################### [100%]
111216 17:55:06 [Note] Flashcache bypass: disabled
111216 17:55:06 [Note] Flashcache setup error is : ioctl failed

111216 17:55:06 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'
111216 17:55:06 [ERROR] Aborting

111216 17:55: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!

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@rep1 tmp]# service mysql start
Starting MySQL (Percona Server)..................The server quit without updating PID file (/var/lib/mysql/rep1.pid).                                                          [FAILED]
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 16, 2011, 10:23:09 AM
111216 17:57:27 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
111216 17:57:27 [Note] Flashcache bypass: disabled
111216 17:57:27 [Note] Flashcache setup error is : ioctl failed

111216 17:57:27 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
111216 17:57:27 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
111216 17:57:27 InnoDB: The InnoDB memory heap is disabled
111216 17:57:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111216 17:57:27 InnoDB: Compressed tables use zlib 1.2.3
111216 17:57:27 InnoDB: Using Linux native AIO
111216 17:57:27 InnoDB: Initializing buffer pool, size = 2.0G
111216 17:57:27 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file /var/lib/mysql/ibdata1 did not exist:
InnoDB: a new database to be created!
111216 17:57:27  InnoDB: Setting file /var/lib/mysql/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
111216 17:57:28  InnoDB: Log file /var/lib/mysql/ib_logfile0 did not exist: new to be created
InnoDB: Setting log file /var/lib/mysql/ib_logfile0 size to 512 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200 300 400 500
111216 17:57:33  InnoDB: Log file /var/lib/mysql/ib_logfile1 did not exist: new to be created
InnoDB: Setting log file /var/lib/mysql/ib_logfile1 size to 512 MB
InnoDB: Database physically writes the file full: wait...
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ismailsa ที่ ธันวาคม 16, 2011, 11:32:19 AM
เป็นการลง OS ใหม่ หรือOS เดิม ลง MYSQL ใหม่ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 16, 2011, 11:57:24 AM
111216 17:55:06 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'

แก้ที่ My.cnf
skip-locking  แก้เป็น     #skip-locking
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 16, 2011, 17:06:29 PM
เป็นการลง OS ใหม่ หรือOS เดิม ลง MYSQL ใหม่ครับ

ลงใหม่ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 16, 2011, 17:34:05 PM
111216 17:55:06 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'

แก้ที่ My.cnf
skip-locking  แก้เป็น     #skip-locking

แก้แล้ว แต่ติดอีกครับ

[root@rep1 tmp]# rpm -ivh Percona-Server-server-55-5.5.17-

rel22.1.197.rhel5.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
Giving mysqld 5 seconds to exit nicely
   1:Percona-Server-server-5########################################### [100%]
111217  1:32:39 [Note] Flashcache bypass: disabled
111217  1:32:39 [Note] Flashcache setup error is : ioctl failed

111217  1:32:40 [Note] Flashcache bypass: disabled
111217  1:32:40 [Note] Flashcache setup error is : ioctl failed


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h rep1 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
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@rep1 tmp]# rpm -ivh Percona-Server-server-55-5.5.17-

rel22.1.197.rhel5.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
Giving mysqld 5 seconds to exit nicely
   1:Percona-Server-server-5########################################### [100%]
111217  1:32:39 [Note] Flashcache bypass: disabled
111217  1:32:39 [Note] Flashcache setup error is : ioctl failed

111217  1:32:40 [Note] Flashcache bypass: disabled
111217  1:32:40 [Note] Flashcache setup error is : ioctl failed


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h rep1 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
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
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 16, 2011, 17:37:03 PM
nano /var/lib/mysql/rep1.err

111217 01:30:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/m$
111217  1:30:25 [Note] Flashcache bypass: disabled
111217  1:30:25 [Note] Flashcache setup error is : ioctl failed

111217  1:30:25 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
111217  1:30:25 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgra$
111217  1:30:25 InnoDB: The InnoDB memory heap is disabled
111217  1:30:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111217  1:30:25 InnoDB: Compressed tables use zlib 1.2.3
111217  1:30:25 InnoDB: Using Linux native AIO
111217  1:30:25 InnoDB: Initializing buffer pool, size = 128.0M
111217  1:30:25 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
111217  1:30:25 [ERROR] Plugin 'InnoDB' init function returned error.
111217  1:30:25 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
111217  1:30:25 [ERROR] Unknown/unsupported storage engine: InnoDB
111217  1:30:25 [ERROR] Aborting

111217  1:30:25 [Note] /usr/sbin/mysqld: Shutdown complete

111217 01:30:25 mysqld_safe mysqld from pid file /var/lib/mysql/rep1.pid ended
111217 01:33:54 mysqld_safe Starting mysqld daemon with databases from /var/lib/m$
111217  1:33:54 [Note] Flashcache bypass: disabled
111217  1:33:54 [Note] Flashcache setup error is : ioctl failed

111217  1:33:54 [Note] Plugin 'FEDERATED' is disabled.
111217  1:33:54 InnoDB: The InnoDB memory heap is disabled
111217  1:33:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111217  1:33:54 InnoDB: Compressed tables use zlib 1.2.3
111217  1:33:54 InnoDB: Using Linux native AIO
111217  1:33:54 InnoDB: Initializing buffer pool, size = 128.0M
111217  1:33:54 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes! 
111217  1:33:54 [ERROR] Plugin 'InnoDB' init function returned error.
111217  1:33:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
111217  1:33:54 [ERROR] Unknown/unsupported storage engine: InnoDB
111217  1:33:54 [ERROR] Aborting

111217  1:33:54 [Note] /usr/sbin/mysqld: Shutdown complete

111217 01:33:54 mysqld_safe mysqld from pid file /var/lib/mysql/rep1.pid ended
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 17, 2011, 21:48:40 PM
nano /var/lib/mysql/rep1.err

111217 01:30:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/m$
111217  1:30:25 [Note] Flashcache bypass: disabled
111217  1:30:25 [Note] Flashcache setup error is : ioctl failed

111217  1:30:25 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
111217  1:30:25 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgra$
111217  1:30:25 InnoDB: The InnoDB memory heap is disabled
111217  1:30:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111217  1:30:25 InnoDB: Compressed tables use zlib 1.2.3
111217  1:30:25 InnoDB: Using Linux native AIO
111217  1:30:25 InnoDB: Initializing buffer pool, size = 128.0M
111217  1:30:25 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!

111217  1:30:25 [ERROR] Plugin 'InnoDB' init function returned error.
111217  1:30:25 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
111217  1:30:25 [ERROR] Unknown/unsupported storage engine: InnoDB
111217  1:30:25 [ERROR] Aborting

111217  1:30:25 [Note] /usr/sbin/mysqld: Shutdown complete

111217 01:30:25 mysqld_safe mysqld from pid file /var/lib/mysql/rep1.pid ended
111217 01:33:54 mysqld_safe Starting mysqld daemon with databases from /var/lib/m$
111217  1:33:54 [Note] Flashcache bypass: disabled
111217  1:33:54 [Note] Flashcache setup error is : ioctl failed

111217  1:33:54 [Note] Plugin 'FEDERATED' is disabled.
111217  1:33:54 InnoDB: The InnoDB memory heap is disabled
111217  1:33:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111217  1:33:54 InnoDB: Compressed tables use zlib 1.2.3
111217  1:33:54 InnoDB: Using Linux native AIO
111217  1:33:54 InnoDB: Initializing buffer pool, size = 128.0M
111217  1:33:54 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes! 

111217  1:33:54 [ERROR] Plugin 'InnoDB' init function returned error.
111217  1:33:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
111217  1:33:54 [ERROR] Unknown/unsupported storage engine: InnoDB
111217  1:33:54 [ERROR] Aborting

111217  1:33:54 [Note] /usr/sbin/mysqld: Shutdown complete

111217 01:33:54 mysqld_safe mysqld from pid file /var/lib/mysql/rep1.pid ended

มีใครแก้ my.cnf ครับ
สงสัยติดตั้งเสร็จแล้ว ไปทำ autoconfig จาก HOSxP หรือเปล่า

InnoDB: Error: log file ./ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes! 


my.cnf ถูกแก้ไขในบรรทัด
innodb_log_file_size=512M
เป็น
innodb_log_file_size=5M
ลองแก้กลับไปเป็น 512M แล้ว restart mysql ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 17, 2011, 22:53:57 PM
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=22717.msg206376#msg206376
ลองใช้ Tool ของ อ.ชัยพรครับ
BMSxTraBackGUI สุดยอดจริง ๆ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ ธันวาคม 18, 2011, 15:54:19 PM
เห็นด้วย..ตาม พี่ โก้ ครับ..
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 10:24:25 AM
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=22717.msg206376#msg206376
ลองใช้ Tool ของ อ.ชัยพรครับ
BMSxTraBackGUI สุดยอดจริง ๆ

อยากลองเหมือนกันครับแต่ค้นหาข้อมูลไม่ได้เลยครับ

หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 10:26:59 AM
การลง percona ของผม

ก็ โหลดไฟล์ my.cnf จาก bord hosxp มาเก็บไว้ที่ /etc/my.cnf
 chmod 744 /etc/my.cnf

เย็นนี้จะลองเปลี่ยน my.cnf ใหม่ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 19, 2011, 10:38:16 AM
เห็นด้วย..ตาม พี่ โก้ ครับ..
รอคู่มือจากน้อง ๆ ที่ ร.พ. ปากท่อครับ กำลังจัดทำ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 10:54:11 AM
สรุปเป็นเพราะ my.cnf
เอา /usr/share/mysql/my-innodb-4G.cnf
มาใช้แทน
ได้แล้ว
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 13:50:38 PM
พอดีแก้ตรงนี้แล้ว mysql มัน error
default-storage-engine = MYISAM >> default-storage-engine = INNODB

ใช้คำสั่ง
mysql>show variables;
have_innodb                                      DISABLED

ทำไงให้มัน ennable

หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: pop_hosxp ที่ ธันวาคม 19, 2011, 13:55:29 PM
พอดีแก้ตรงนี้แล้ว mysql มัน error
default-storage-engine = MYISAM >> default-storage-engine = INNODB

ต้องแก้เป็นแบบนี้ครับ default_storage_engine=INNODB
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 14:09:35 PM
พอดีแก้ตรงนี้แล้ว mysql มัน error
default-storage-engine = MYISAM >> default-storage-engine = INNODB

ต้องแก้เป็นแบบนี้ครับ default_storage_engine=INNODB

mysql> show engines;
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                        | Transactions | XA   | Savepoints |
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
| MyISAM | DEFAULT | MyISAM storage engine                             | NO| NO| NO  |
| InnoDB | NO  | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | NULL         | NULL | NULL       |
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
9 rows in set (0.00 sec)

เป็นเพราะ engine มันไม่ support เปล่าครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ ธันวาคม 19, 2011, 14:12:22 PM
ใช้  under score แทนครับ..( _ )  ไม่ใช่  (-)
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 19, 2011, 14:56:33 PM
ใช้  under score แทนครับ..( _ )  ไม่ใช่  (-)

Version: '5.5.17-55-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Percona Server (GPL), Release rel22.1, Revision 197
111219 22:51:58 [Note] /usr/sbin/mysqld: Normal shutdown

111219 22:51:58 [Note] Event Scheduler: Purging the queue. 0 events
111219 22:51:58 [Note] /usr/sbin/mysqld: Shutdown complete

111219 22:51:58 mysqld_safe mysqld from pid file /var/lib/mysql/rep1.pid ended
111219 22:52:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
111219 22:52:00 [Note] Flashcache bypass: disabled
111219 22:52:00 [Note] Flashcache setup error is : ioctl failed

111219 22:52:00 [Note] Plugin 'FEDERATED' is disabled.
111219 22:52:00 [Note] Plugin 'InnoDB' is disabled.
111219 22:52:00 [ERROR] /usr/sbin/mysqld: unknown variable 'default_table_type=INNODB'
111219 22:52:00 [ERROR] Aborting
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 19, 2011, 19:19:06 PM
111219 22:52:00 [Note] Plugin 'InnoDB' is disabled.
111219 22:52:00 [ERROR] /usr/sbin/mysqld: unknown variable 'default_table_type=INNODB'
111219 22:52:00 [ERROR] Aborting
ลองแก้
default_table_type=INNODB เป็น
#default_table_type=INNODB เนื่องจาก mysql-5.5.xx ไม่ใช้ตัวนี้แล้วครับ
default_storage_engine=INNODB
character-set-server = tis620

ลองอ่านดูนะครับ พอดีเห็นว่าน่าอ่านเลยเก็บไว้ศึกษาเอง ผมหามาจากที่อื่น
http://danhos.thaiddns.com/smf/index.php?topic=12.0

จะได้เป็นจุดเริ่มต้นสำหรับการ ทำ my.cnf ให้เหมาะกับตนเองได้
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 20, 2011, 14:04:45 PM
111219 22:52:00 [Note] Plugin 'InnoDB' is disabled.
111219 22:52:00 [ERROR] /usr/sbin/mysqld: unknown variable 'default_table_type=INNODB'
111219 22:52:00 [ERROR] Aborting
ลองแก้
default_table_type=INNODB เป็น
#default_table_type=INNODB เนื่องจาก mysql-5.5.xx ไม่ใช้ตัวนี้แล้วครับ
default_storage_engine=INNODB
character-set-server = tis620

ลองอ่านดูนะครับ พอดีเห็นว่าน่าอ่านเลยเก็บไว้ศึกษาเอง ผมหามาจากที่อื่น
http://danhos.thaiddns.com/smf/index.php?topic=12.0

จะได้เป็นจุดเริ่มต้นสำหรับการ ทำ my.cnf ให้เหมาะกับตนเองได้

ได้แล้วครับ
ผมเปลี่ยนเป็นใช้ v5.1
แล้วก็ลบไฟล์ Delete “ib_logfile0″ and “ib_logfile1″.
v.5.5 น่าจะเหมือนกัน
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 22, 2011, 10:22:46 AM
สงสัยต้องลงใหม่อีกรอบแล้วติด ตรงนี้ครับ

Error while Create funtion get_serialnumber
SQL Error:Function hos.get_serianumber

หาวิธีแก้ในเวบบอร์ด ทำเกือบทุกอย่าง
ก็ไม่ได้แถมยังมี database error type กลายเป็น myisam หมด

รึว่าจะเปลี่ยนเป็น centos 6 + navitbmsxtragui (ใช้ไม่เป็น)

หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 22, 2011, 18:24:29 PM
สงสัยต้องลงใหม่อีกรอบแล้วติด ตรงนี้ครับ
Error while Create funtion get_serialnumber
SQL Error:Function hos.get_serianumber

หาวิธีแก้ในเวบบอร์ด ทำเกือบทุกอย่าง
ก็ไม่ได้แถมยังมี database error type กลายเป็น myisam หมด
รึว่าจะเปลี่ยนเป็น centos 6 + navitbmsxtragui (ใช้ไม่เป็น)
เปิด team แล้วโทรหาผม
ลง winscp +putty ไว้นะครับ
จะทำให้เสร็จ แบบว่าไม่นานถ้าเน็ตเร็วนะครับ
 
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 26, 2011, 09:32:12 AM
สงสัยต้องลงใหม่อีกรอบแล้วติด ตรงนี้ครับ
Error while Create funtion get_serialnumber
SQL Error:Function hos.get_serianumber

หาวิธีแก้ในเวบบอร์ด ทำเกือบทุกอย่าง
ก็ไม่ได้แถมยังมี database error type กลายเป็น myisam หมด
รึว่าจะเปลี่ยนเป็น centos 6 + navitbmsxtragui (ใช้ไม่เป็น)
เปิด team แล้วโทรหาผม
ลง winscp +putty ไว้นะครับ
จะทำให้เสร็จ แบบว่าไม่นานถ้าเน็ตเร็วนะครับ
 

ลงที่เครื่องไหนครับ

เปิด team = team viewer รึเปล่าครับ

และ เวลาที่โทรช่วงไหน ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ ธันวาคม 26, 2011, 09:34:26 AM

ลงที่เครื่องไหนครับ


pc เครื่องไหนก็ได้ ที่ online ได้ตลอดเวลา (ควรเป็น pc ที่เราใช้งานเองประจำ)  แล้วโทรบอก  อ.บอยครับ

จะได้ remote ไปช่วย  บอก team viewer id+password ผ่าน pm นะครับ..ไม่ต้อง public


หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 26, 2011, 10:29:24 AM
ลงที่เครื่องไหนครับ

เปิด team = team viewer รึเปล่าครับ

และ เวลาที่โทรช่วงไหน ครับ

ผมว่าง ช่วง 2-4 ทุ่ม ครับ
http://danhos.no-ip.biz/index.php?option=com_content&view=article&id=4&Itemid=8
บอก team viewer id+password ผ่าน โทร. แล้วติดกล้อง+ไมค์+ลำโพง จะได้คุยผ่านทาง  team viewer
ได้ทำก่อน รพ.คลองหลวง
แม้ วันนั้นเข้า กทม.ว่าจะไปเที่ยว รพ.คลองหลวง อิอิอิ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 27, 2011, 08:54:01 AM
ลงที่เครื่องไหนครับ

เปิด team = team viewer รึเปล่าครับ

และ เวลาที่โทรช่วงไหน ครับ

ผมว่าง ช่วง 2-4 ทุ่ม ครับ
http://danhos.no-ip.biz/index.php?option=com_content&view=article&id=4&Itemid=8
บอก team viewer id+password ผ่าน โทร. แล้วติดกล้อง+ไมค์+ลำโพง จะได้คุยผ่านทาง  team viewer
ได้ทำก่อน รพ.คลองหลวง
แม้ วันนั้นเข้า กทม.ว่าจะไปเที่ยว รพ.คลองหลวง อิอิอิ

นอกจาก tool ตัวนี้ในการทำ ซิงโครไน แล้ว มี tool  อื่นอีกไหมครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 27, 2011, 09:23:46 AM
นอกจาก tool ตัวนี้ในการทำ ซิงโครไน แล้ว มี tool  อื่นอีกไหมครับ

ที่มากับ HOSxP ไม่มี มีแต่เป็นของโปรแกรมอื่น

เปลี่ยนใช้ Percona-server-5.1.60 +CentOS-5.7 แทน Windows server แล้วหรือยัง


หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 27, 2011, 10:45:22 AM
นอกจาก tool ตัวนี้ในการทำ ซิงโครไน แล้ว มี tool  อื่นอีกไหมครับ

ที่มากับ HOSxP ไม่มี มีแต่เป็นของโปรแกรมอื่น

เปลี่ยนใช้ Percona-server-5.1.60 +CentOS-5.7 แทน Windows server แล้วหรือยัง




เปลี่ยนเลยเหรอครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 27, 2011, 10:49:15 AM

เปลี่ยนเลยเหรอครับ

น่าจะเปลี่ยนตอนกลางคืน
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ ธันวาคม 27, 2011, 11:34:34 AM


น่าจะเปลี่ยนตอนกลางคืน




กลางคืนต้องไปดูแลให้อาหารโค..ครับ.อ.บอย  ;D ;D
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 27, 2011, 11:54:44 AM


น่าจะเปลี่ยนตอนกลางคืน




กลางคืนต้องไปดูแลให้อาหารโค..ครับ.อ.บอย  ;D ;D
วันนี้ ผมคง remote ไปช่วยดูไม่ได้ วันเกิดน้องยุ้ย หยุดทำงาน 1 วันครับ
ฉลองวันเกิด อิอิอิ

น้องเขาเด็กใหม่ให้อยู่ทำไป จะได้ไม่มีผลกระทบกับระบบมากนัก
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 27, 2011, 15:19:34 PM


น่าจะเปลี่ยนตอนกลางคืน




กลางคืนต้องไปดูแลให้อาหารโค..ครับ.อ.บอย  ;D ;D
วันนี้ ผมคง remote ไปช่วยดูไม่ได้ วันเกิดน้องยุ้ย หยุดทำงาน 1 วันครับ
ฉลองวันเกิด อิอิอิ

น้องเขาเด็กใหม่ให้อยู่ทำไป จะได้ไม่มีผลกระทบกับระบบมากนัก

พอดี เครื่องที่ run replicate agent แฮงค์
ผมเลย restart เกิด error ดังนี้ครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มดตานอย ครับ.. ที่ ธันวาคม 27, 2011, 16:03:31 PM
จัดการเลย น้อง  เปลี่ยนเป็น  linux +percona ไปเลย  ตาม  พี่หลายๆท่านที่แนะนำมา
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 27, 2011, 17:13:37 PM
พอดี เครื่องที่ run replicate agent แฮงค์
ผมเลย restart เกิด error ดังนี้ครับ

ลองดูเห็น Server หลักเปลี่ยนเป็น 192.168.2.5 แล้วหรือ ไม่ใช่ 192.168.2.4
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 27, 2011, 21:49:09 PM
พอดี เครื่องที่ run replicate agent แฮงค์
ผมเลย restart เกิด error ดังนี้ครับ

ลองดูเห็น Server หลักเปลี่ยนเป็น 192.168.2.5 แล้วหรือ ไม่ใช่ 192.168.2.4

ยังใช้เครื่องเดิมอยู่ครับ
เครื่องที่ อ. ทำให้ยังไม่ได้เปลี่ยนครับ
พอดีเกิดเหตุการณ์เครื่องแฮงค์
แล้วพอมารัน rep manager ก็เกิด error = duplicate replicate agent

ก็ได้ทำการแก้ไขดังนี้

1.restart master กับ  rep < ไม่หาย
2.1 delete replication_log
2.2 initial import อีกครั้ง
2.3 delete replication_cnf < ไม่หาย
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 28, 2011, 00:12:55 AM
พอดี เครื่องที่ run replicate agent แฮงค์
ผมเลย restart เกิด error ดังนี้ครับ
ตามรูปที่แสดง
คุณ connect เข้า server 192.168.2.5 แล้วไป set replicate slave เป็น 192.168.2.5 ซึ่งเป็น IP เดียวกับ server หลัก แล้วมันจะ replicate ไปหาใครล่ะครับ
ลองเปลี่ยน IP ของ slave เป็น IP ที่ถูกต้องสิครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 28, 2011, 09:01:59 AM
ทำแล้วครับ แต่ไม่ได้
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 28, 2011, 10:34:28 AM
เปิด remote หน่อยครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 28, 2011, 10:59:08 AM
ลอง connect HOSxP ใหม่
แล้วมารัน rep manager
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 28, 2011, 11:04:14 AM
เปิด remote หน่อยครับ

ได้แล้วครับพอมาเปิดตอนเช้าอีกที มันก็ได้เอง

หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: udomchok ที่ ธันวาคม 28, 2011, 11:48:17 AM
ได้แล้วครับพอมาเปิดตอนเช้าอีกที มันก็ได้เอง
555++
 ;D ;D ;D ;D ;D
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 28, 2011, 15:07:35 PM
ลอง connect HOSxP ใหม่
แล้วมารัน rep manager

เมื่อคืนก็ทำแบบนี้ หลายเที่ยว แต่ไม่ได้
แต่ตอนเช้าลองทำดู กลับได้ ซ่ะงั้น
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 29, 2011, 09:57:57 AM
ลอง connect HOSxP ใหม่
แล้วมารัน rep manager

เมื่อคืนก็ทำแบบนี้ หลายเที่ยว แต่ไม่ได้
แต่ตอนเช้าลองทำดู กลับได้ ซ่ะงั้น

ผมว่า น่าจะปรับปรุงระบบแลน นะครับ เท่าที่เข้าไปดูระบบช้ามากนะครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 29, 2011, 10:04:08 AM
ลอง connect HOSxP ใหม่
แล้วมารัน rep manager

เมื่อคืนก็ทำแบบนี้ หลายเที่ยว แต่ไม่ได้
แต่ตอนเช้าลองทำดู กลับได้ ซ่ะงั้น

ขอคำแนะนำด้วยครับ

ผมว่า น่าจะปรับปรุงระบบแลน นะครับ เท่าที่เข้าไปดูระบบช้ามากนะครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 29, 2011, 10:05:39 AM
ระบบ SW 10/100/1000 + สาย CAT6  น่าจะดีนะครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 29, 2011, 10:09:05 AM
ระบบ SW 10/100/1000 + สาย CAT6  น่าจะดีนะครับ

ก็ว่าจะเปลี่ยนครับที่เรียนมามีแต่ทฤษฏี  เลยไม่รู้ว่าจะซื้ออุปกรณ์ยี่ห้ออะไรดี
เส้น main ต้องใช้สายอะไร + switch ยี่ห้ออะไร ประมาณนี้
ที่ดูๆก็ cisco แต่ทำไหมมันแพงจังเลย
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 29, 2011, 10:10:09 AM
server ใหม่
วันนี้ไม่มี clinic พิเศษ นะนี้
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 29, 2011, 10:13:48 AM
ระบบ SW 10/100/1000 + สาย CAT6  น่าจะดีนะครับ

ก็ว่าจะเปลี่ยนครับที่เรียนมามีแต่ทฤษฏี  เลยไม่รู้ว่าจะซื้ออุปกรณ์ยี่ห้ออะไรดี
เส้น main ต้องใช้สายอะไร + switch ยี่ห้ออะไร ประมาณนี้
ที่ดูๆก็ cisco แต่ทำไหมมันแพงจังเลย


ถ้าซื้อได้ก็ซื้อ ของแพงต้องมีดีถึงแพง
แต่ถ้ารองลงมาก็ Zyxel,SMC,3com,tp-link, แนะนำว่า SW ห้อง Server น่าจะเป็น layer 3
ส่วนจุดอื่น layer 2 ก็พอ แต่ถ้ามีงบ ก็  layer 3

server ใหม่
วันนี้ไม่มี clinic พิเศษ นะนี้

รอวันมี clinic พิเศษ

แล้ว server น่าจะเพิ่มแรมเป็น 8-16 G นะครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 29, 2011, 10:47:12 AM
layer 3 เอามาทำ vlan เหรอครับ
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ ธันวาคม 29, 2011, 10:50:20 AM
layer 3 เอามาทำ vlan เหรอครับ

เอาไว้จัดการระบบ lan
layer 3 ไว้ที่ ศูนย์กลางระบบ lan นะครับ
และระบบน่าจะเป็นแบบ star
หัวข้อ: Re: error percona#2
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 29, 2011, 14:12:41 PM
layer 3 เอามาทำ vlan เหรอครับ

เอาไว้จัดการระบบ lan
layer 3 ไว้ที่ ศูนย์กลางระบบ lan นะครับ
และระบบน่าจะเป็นแบบ star

เหลื่อแต่อธิบายให้ท่าน ผอ.เข้าจาย ซึ่งตอนนี้น่าจะเหมาะที่สุดแล้ว
ช่วงที่ผ่านมา hosxp ช้ามากๆ