In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Scene:
All files of the remotely copied / var/lib/mysql/* cannot be started after being packaged and dragged locally. (the guide table is lazy because the database is too large. Report an error together at startup.)
Version:
Sys:
Linux console 3.10.0-862.el7.x86_64 # 1 SMP Fri Apr 20 16:44:24 UTC 2018 x86'64 GNU/Linux
DB:
Server version: 5.5.60-MariaDB MariaDB Server
Error message:
Database log:
# tailf / var/log/mariadb/mariadb.logServer version: 5.5.60-MariaDBkey_buffer_size=134217728read_buffer_size=131072max_used_connections=0max_threads=153thread_count=0It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size) * max_threads= 466718 K bytes of memoryHope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0Attempting backtrace. You can use the following information to find outwhere mysqld died. If you see no messages after this Something wentterribly wrong...stack_bottom = 0x0 thread_stack 0x48000190119 12:54:23 mysqld_safe mysqld from pid file / var/run/mariadb/mariadb.pid ended190119 12:55:54 mysqld_safe Starting mysqld daemon with databases from / var/lib/mysql190119 12:55:54 [Note] / usr/libexec/mysqld (mysqld 5.5.60-MariaDB) starting as process 10885... 190119 12:55:54 InnoDB: The InnoDB memory heap is disabled190119 12:55:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins190119 12:55:54 InnoDB: Compressed tables use zlib 1.2.7190119 12:55:54 InnoDB: Using Linux native AIO190119 12:55:54 InnoDB: Initializing buffer pool Size = 128.0M190119 12:55:54 InnoDB: Completed initialization of buffer pool190119 12:55:54 InnoDB: highest supported file format is Barracuda.190119 12:55:54 InnoDB: Starting crash recovery from checkpoint LSN=25825591529InnoDB: Restoring possible half-written data pages from the doublewrite buffer...190119 12:55:54 InnoDB: Starting final batch to recover 15 pages from redo log190119 12:55:54 [ERROR] mysqld got signal 11 This could be because you hit a bug. It is also possible that this binaryor one of the libraries it was linked against is corrupt, improperly built,or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see http://kb.askmonty.org/en/reporting-bugsWe will try our best to scrape up some info that will hopefully helpdiagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.Server version: 5.5.60-MariaDBkey_buffer_size=134217728read_buffer_size=131072max_used_connections=0max_threads=153thread_count=0It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size) * max_threads= 466718 K bytes of memoryHope that's ok If not, decrease some variables in the equation.Thread pointer: 0x0Attempting backtrace. You can use the following information to find outwhere mysqld died. If you see no messages after this, something went
Service status:
# systemctl status mariadb ● mariadb.service-MariaDB database server Loaded: loaded (/ usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2019-01-19 12:49:08 CST 3s ago Process: 9550 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE) Process: 9549 ExecStart=/usr/bin/mysqld_safe-- basedir=/usr (code=exited, status=0/SUCCESS) Process: 9517 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir% n (code=exited, status=0/SUCCESS) Main PID: 9549 (code=exited Status=0/SUCCESS) Jan 19 12:49:06 console systemd [1]: Starting MariaDB database server...Jan 19 12:49:06 console mariadb-prepare-db-dir [9517]: Database MariaDB is probably initialized in / var/lib/mysql alreJan 19 12:49:06 console mariadb-prepare-db-dir [9517]: If this is not the case Make sure the / var/lib/mysql is empty Jan 19 12:49:06 console mysqld_safe [9549]: 190119 12:49:06 mysqld_safe Logging to'/ var/log/mariadb/mariadb.log'.Jan 19 12:49:06 console mysqld_safe [9549]: 190119 12:49:06 mysqld_safe Starting mysqld daemon with databases from / vaJan 19 12:49:08 console systemd [1]: mariadb.service: control process exited Code=exited status=1Jan 19 12:49:08 console systemd [1]: Failed to start MariaDB database server.Jan 19 12:49:08 console systemd [1]: Unit mariadb.service entered failed state.Jan 19 12:49:08 console systemd [1]: mariadb.service failed. Solution:
(1) modify the configuration file:
Add parameters:
Innodb_force_recovery = 6 (in case of failure, the parameters are modified up at one time by one of the six levels of Muhammad)
Innodb_purge_threads = 0
(2) modify the file you just unzipped belongs to the master group as mysql user.
My database profile:
[mysqld] datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.socklower_case_table_name=1character_set_server=utf8skip_name_resolvebind-address = 0.0.0.0innodb_force_recovery = 6 innodb_purge_threads = Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0# Settings user and group are ignored when systemd is used.# If you need to run mysqld under a different user or group # customize your systemd unit file for mariadb according to the# instructions in http://fedoraproject.org/wiki/Systemd[mysqld_safe]log-error=/var/log/mariadb/mariadb.logpid-file=/var/run/mariadb/mariadb.pid## include all files from the config directory#!includedir / etc/my.cnf.d
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.