【问题标题】:Get pthread_create error 13 (permission) when trying to start mysql尝试启动 mysql 时获取 pthread_create 错误 13(权限)
【发布时间】:2015-02-16 19:49:45
【问题描述】:

我正在尝试在 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

有什么想法吗?

【问题讨论】:

    标签: mysql linux


    【解决方案1】:
    $ perror 13
    OS error code  13:  Permission denied
    

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

    [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
    

    这是由于 ulimit(在操作系统中)仅为 1024。

    【讨论】:

    • 当我是 root 时,我做了 yum install mysql-server mysql-client mysql common。我在 root 时使用“service mysqld start”运行它
    • 检查消息中路径中提到的所有目录 -- 对于“mysql”用户,所有目录都必须至少为 r-x。
    【解决方案2】:

    我也有 InnoDB:错误:pthread_create 在 Centos 7 上启动 mysql 服务器时返回 13。

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

    将 mysql 服务器更新到最新版本为我解决了所有问题。 (我现在在 Ver 14.14 Distrib 5.6.23)

    【讨论】:

      猜你喜欢
      • 2021-01-15
      • 1970-01-01
      • 1970-01-01
      • 2017-01-30
      • 1970-01-01
      • 2016-04-07
      • 1970-01-01
      • 1970-01-01
      • 2018-11-19
      相关资源
      最近更新 更多