开发者

How do I enable my innodb [closed]

开发者 https://www.devze.com 2023-03-10 16:33 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 9 years ago.

Improve this question

I need to enable innodb on my ubuntu server 10.04 and having tons of problems, I have tried posting questions everywhere and I have no answers....i tried this

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

so it seems like it is not installed or something but i keep reading its installed by default

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)

I dont see it in the output...any help would really help...this is the screen i keep getting and i cant get past this screen on my socialengine install Please anyone help


Solved the issue

enabling the following two InnoDB directives in your "/etc/mysql/my.cnf" file appears to have resolved this issue:

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

When restarting your MySQL server, there appears to have been some lingering processes so the "mysqld.sock" file wasn't being created correctly. As you saw in Lish, I forcefully killed the lingering processes using the "kill" command, and then restarted MySQL normally with "service mysql start" which allowed the "mysqld.sock" file to be created.

0

精彩评论

暂无评论...
验证码 换一张
取 消