Greetings and Salutations!
I am having some difficulties, and was hoping someone from the community might be able to offer some insights or assistance. I will offer thanks in advance as it might get lost below. Thank you.
My current environment is a production mysql community 5.7 server with a production slave and a non-production slave. I am attempting to bring up a new server w/o impacting production. I have installed Percona mysql on the new server, I can start the mysql service just fine. I then scp the /var/lib/mysql folder from the non-production slave to the new server. Now when I try to start the mysql service it fails.
I have tried scp’ing the data before installing Percona mysql with the service failing to start. It appears to attempt to start but gets stuck with the service activating. This is closer than previous attempts as those failed outright. Below are some output from the system:
[cs@someserver ~]$ sudo systemctl start mysql
Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.
[cs@someserver ~]$ sudo systemctl status mysql
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: activating (start) since Thu 2019-03-07 07:45:46 EST; 2s ago
Docs: man:mysqld(8)
[url]http://dev.mysql.com/doc/refman/en/using-systemd.html[/url]
Process: 64567 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 45646 (code=exited, status=0/SUCCESS); : 64593 (mysqld)
CGroup: /system.slice/mysqld.service
├─64593 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
└─64595 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Mar 07 07:45:47 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:47.185072Z 0 [Note…M
Mar 07 07:45:48 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:48.525382Z 0 [Note…l
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.002293Z 0 [Note…
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.016799Z 0 [Note…e
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.105372Z 0 [Note…
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.493878Z 0 [Note…7
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.517689Z 0 [Note…2
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.518226Z 0 [Note…!
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.518239Z 0 [Note…
Mar 07 07:45:49 someserver.cornell.edu mysqld[64593]: 2019-03-07T12:45:49.580948Z 0 [Note…s
Hint: Some lines were ellipsized, use -l to show in full.
[cs@someserver ~]$ sudo systemctl status mysql
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: activating (start) since Thu 2019-03-07 07:47:07 EST; 2s ago
Docs: man:mysqld(8)
[url]http://dev.mysql.com/doc/refman/en/using-systemd.html[/url]
Process: 891 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 45646 (code=exited, status=0/SUCCESS); : 916 (mysqld)
CGroup: /system.slice/mysqld.service
├─916 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
└─918 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.435402Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.435413Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.435421Z 0 [Note] InnoDB: Using Linux native AIO
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.436064Z 0 [Note] InnoDB: Number of pools: 1
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.436241Z 0 [Note] InnoDB: Using CPU crc32 instructions
Mar 07 07:47:07 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:07.438529Z 0 [Note] InnoDB: Initializing buffer pool, total size = 16G, instances = 16, chunk size = 128M
Mar 07 07:47:08 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:08.739132Z 0 [Note] InnoDB: Completed initialization of buffer pool
Mar 07 07:47:09 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:09.313487Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the …etpriority().
Mar 07 07:47:09 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:09.328607Z 0 [Note] InnoDB: Recovering partial pages from the parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite
Mar 07 07:47:09 someserver.cornell.edu mysqld[916]: 2019-03-07T12:47:09.442696Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
Hint: Some lines were ellipsized, use -l to show in full.
[cs@someserver ~]$ sudo journalctl -xe
[sudo] password for cs:
Mar 07 07:55:12 someserver.cornell.edu systemd[1]: mysqld.service: control process exited, code=exited status=1
Mar 07 07:55:12 someserver.cornell.edu systemd[1]: Failed to start MySQL Server.
– Subject: Unit mysqld.service has failed
– Defined-By: systemd
– Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
– Unit mysqld.service has failed.
– The result is failed.
Mar 07 07:55:12 someserver.cornell.edu systemd[1]: Unit mysqld.service entered failed state.
Mar 07 07:55:12 someserver.cornell.edu systemd[1]: mysqld.service failed.
Mar 07 07:55:13 someserver.cornell.edu systemd[1]: mysqld.service holdoff time over, scheduling restart.
Mar 07 07:55:13 someserver.cornell.edu systemd[1]: Stopped MySQL Server.
– Subject: Unit mysqld.service has finished shutting down
– Defined-By: systemd
– Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
– Unit mysqld.service has finished shutting down.
Mar 07 07:55:13 someserver.cornell.edu systemd[1]: Starting MySQL Server…
– Subject: Unit mysqld.service has begun start-up
– Defined-By: systemd
– Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
– Unit mysqld.service has begun starting up.
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.196088Z 0 [Warning] Changed limits: max_open_files: 5000 (requested 40411)
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.196531Z 0 [Warning] Changed limits: table_open_cache: 2295 (requested 20000)
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.422607Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.425434Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.25-28-log) starting as process 9904 …
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433810Z 0 [Note] InnoDB: PUNCH HOLE support available
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433864Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433889Z 0 [Note] InnoDB: Uses event mutexes
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433898Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433910Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.433918Z 0 [Note] InnoDB: Using Linux native AIO
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.434541Z 0 [Note] InnoDB: Number of pools: 1
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.434716Z 0 [Note] InnoDB: Using CPU crc32 instructions
Mar 07 07:55:13 someserver.cornell.edu mysqld[9902]: 2019-03-07T12:55:13.437046Z 0 [Note] InnoDB: Initializing buffer pool, total size = 16G, instances = 16, chunk size = 128M
Mar 07 07:55:13 someserver.cornell.edu sudo[9840]: cs : TTY=pts/0 ; PWD=/home/cs ; USER=root ; COMMAND=/bin/journalctl -xe
Mar 07 07:55:13 someserver.cornell.edu sudo[9840]: pam_unix(sudo:session): session opened for user root by cs(uid=0)