BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: sshpt ที่ กรกฎาคม 12, 2008, 15:33:11 PM
-
OS FreeBSD 7.0 รัน MySQL ไม่ได้ ถ้าเพิ่ม innodb_file_per_table ใน my.cnf
ตอนติดตั้ง MySQL ไม่ได้ใส่ --with-InnoDB --with-MyISAM ครับ
Starting MySQLkill: 33779: No such process
ERROR!
ผมติดตั้ง mysql ไปแล้วแต่ตอนติดตั้งไม่ได้เปิดฟังก์ชั่น innodb ถ้าต้องการเปิดฟังก์ชั่นนี้ ต้องทำยังไง
;D ;D
-
สำหรับผม...ลงใหม่อย่างเดียว ทั้ง freebsd+mysql ...ลง freebsd เอาแบบ minimal ใช้เวลาประมาณ 5 นาที เอง ลองลงใหม่นะครับ...อันนี้เป็นการ compile อยากนิดหนึ่งครับ ......จนผมเลิกเล่น freebsd หันมาจับ centos
อีกที ...ติดตั้งแบบ RPM ง่ายมากประหยัดเวลาด้วย....
-
ลองเข้าไปดูที่ไฟล์ /var/db/mysql/hostname.err ซิครับ ถ้ามีข้อความประมาณนี้หรือป่าว
080712 18:21:16 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
080712 18:21:16 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
080712 18:21:18 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
080712 18:21:18 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
080712 18:21:19 InnoDB: Started; log sequence number 0 0
080712 18:21:19 [Note] Event Scheduler: Loaded 0 events
080712 18:21:19 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.22-rc' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.1.22
-----------------------------------------------------------------------------------------------------------------------
080712 19:41:12 [Note] /usr/local/libexec/mysqld: Normal shutdown
080712 19:41:12 [Note] Event Scheduler: Purging the queue. 0 events
080712 19:41:12 InnoDB: Starting shutdown...
080712 19:41:14 InnoDB: Shutdown completed; log sequence number 0 46409
080712 19:41:14 [Note] /usr/local/libexec/mysqld: Shutdown complete
080712 19:41:14 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended
080712 19:43:07 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: Error: data file /var/db/mysql/ibdata1 is of a different size
InnoDB: 640 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 128000 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
080712 19:43:07 [ERROR] Plugin 'InnoDB' init function returned error.
080712 19:43:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
080712 19:43:07 [ERROR] /usr/local/libexec/mysqld: unknown variable 'innodb_log_arch_dir=/var/db/mysql/'
080712 19:43:07 [ERROR] Aborting
080712 19:43:07 [Note] /usr/local/libexec/mysqld: Shutdown complete
080712 19:43:07 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended
--------------------------------------------------------------------------------------------------------------------------
อันแรก แสดงว่า mysql ใช้งานได้ครับ
แต่อันล่างใช้ไม่ได้ครับ เนื่องจากว่าตอนผมรัน mysql ครั้งแรกผมไม่ได้ copy my.cnf (ผมเลือก my-huge.cnf)ไว้ที่ /etc/my.cnf ครับ มันเลย error
ได้ยังงัยแล้วบอกกันด้วยนะครับ ผมกำลังลองเล่นอยู่ ลงไปแล้วสองเครื่องประมาณเกือบ 10 รอบแล้ว ทั้งแบบ ผ่าน ports tree และ compile เอง
มันเล้าใจจริง ...ขอบอก
-
ตอนนี้ใช้งานได้นะครับ ผ่าน ports tree ครับ แต่ก็ยังมี error ตอนเข้า HOSxP อยู่เลย เป็น 5.1.22-rc ครับ ใครมี SHA256 ของ mysql-5.1.25-rc.tar.gz บ้างอะครับ ขอบ้างดิครับ
error!! หลังจากที่ initial import แล้วรองรัน HOSxP
Error while create function get_serial number
SQL Error: This function has none of DETERMINISTIC, NO SQL, or READ SQL DATA in its declaration
and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
ตอนนี้กำลังแก้อยู่ ไม่รู้เป็นเพราะอะไร
อ้อ! ใน my.cnf ไม่ต้องเอา # หน้า innodb_log_arch_dir=/var/db/mysql/ ออกนะครับ เอาไว้งั้นแหละ
-
ดูหน้านี้สิครับ
เป็นเหมือนกันไหม
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6259.msg30949#new
-
:( :(
-
ขอบคุณสำรับคำแนะนำของทุกท่านครับ ;D
(MySQL ของผมรันได้ แต่ถ้าเพิ่ม innodb_file_per_table ใน my.cnf แล้วจะ Start ไม่ได้เท่านั้นเองครับ จะลองลงใหม่ก็ไม่ได้เพราะเครื่องใช้งานอยู่ ;D)