2011-06-07 46 views
1

我需要我的Ubuntu 10.04服務器上啓用InnoDB和有噸的問題,我已經試過到處張貼問題,我沒有答案....我想這如何才能讓我的InnoDB

show variables like "%innodb%"; +-----------------------+-------+ 
| Variable_name   | Value | 
+-----------------------+-------+ 
| have_innodb   | NO | 
| ignore_builtin_innodb | OFF | 
+-----------------------+-------+ 

所以現在看來​​似乎未安裝或東西,但我繼續讀它的默認安裝

show engines;+------------+---------+----------------------------------------------------------------+--------------+------+------------+ 
| Engine  | Support | Comment              | Transactions | XA | Savepoints | 
+------------+---------+----------------------------------------------------------------+--------------+------+------------+ 
| MyISAM  | DEFAULT | Default engine as of MySQL 3.23 with great performance   | NO   | NO | NO   | 
| MRG_MYISAM | YES  | Collection of identical MyISAM tables       | NO   | NO | NO   | 
| BLACKHOLE | YES  | /dev/null storage engine (anything you write to it disappears) | NO   | NO | NO   | 
| CSV  | YES  | CSV storage engine            | NO   | NO | NO   | 
| MEMORY  | YES  | Hash based, stored in memory, useful for temporary tables  | NO   | NO | NO   | 
| FEDERATED | NO  | Federated MySQL storage engine         | NULL   | NULL | NULL  | 
| ARCHIVE | YES  | Archive storage engine           | NO   | NO | NO   | 
+------------+---------+----------------------------------------------------------------+--------------+------+------------+ 
7 rows in set (0.00 sec) 

我沒有看到它在輸出...任何幫助將真正幫助...這是screen我不斷收到我無法通過我的socialengine安裝通過這個屏幕 請任何人能幫助

+0

你應該問上http://askubuntu.com/ – Jacob 2011-06-07 00:34:51

+0

這個問題,請嘗試以下 http://serverfault.com/questions/143805/unable-to-enable-innodb-in-mysql-on-ubuntu -10-04 – eagle12 2011-06-07 00:43:09

+0

我已經嘗試了所有這些迴應,並沒有在我的情況下工作 – Trace 2011-06-07 00:45:34

回答

0

解決問題

讓你「/etc/mysql/my.cnf」文件中的以下兩個InnoDB的指令似乎已經解決了這個問題:

default-storage-engine=innodb 
default-table-type=innodb 

重新啓動時你的MySQL服務器,似乎有一些滯留的進程,所以「mysqld.sock」文件沒有被正確創建。正如你在Lish看到的那樣,我使用「kill」命令強行殺死了延遲的進程,然後通過「service mysql start」重新啓動MySQL,從而允許創建「mysqld.sock」文件。