MySQL 5.6 crashes often after upgrade - mysql

I noticed in WHM that MySQL 5.5 has an EOL December of 15' and I upgraded to 5.6 and now MySQL crashes at least twice a day, but it restarts after failing.
Here is a sampling of the error log.
Any idea what is going on?
Thank you.
8/23/15
Here is another sampling of the error log.
InnoDB: Doing recovery: scanned up to log sequence number 579981897
2015-08-21 20:58:00 9080 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-21 20:58:00 9080 [Note] InnoDB: Waiting for purge to start
2015-08-21 20:58:00 9080 [Note] InnoDB: 5.6.23 started; log sequence number 579981897
2015-08-21 20:58:00 9080 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-21 20:58:00 9080 [Note] IPv6 is not available.
2015-08-21 20:58:00 9080 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-21 20:58:00 9080 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-21 20:58:00 9080 [Note] Event Scheduler: Loaded 0 events
2015-08-21 20:58:00 9080 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
150821 23:25:59 mysqld_safe Number of processes running now: 0
150821 23:25:59 mysqld_safe mysqld restarted
2015-08-21 23:25:59 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-21 23:25:59 13544 [Note] Plugin 'FEDERATED' is disabled.
2015-08-21 23:25:59 13544 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-21 23:25:59 13544 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-21 23:25:59 13544 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-21 23:25:59 13544 [Note] InnoDB: Memory barrier is not used
2015-08-21 23:25:59 13544 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-21 23:25:59 13544 [Note] InnoDB: Using Linux native AIO
2015-08-21 23:25:59 13544 [Note] InnoDB: Using CPU crc32 instructions
2015-08-21 23:25:59 13544 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-21 23:25:59 13544 [Note] InnoDB: Completed initialization of buffer pool
2015-08-21 23:25:59 13544 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-21 23:25:59 13544 [Note] InnoDB: Log scan progressed past the checkpoint lsn 581241150
2015-08-21 23:25:59 13544 [Note] InnoDB: Database was not shutdown normally!
2015-08-21 23:25:59 13544 [Note] InnoDB: Starting crash recovery.
2015-08-21 23:25:59 13544 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-21 23:25:59 13544 [Note] InnoDB: Restoring possible half-written data pages
2015-08-21 23:25:59 13544 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 581282693
2015-08-21 23:25:59 13544 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
2015-08-21 23:26:00 13544 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-21 23:26:00 13544 [Note] InnoDB: Waiting for purge to start
2015-08-21 23:26:00 13544 [Note] InnoDB: 5.6.23 started; log sequence number 581282693
2015-08-21 23:26:00 13544 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-21 23:26:00 13544 [Note] IPv6 is not available.
2015-08-21 23:26:00 13544 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-21 23:26:00 13544 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-21 23:26:00 13544 [Note] Event Scheduler: Loaded 0 events
2015-08-21 23:26:00 13544 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2015-08-22 02:36:21 13544 [Warning] IP address '223.100.49.242' could not be resolved: Temporary failure in name resolution
2015-08-22 02:36:56 13544 [Warning] IP address '223.100.49.242' could not be resolved: Temporary failure in name resolution
2015-08-22 02:37:23 13544 [Warning] IP address '223.100.49.242' could not be resolved: Temporary failure in name resolution
2015-08-22 11:27:54 13544 [Warning] IP address '122.224.6.150' could not be resolved: Name or service not known
150822 20:54:11 mysqld_safe Number of processes running now: 0
150822 20:54:11 mysqld_safe mysqld restarted
2015-08-22 20:54:11 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-22 20:54:11 15947 [Note] Plugin 'FEDERATED' is disabled.
2015-08-22 20:54:11 15947 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-22 20:54:11 15947 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-22 20:54:11 15947 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-22 20:54:11 15947 [Note] InnoDB: Memory barrier is not used
2015-08-22 20:54:11 15947 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-22 20:54:11 15947 [Note] InnoDB: Using Linux native AIO
2015-08-22 20:54:11 15947 [Note] InnoDB: Using CPU crc32 instructions
2015-08-22 20:54:11 15947 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-22 20:54:11 15947 [Note] InnoDB: Completed initialization of buffer pool
2015-08-22 20:54:11 15947 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-22 20:54:11 15947 [Note] InnoDB: The log sequence numbers 506046855 and 506046855 in ibdata files do not match the log sequence number 589358444 in the ib_logfiles!
2015-08-22 20:54:11 15947 [Note] InnoDB: Database was not shutdown normally!
2015-08-22 20:54:11 15947 [Note] InnoDB: Starting crash recovery.
2015-08-22 20:54:11 15947 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-22 20:54:12 15947 [Note] InnoDB: Restoring possible half-written data pages
2015-08-22 20:54:12 15947 [Note] InnoDB: from the doublewrite buffer...
2015-08-22 20:54:13 15947 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-22 20:54:13 15947 [Note] InnoDB: Waiting for purge to start
2015-08-22 20:54:13 15947 [Note] InnoDB: 5.6.23 started; log sequence number 589358444
2015-08-22 20:54:13 15947 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-22 20:54:13 15947 [Note] IPv6 is not available.
2015-08-22 20:54:13 15947 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-22 20:54:13 15947 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-22 20:54:13 15947 [Note] Event Scheduler: Loaded 0 events
2015-08-22 20:54:13 15947 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
150822 20:54:13 mysqld_safe Number of processes running now: 0
150822 20:54:13 mysqld_safe mysqld restarted
2015-08-22 20:54:13 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-22 20:54:13 15983 [Note] Plugin 'FEDERATED' is disabled.
2015-08-22 20:54:13 15983 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-22 20:54:13 15983 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-22 20:54:13 15983 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-22 20:54:13 15983 [Note] InnoDB: Memory barrier is not used
2015-08-22 20:54:13 15983 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-22 20:54:13 15983 [Note] InnoDB: Using Linux native AIO
2015-08-22 20:54:13 15983 [Note] InnoDB: Using CPU crc32 instructions
2015-08-22 20:54:13 15983 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-22 20:54:13 15983 [Note] InnoDB: Completed initialization of buffer pool
2015-08-22 20:54:13 15983 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-22 20:54:13 15983 [Note] InnoDB: The log sequence numbers 506046855 and 506046855 in ibdata files do not match the log sequence number 589358444 in the ib_logfiles!
2015-08-22 20:54:13 15983 [Note] InnoDB: Database was not shutdown normally!
2015-08-22 20:54:13 15983 [Note] InnoDB: Starting crash recovery.
2015-08-22 20:54:13 15983 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-22 20:54:13 15983 [Note] InnoDB: Restoring possible half-written data pages
2015-08-22 20:54:13 15983 [Note] InnoDB: from the doublewrite buffer...
2015-08-22 20:54:14 15983 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-22 20:54:14 15983 [Note] InnoDB: Waiting for purge to start
2015-08-22 20:54:14 15983 [Note] InnoDB: 5.6.23 started; log sequence number 589358444
2015-08-22 20:54:14 15983 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-22 20:54:14 15983 [Note] IPv6 is not available.
2015-08-22 20:54:14 15983 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-22 20:54:14 15983 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-22 20:54:14 15983 [Note] Event Scheduler: Loaded 0 events
2015-08-22 20:54:14 15983 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2015-08-22 21:28:15 15983 [Warning] IP address '221.229.162.143' could not be resolved: Name or service not known
150822 23:04:56 mysqld_safe Number of processes running now: 0
150822 23:04:56 mysqld_safe mysqld restarted
2015-08-22 23:04:56 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-22 23:04:56 19131 [Note] Plugin 'FEDERATED' is disabled.
2015-08-22 23:04:56 19131 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-22 23:04:56 19131 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-22 23:04:56 19131 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-22 23:04:56 19131 [Note] InnoDB: Memory barrier is not used
2015-08-22 23:04:56 19131 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-22 23:04:56 19131 [Note] InnoDB: Using Linux native AIO
2015-08-22 23:04:56 19131 [Note] InnoDB: Using CPU crc32 instructions
2015-08-22 23:04:56 19131 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-22 23:04:57 19131 [Note] InnoDB: Completed initialization of buffer pool
2015-08-22 23:04:57 19131 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-22 23:04:57 19131 [Note] InnoDB: Log scan progressed past the checkpoint lsn 590358682
2015-08-22 23:04:57 19131 [Note] InnoDB: Database was not shutdown normally!
2015-08-22 23:04:57 19131 [Note] InnoDB: Starting crash recovery.
2015-08-22 23:04:57 19131 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-22 23:04:57 19131 [Note] InnoDB: Restoring possible half-written data pages
2015-08-22 23:04:57 19131 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 590373690
2015-08-22 23:04:57 19131 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
2015-08-22 23:04:57 19131 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-22 23:04:57 19131 [Note] InnoDB: Waiting for purge to start
2015-08-22 23:04:57 19131 [Note] InnoDB: 5.6.23 started; log sequence number 590373690
2015-08-22 23:04:57 19131 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-22 23:04:57 19131 [Note] IPv6 is not available.
2015-08-22 23:04:57 19131 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-22 23:04:57 19131 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-22 23:04:57 19131 [Note] Event Scheduler: Loaded 0 events
2015-08-22 23:04:57 19131 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2015-08-23 02:42:47 19131 [Warning] IP address '221.229.162.143' could not be resolved: Name or service not known
2015-08-23 10:27:43 19131 [Warning] Hostname 'unassigned.psychz.net' does not resolve to '45.34.1.137'.
2015-08-23 10:27:43 19131 [Note] Hostname 'unassigned.psychz.net' has the following IP addresses:
2015-08-23 10:27:43 19131 [Note] - 199.15.112.8
2015-08-23 20:42:45 19131 [Warning] IP address '60.191.129.138' could not be resolved: Name or service not known
150823 20:54:08 mysqld_safe Number of processes running now: 0
150823 20:54:08 mysqld_safe mysqld restarted
2015-08-23 20:54:08 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-23 20:54:08 9837 [Note] Plugin 'FEDERATED' is disabled.
2015-08-23 20:54:08 9837 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-23 20:54:08 9837 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-23 20:54:08 9837 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-23 20:54:08 9837 [Note] InnoDB: Memory barrier is not used
2015-08-23 20:54:08 9837 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-23 20:54:08 9837 [Note] InnoDB: Using Linux native AIO
2015-08-23 20:54:08 9837 [Note] InnoDB: Using CPU crc32 instructions
2015-08-23 20:54:08 9837 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-23 20:54:08 9837 [Note] InnoDB: Completed initialization of buffer pool
2015-08-23 20:54:08 9837 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-23 20:54:08 9837 [Note] InnoDB: The log sequence numbers 506046855 and 506046855 in ibdata files do not match the log sequence number 599201345 in the ib_logfiles!
2015-08-23 20:54:08 9837 [Note] InnoDB: Database was not shutdown normally!
2015-08-23 20:54:08 9837 [Note] InnoDB: Starting crash recovery.
2015-08-23 20:54:08 9837 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-23 20:54:08 9837 [Note] InnoDB: Restoring possible half-written data pages
2015-08-23 20:54:08 9837 [Note] InnoDB: from the doublewrite buffer...
150823 20:54:08 mysqld_safe mysqld from pid file /var/lib/mysql/{hostname}.pid ended
150823 20:57:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2015-08-23 20:57:34 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-23 20:57:34 10285 [Note] Plugin 'FEDERATED' is disabled.
2015-08-23 20:57:34 10285 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-23 20:57:34 10285 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-23 20:57:34 10285 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-23 20:57:34 10285 [Note] InnoDB: Memory barrier is not used
2015-08-23 20:57:34 10285 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-23 20:57:34 10285 [Note] InnoDB: Using Linux native AIO
2015-08-23 20:57:34 10285 [Note] InnoDB: Using CPU crc32 instructions
2015-08-23 20:57:34 10285 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-23 20:57:34 10285 [Note] InnoDB: Completed initialization of buffer pool
2015-08-23 20:57:34 10285 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-23 20:57:34 10285 [Note] InnoDB: The log sequence numbers 506046855 and 506046855 in ibdata files do not match the log sequence number 599201345 in the ib_logfiles!
2015-08-23 20:57:34 10285 [Note] InnoDB: Database was not shutdown normally!
2015-08-23 20:57:34 10285 [Note] InnoDB: Starting crash recovery.
2015-08-23 20:57:34 10285 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-08-23 20:57:34 10285 [Note] InnoDB: Restoring possible half-written data pages
2015-08-23 20:57:34 10285 [Note] InnoDB: from the doublewrite buffer...
2015-08-23 20:57:34 10285 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-23 20:57:34 10285 [Note] InnoDB: Waiting for purge to start
2015-08-23 20:57:34 10285 [Note] InnoDB: 5.6.23 started; log sequence number 599201345
2015-08-23 20:57:34 10285 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-23 20:57:34 10285 [Note] IPv6 is not available.
2015-08-23 20:57:34 10285 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-08-23 20:57:34 10285 [Note] Server socket created on IP: '0.0.0.0'.
2015-08-23 20:57:34 10285 [Note] Event Scheduler: Loaded 0 events
2015-08-23 20:57:34 10285 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)

MySQL 5.6 is not supposed to use 5.5 unmodified data files - the format changes in every version and, sometimes, it changes even for patch versions.
After an upgrade you should run mysql_upgrade. Then, you can use your database normally.

First item of action would be to disconnect from your website immediately to prevent further corruption. One way to do this is to just alter the credentials of your application.
You'll need to perform a repair of the data to fix the inconsistencies in the binary logs.
Please refer to this article from MySql, which provides steps to repair. The tool mysqlcheck should be available in the command line.

Related

MySQL broken, databases deleted

I use MySQL 5.6. One time my server was suddenly stopped. MySQL is not starting now. In the folder where databases folders and files was stored - all folders was disappeared and only folder "WARNINGS" is there. When I try to start mysql I am getting the next log:
2018-09-21 03:02:31 0 [Note] c:\ospanel\modules\database\MySQL-5.6-x64\bin\mysqld.exe (mysqld 5.6.38) starting as process 4600 ...
2018-09-21 03:02:31 4600 [Note] Plugin 'FEDERATED' is disabled.
c:\ospanel\modules\database\MySQL-5.6-x64\bin\mysqld.exe: Table 'mysql.plugin' doesn't exist
2018-09-21 03:02:31 4600 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2018-09-21 03:02:31 4600 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-09-21 03:02:31 4600 [Note] InnoDB: The InnoDB memory heap is disabled
2018-09-21 03:02:31 4600 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-09-21 03:02:31 4600 [Note] InnoDB: Memory barrier is not used
2018-09-21 03:02:31 4600 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-09-21 03:02:31 4600 [Note] InnoDB: Not using CPU crc32 instructions
2018-09-21 03:02:31 4600 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-09-21 03:02:31 4600 [Note] InnoDB: Completed initialization of buffer pool
2018-09-21 03:02:31 4600 [Note] InnoDB: Highest supported file format is Barracuda.
2018-09-21 03:02:31 4600 [Note] InnoDB: The log sequence numbers 633063664 and 633063664 in ibdata files do not match the log sequence number 633063674 in the ib_logfiles!
2018-09-21 03:02:31 4600 [Note] InnoDB: Database was not shutdown normally!
2018-09-21 03:02:31 4600 [Note] InnoDB: Starting crash recovery.
2018-09-21 03:02:31 4600 [Note] InnoDB: Reading tablespace information from the .ibd files...
2018-09-21 03:02:31 4600 [Note] InnoDB: Restoring possible half-written data pages
2018-09-21 03:02:31 4600 [Note] InnoDB: from the doublewrite buffer...
2018-09-21 03:02:32 4600 [Note] InnoDB: 128 rollback segment(s) are active.
2018-09-21 03:02:32 4600 [Note] InnoDB: Waiting for purge to start
2018-09-21 03:02:32 4600 [Note] InnoDB: 5.6.38 started; log sequence number 633063674
2018-09-21 03:02:32 4600 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
2018-09-21 03:02:32 4600 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2018-09-21 03:02:32 4600 [Note] Server socket created on IP: '0.0.0.0'.
2018-09-21 03:02:32 4600 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
I have been trying mysql_upgrade, mysqld --initialize-insecure it doesn't help me.
My script feature is it running 16 threads 24 hours per day without stopping. So 16 connections are connected to DB everytime.
On mysql configuration I have set:
interactive_timeout=31536000
wait_timeout=2147483
And nothing more unusual.
I have this situation second time, when the DB was broken.
I want to know, why do I get this problem and how to solve it.

MySQL is malfunctioning

My xampp has been malfunctioning, whenever I start mysql it runs until it suddenly kills itself. it says that a port is blocked. In advance,Thankyou for your help!
The error_log.txt is as follows:
2017-02-10 10:33:58 3748 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-10 10:33:58 3748 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-10 10:33:58 3748 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-10 10:33:58 3748 [Note] InnoDB: Memory barrier is not used
2017-02-10 10:33:58 3748 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-10 10:33:58 3748 [Note] InnoDB: Using generic crc32 instructions
2017-02-10 10:33:58 3748 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-10 10:33:58 3748 [Note] InnoDB: Completed initialization of buffer pool
2017-02-10 10:33:58 3748 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-10 10:33:58 3748 [Note] InnoDB: The log sequence numbers 5936616 and 5936616 in ibdata files do not match the log sequence number 5936626 in the ib_logfiles!
2017-02-10 10:33:58 3748 [Note] InnoDB: Database was not shutdown normally!
2017-02-10 10:33:58 3748 [Note] InnoDB: Starting crash recovery.
2017-02-10 10:33:58 3748 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-10 10:33:58 3748 [Note] InnoDB: Restoring possible half-written data pages
2017-02-10 10:33:58 3748 [Note] InnoDB: from the doublewrite buffer...
2017-02-10 10:33:59 3748 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-10 10:33:59 3748 [Note] InnoDB: Waiting for purge to start
2017-02-10 10:33:59 3748 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.30-76.3 started; log sequence number 5936626
2017-02-10 10:33:59 7116 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-10 10:34:00 3748 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-10 10:34:00 3748 [Note] Server socket created on IP: '::'.
2017-02-10 10:34:00 3748 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017-02-10 10:34:00 3748 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2017-02-10 10:34:00 3748 [ERROR] Aborting

Unable to connect when I start MySql from XAMPP

I recently started a project and I used a large table to import on phpmyadmin. After I changed the sizes from php.ini, I tried to connect to phpmyadmin,but Unable to connect error appeared. Here is the recent log:
2016-07-05 22:22:39 5052 [Note] Event Scheduler: Purging the queue. 0 events
2016-07-05 22:22:40 5676 [Note] InnoDB: FTS optimize thread exiting.
2016-07-05 22:22:40 5052 [Note] InnoDB: Starting shutdown...
2016-07-05 22:22:42 5052 [Note] InnoDB: Shutdown completed; log sequence number 4456833
2016-07-05 22:22:42 5052 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete
2016-07-05 22:25:13 1464 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-07-05 22:25:13 5220 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-07-05 22:25:13 5220 [Note] InnoDB: The InnoDB memory heap is disabled
2016-07-05 22:25:13 5220 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-07-05 22:25:13 5220 [Note] InnoDB: Memory barrier is not used
2016-07-05 22:25:13 5220 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-07-05 22:25:13 5220 [Note] InnoDB: Not using CPU crc32 instructions
2016-07-05 22:25:13 5220 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-07-05 22:25:13 5220 [Note] InnoDB: Completed initialization of buffer pool
2016-07-05 22:25:13 5220 [Note] InnoDB: Highest supported file format is Barracuda.
2016-07-05 22:25:14 5220 [Note] InnoDB: 128 rollback segment(s) are active.
2016-07-05 22:25:14 5220 [Note] InnoDB: Waiting for purge to start
2016-07-05 22:25:14 5220 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 4456833
2016-07-05 22:25:14 2732 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-07-05 22:25:14 5220 [Note] Plugin 'FEEDBACK' is disabled.
2016-07-05 22:25:14 5220 [Note] Server socket created on IP: '::'.
2016-07-05 22:25:14 5220 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.9-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2016-07-05 22:27:32 2344 [Note] c:\xampp\mysql\bin\mysqld.exe: Normal shutdown
2016-07-05 22:27:32 2344 [Note] Event Scheduler: Purging the queue. 0 events
2016-07-05 22:27:32 1160 [Note] InnoDB: FTS optimize thread exiting.
2016-07-05 22:27:32 2344 [Note] InnoDB: Starting shutdown...
2016-07-05 22:27:33 2344 [Note] InnoDB: Shutdown completed; log sequence number 4456843
2016-07-05 22:27:33 2344 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete
2016-07-05 22:27:42 12fc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-07-05 22:27:42 4860 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-07-05 22:27:42 4860 [Note] InnoDB: The InnoDB memory heap is disabled
2016-07-05 22:27:42 4860 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-07-05 22:27:42 4860 [Note] InnoDB: Memory barrier is not used
2016-07-05 22:27:42 4860 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-07-05 22:27:42 4860 [Note] InnoDB: Not using CPU crc32 instructions
2016-07-05 22:27:42 4860 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-07-05 22:27:42 4860 [Note] InnoDB: Completed initialization of buffer pool
2016-07-05 22:27:42 4860 [Note] InnoDB: Highest supported file format is Barracuda.
2016-07-05 22:27:43 4860 [Note] InnoDB: 128 rollback segment(s) are active.
2016-07-05 22:27:43 4860 [Note] InnoDB: Waiting for purge to start
2016-07-05 22:27:43 4860 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 4456843
2016-07-05 22:27:43 3052 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-07-05 22:27:43 4860 [Note] Plugin 'FEEDBACK' is disabled.
2016-07-05 22:27:43 4860 [Note] Server socket created on IP: '::'.
2016-07-05 22:27:44 4860 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
If someone could explain me what should I do,it would be great.
Actually, the problem was that I had the Antivirus running. Apparently it conflicted with XAMPP.

Can't start MySQL keeps saying "Server quit without updating PID file"

Can't start MYSQL server it keeps saying "server quit without updating PID file". I tried re-creating the PID file, I added the path to PID file in my.cmf file, but nothing seems to help. I tried renaming the PID file and then starting up and it seemed to start up but then it died right away.
Here's the mysql log:
2015-07-24 15:27:27 1992 [Note] Plugin 'FEDERATED' is disabled.
2015-07-24 15:27:27 1992 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-07-24 15:27:27 1992 [Note] InnoDB: The InnoDB memory heap is disabled
2015-07-24 15:27:27 1992 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-07-24 15:27:27 1992 [Note] InnoDB: Memory barrier is not used
2015-07-24 15:27:27 1992 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-07-24 15:27:27 1992 [Note] InnoDB: Using Linux native AIO
2015-07-24 15:27:27 1992 [Note] InnoDB: Using CPU crc32 instructions
2015-07-24 15:27:27 1992 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-07-24 15:27:27 1992 [Note] InnoDB: Completed initialization of buffer pool
2015-07-24 15:27:27 1992 [Note] InnoDB: Highest supported file format is Barracuda.
2015-07-24 15:27:27 1992 [Note] InnoDB: The log sequence numbers 92864584624 and 92864584624 in ibdata files do not match the l$
2015-07-24 15:27:27 1992 [Note] InnoDB: Database was not shutdown normally!
2015-07-24 15:27:27 1992 [Note] InnoDB: Starting crash recovery.
2015-07-24 15:27:27 1992 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-07-24 15:27:27 1992 [Note] InnoDB: Restoring possible half-written data pages
2015-07-24 15:27:27 1992 [Note] InnoDB: from the doublewrite buffer...
2015-07-24 15:27:28 1992 [Note] InnoDB: 128 rollback segment(s) are active.
2015-07-24 15:27:28 1992 [Note] InnoDB: Waiting for purge to start
2015-07-24 15:27:28 1992 [Note] InnoDB: 5.6.23 started; log sequence number 92864702613
2015-07-24 15:27:28 1992 [Note] Server hostname (bind-address): '*'; port: 3306
2015-07-24 15:27:28 1992 [Note] IPv6 is not available.
2015-07-24 15:27:28 1992 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-07-24 15:27:28 1992 [Note] Server socket created on IP: '0.0.0.0'.
2015-07-24 15:27:28 1992 [Note] Event Scheduler: Loaded 0 events
2015-07-24 15:27:28 1992 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.23-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
150724 15:27:28 mysqld_safe Number of processes running now: 0
150724 15:27:28 mysqld_safe mysqld restarted
2015-07-24 15:27:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timesta$
2015-07-24 15:27:28 2035 [Note] Plugin 'FEDERATED' is disabled.
2015-07-24 15:27:28 2035 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-07-24 15:27:28 2035 [Note] InnoDB: The InnoDB memory heap is disabled
2015-07-24 15:27:28 2035 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-07-24 15:27:28 2035 [Note] InnoDB: Memory barrier is not used
2015-07-24 15:27:28 2035 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-07-24 15:27:28 2035 [Note] InnoDB: Using Linux native AIO
2015-07-24 15:27:28 2035 [Note] InnoDB: Using CPU crc32 instructions
2015-07-24 15:27:28 2035 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-07-24 15:27:28 2035 [Note] InnoDB: Completed initialization of buffer pool
150724 15:27:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Here's what's in my my.cmf file.
[mysqld]
max_connections=500
slow_query_log=1
default-storage-engine=MyISAM
innodb_file_per_table=1
max_allowed_packet=268435456
open_files_limit=10000
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Any ideas what might be a problem?
Try following
1) Ensure MySQL has write permission on PID file
1) Go to MySQL data directory remove ibdata files (dont forget to take backup)

Database connection error in wordpress

My site is on Wordpress and is hosted on a VPS server. The traffic is not much but the database connect error is displayed many times, and then I had to restart MySQL.
I've checked the MySQL error file log. Here is a certain portion of the log.
140310 01:13:26 mysqld_safe mysqld from pid file /var/lib/mysql/server.gosoftnep.com.pid ended
140310 01:13:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140310 1:13:26 [Note] Plugin 'FEDERATED' is disabled.
140310 1:13:26 InnoDB: The InnoDB memory heap is disabled
140310 1:13:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140310 1:13:26 InnoDB: Compressed tables use zlib 1.2.3
140310 1:13:26 InnoDB: Using Linux native AIO
140310 1:13:26 InnoDB: Initializing buffer pool, size = 128.0M
140310 1:13:26 InnoDB: Completed initialization of buffer pool
140310 1:13:26 InnoDB: highest supported file format is Barracuda.
140310 1:13:26 InnoDB: Waiting for the background threads to start
140310 1:13:27 InnoDB: 5.5.36 started; log sequence number 12082242998
140310 1:13:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
140310 1:13:27 [Note] - '0.0.0.0' resolves to '0.0.0.0';
140310 1:13:27 [Note] Server socket created on IP: '0.0.0.0'.
140310 1:13:27 [Note] Event Scheduler: Loaded 0 events
140310 1:13:27 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.36-cll' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
140310 01:13:32 mysqld_safe A mysqld process already exists
140310 5:52:48 [Warning] IP address '58.118.152.8' could not be resolved: Temporary failure in name resolution
140310 12:27:37 mysqld_safe Number of processes running now: 0
140310 12:27:38 mysqld_safe mysqld restarted
140310 12:27:44 [Note] Plugin 'FEDERATED' is disabled.
140310 12:27:45 InnoDB: The InnoDB memory heap is disabled
140310 12:27:45 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140310 12:27:45 InnoDB: Compressed tables use zlib 1.2.3
140310 12:27:45 InnoDB: Using Linux native AIO
140310 12:27:47 InnoDB: Initializing buffer pool, size = 128.0M
140310 12:27:49 InnoDB: Completed initialization of buffer pool
140310 12:27:50 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 12354557593
140310 12:27:52 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 12354588661
140310 12:28:05 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
140310 12:28:07 InnoDB: Waiting for the background threads to start
140310 12:28:08 InnoDB: 5.5.36 started; log sequence number 12354588661
140310 12:28:08 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
140310 12:28:08 [Note] - '0.0.0.0' resolves to '0.0.0.0';
140310 12:28:08 [Note] Server socket created on IP: '0.0.0.0'.
140310 12:28:12 [Note] Event Scheduler: Loaded 0 events
140310 12:28:12 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.36-cll' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
140311 11:51:59 [Warning] IP address '61.160.249.239' could not be resolved: Name or service not known
140312 9:23:21 [Warning] IP address '183.60.107.205' could not be resolved: Name or service not known
140313 0:33:47 [Warning] IP address '221.228.231.59' could not be resolved: Name or service not known
140313 7:33:05 [Warning] IP address '61.147.103.160' could not be resolved: Name or service not known
140313 20:42:42 [Warning] IP address '124.89.32.242' could not be resolved: Name or service not known
140313 23:33:38 mysqld_safe Number of processes running now: 0
140313 23:33:38 mysqld_safe mysqld restarted
140313 23:34:09 [Note] Plugin 'FEDERATED' is disabled.
140313 23:34:14 InnoDB: The InnoDB memory heap is disabled
140313 23:34:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140313 23:34:14 InnoDB: Compressed tables use zlib 1.2.3
140313 23:34:14 InnoDB: Using Linux native AIO
140313 23:34:17 InnoDB: Initializing buffer pool, size = 128.0M
140313 23:34:20 InnoDB: Completed initialization of buffer pool
140313 23:34:30 mysqld_safe mysqld from pid file /var/lib/mysql/server.gosoftnep.com.pid ended
140314 02:55:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140314 2:55:10 [Note] Plugin 'FEDERATED' is disabled.
140314 2:55:10 InnoDB: The InnoDB memory heap is disabled
140314 2:55:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140314 2:55:10 InnoDB: Compressed tables use zlib 1.2.3
140314 2:55:10 InnoDB: Using Linux native AIO
140314 2:55:10 InnoDB: Initializing buffer pool, size = 128.0M
140314 2:55:10 InnoDB: Completed initialization of buffer pool
140314 2:55:10 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 14587500130
140314 2:55:10 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 14587535674
140314 2:55:11 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
140314 2:55:11 InnoDB: Waiting for the background threads to start
140314 2:55:12 InnoDB: 5.5.36 started; log sequence number 14587535674
140314 2:55:12 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
140314 2:55:12 [Note] - '0.0.0.0' resolves to '0.0.0.0';
140314 2:55:12 [Note] Server socket created on IP: '0.0.0.0'.
140314 2:55:12 [Note] Event Scheduler: Loaded 0 events
140314 2:55:12 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.36-cll' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
I do not understand anything about this. Could anyone explain the issue to me or suggest a fix?