gpt4 book ai didi

mysql - 无法在 Linux 上启动 mysqld_safe

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:54:51 24 4
gpt4 key购买 nike

我已经下载了 mysql 二进制文件,并且正在尝试按照说明进行操作 here安装。当我尝试运行 bin/mysqld_safe --user=mysql & 命令时,我得到以下输出:

40211 19:04:56 mysqld_safe Logging to '/usr/local/mysql/data/irpowerweb.err'.
140211 19:04:56 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
140211 19:04:57 mysqld_safe mysqld from pid file /usr/local/mysql/data/irpowerweb.pid ended

错误日志内容为:

140211 19:07:01 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
2014-02-11 19:07:02 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-02-11 19:07:02 19511 [Note] Plugin 'FEDERATED' is disabled.
2014-02-11 19:07:02 19511 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2014-02-11 19:07:02 19511 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-11 19:07:02 19511 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2014-02-11 19:07:02 19511 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-11 19:07:02 19511 [Note] InnoDB: Using Linux native AIO
2014-02-11 19:07:02 19511 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-11 19:07:02 19511 [Note] InnoDB: Initializing buffer pool, size = 64.0M
InnoDB: mmap(68370432 bytes) failed; errno 12
2014-02-11 19:07:02 19511 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2014-02-11 19:07:02 19511 [ERROR] Plugin 'InnoDB' init function returned error.
2014-02-11 19:07:02 19511 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-02-11 19:07:02 19511 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-02-11 19:07:02 19511 [ERROR] Aborting

2014-02-11 19:07:02 19511 [Note] Binlog end

...
Shutting down stuff
...

2014-02-11 19:07:02 19511 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

140211 19:07:02 mysqld_safe mysqld from pid file /usr/local/mysql/data/irpowerweb.pid ended

这是my.cnf:

[mysqld]
innodb_buffer_pool_size = 64M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

我只想让 mysql 以 w/e 方式运行。我尝试使用 yum install mysql-server 安装包,下载 rpm 包但无法启动。我选择了简单的 tar 包并开始点击上面的链接,但我又一次无法启动它。
由于错误状态 Cannot allocate memory for the buffer pool 我尝试将内存减少到 64m(默认为 128m),但没有成功。我是这方面的新手,我已经做了很多搜索,但还没有想出如何解决这个问题。

附言如果有帮助,我正在使用 ssh 连接到低内存(512MB 内存,无交换)的服务器,我认为它是 red hat Linux。

最佳答案

我找到了答案 here .使用以下 my.cnf 并且有效:

[mysqld] 
innodb=OFF
ignore-builtin-innodb
skip-innodb
default-storage-engine=myisam
default-tmp-storage-engine=myisam

关于mysql - 无法在 Linux 上启动 mysqld_safe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21707208/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com