ลองเข้าไปดูที่ไฟล์ /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 เอง
มันเล้าใจจริง ...ขอบอก