我需要在我的 ubuntu 服务器 10.04 上启用 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)
我在输出中没有看到它,当我尝试安装 Social Engine 时我得到了这个:
答案1
这是解决方案
在您的文件中启用以下两个 InnoDB 指令/etc/mysql/my.cnf
似乎已经解决了此问题:
default-storage-engine=innodb
default-table-type=innodb
重新启动 MySQL 服务器时,似乎有一些延迟进程,因此mysqld.sock
无法正确创建文件。正如您在 Lish 中看到的那样,我使用命令强制终止了延迟进程kill
,然后正常重新启动 MySQL,从而service mysql start
允许mysqld.sock
创建文件。