首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试启动mysql时获取pthread_create错误13 (权限)

尝试启动mysql时获取pthread_create错误13 (权限)
EN

Stack Overflow用户
提问于 2015-02-17 03:49:46
回答 2查看 476关注 0票数 2

我正在尝试在RedHat AWS box上开始一个干净的5.6mysql安装。在日志中打印以下内容后挂起。它最终会消亡:

代码语言:javascript
复制
mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
[Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
[Warning] Buffered warning: Changed limits: table_cache: 431 (requested 2000)
[Note] Plugin 'FEDERATED' is disabled.
[Note] InnoDB: Using atomics to ref count buffer pool pages
[Note] InnoDB: The InnoDB memory heap is disabled
[Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
[Note] InnoDB: Memory barrier is not used
[Note] InnoDB: Compressed tables use zlib 1.2.3
[Note] InnoDB: Using Linux native AIO
[Note] InnoDB: Using CPU crc32 instructions
[Note] InnoDB: Initializing buffer pool, size = 128.0M
[Note] InnoDB: Completed initialization of buffer pool
InnoDB: Error: pthread_create returned 13
mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

它根本不会创建套接字。下面是my.cnf:

代码语言:javascript
复制
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2015-02-17 04:33:02

代码语言:javascript
复制
$ perror 13
OS error code  13:  Permission denied

也许你安装的时候不是root用户?

代码语言:javascript
复制
[Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)

这是由于ulimit (在操作系统中)只有1024造成的。

票数 0
EN

Stack Overflow用户

发布于 2015-02-18 21:56:35

我也有InnoDB: Error: pthread_create在CentOS7上启动mysql服务器时返回13。

找到了这个问题,检查了mysql文件夹的权限,但没有发现任何错误的权限。

将mysql服务器更新到最新版本修复了我的所有问题。(我现在的版本是14.14 Distrib 5.6.23)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28549249

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档