我正在尝试在RedHat AWS框上启动干净的5.6 mysql安装。它在日志中打印以下内容后挂起。它最终死了:
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:
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
有什么想法吗?
答案 0 :(得分:0)
$ perror 13
OS error code 13: Permission denied
也许你在安装时根本没有?
[Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
这是由ulimit(在操作系统中)仅为1024引起的。
答案 1 :(得分:0)
我也有InnoDB:错误:在Centos 7上启动mysql服务器时,pthread_create返回13。
发现这个问题,检查了mysql文件夹的权限,但找不到任何错误的权限。
将mysql服务器更新到最新版本为我修复了一切。 (我现在在Ver 14.14 Distrib 5.6.23上)