InnoDB: mmap(137363456 bytes) failed; errno 12

本文介绍了解决InnoDB数据库出现mmap失败的问题方法,通过调整my.cnf配置文件中的innodb_buffer_pool_size参数为8M来修复errno12错误。
[root@node1 ~]# sudo systemctl status mariadb.service --no-pager ● mariadb.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 四 2025-10-09 15:18:13 CST; 4min 28s ago Process: 119729 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE) Process: 119728 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=1/FAILURE) Process: 119693 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS) Main PID: 119728 (code=exited, status=1/FAILURE) 10月 09 15:18:12 node1 systemd[1]: Starting MariaDB database server... 10月 09 15:18:12 node1 mariadb-prepare-db-dir[119693]: Database MariaDB is probably in.... 10月 09 15:18:12 node1 mysqld_safe[119728]: 251009 15:18:12 mysqld_safe Logging to '/...'. 10月 09 15:18:12 node1 mysqld_safe[119728]: 251009 15:18:12 mysqld_safe A mysqld proc...ts 10月 09 15:18:12 node1 systemd[1]: mariadb.service: main process exited, code=exited...URE 10月 09 15:18:13 node1 systemd[1]: mariadb.service: control process exited, code=exi...s=1 10月 09 15:18:13 node1 systemd[1]: Failed to start MariaDB database server. 10月 09 15:18:13 node1 systemd[1]: Unit mariadb.service entered failed state. 10月 09 15:18:13 node1 systemd[1]: mariadb.service failed. Hint: Some lines were ellipsized, use -l to show in full. [root@node1 ~]# sudo tail -n 100 /var/log/mariadb/mariadb.log InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. InnoDB: Unable to lock ./ibdata1, error: 11 InnoDB: Check that you do not already have another mysqld process InnoDB: using the same InnoDB data or log files. 251009 14:58:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 251009 14:58:01 [Note] /usr/libexec/mysqld (mysqld 5.5.68-MariaDB) starting as process 92999 ... 251009 14:58:01 InnoDB: The InnoDB memory heap is disabled 251009 14:58:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins 251009 14:58:01 InnoDB: Compressed tables use zlib 1.2.7 251009 14:58:01 InnoDB: Using Linux native AIO 251009 14:58:01 InnoDB: Initializing buffer pool, size = 128.0M 251009 14:58:01 InnoDB: Completed initialization of buffer pool 251009 14:58:01 InnoDB: highest supported file format is Barracuda. 251009 14:58:01 InnoDB: Waiting for the background threads to start 251009 14:58:02 Percona XtraDB (http://www.percona.com) 5.5.61-MariaDB-38.13 started; log sequence number 1597945 251009 14:58:02 [Note] Plugin 'FEEDBACK' is disabled. 251009 14:58:02 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.5.68-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 0 MariaDB Server 251009 15:07:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 251009 15:07:02 InnoDB: The InnoDB memory heap is disabled 251009 15:07:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins 251009 15:07:02 InnoDB: Compressed tables use zlib 1.2.7 251009 15:07:02 InnoDB: Using Linux native AIO 251009 15:07:02 [Note] /usr/libexec/mysqld (mysqld 5.5.68-MariaDB) starting as process 104851 ... 251009 15:07:02 InnoDB: Initializing buffer pool, size = 128.0M 251009 15:07:02 InnoDB: Completed initialization of buffer pool 251009 15:07:02 InnoDB: highest supported file format is Barracuda. 251009 15:07:02 InnoDB: Waiting for the background threads to start 251009 15:07:03 Percona XtraDB (http://www.percona.com) 5.5.61-MariaDB-38.13 started; log sequence number 1597945 251009 15:07:03 [Note] Plugin 'FEEDBACK' is disabled. 251009 15:07:03 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.5.68-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 0 MariaDB Server 251009 15:08:41 [Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. The password will be ignored. 251009 15:12:56 mysqld_safe A mysqld process already exists 251009 15:13:14 [Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. The password will be ignored. 251009 15:18:12 mysqld_safe A mysqld process already exists
最新发布
10-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值