Take a look at /var/log/mysql/mysql.err (or similar file)Site shows DB error.
Where to start...Take a look at /var/log/mysql/mysql.err (or similar file)
Post the full lines related to trying to start MySQLWhere to start...
Generally relates to a corruption of your MySQL DB or a misconfiguration.[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
If your MySQL is not working, then it's unrelated to either Nginx or Apache. Both are just clients of MySQL.IS one.. Loads of issues. Nginx maybe quicker, but Apache is reliable. This is the first time in over a year, a server reboot has killed my site and it's new Years' Day.
[Note] Plugin 'FEEDBACK' is disabled.
160101 21:57:47 [ERROR] Unknown/unsupported storage engine: InnoDB
160101 21:57:47 [ERROR] Aborting
160101 21:57:47 [Note] /usr/sbin/mysqld: Shutdown complete
160101 21:57:47 mysqld_safe mysqld from pid file /var/lib/mysql/ns3607815.ip-151-80-22.eu.pid ended
160101 22:43:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160101 22:43:20 [Note] /usr/sbin/mysqld (mysqld 10.0.22-MariaDB) starting as process 19670 ...
160101 22:43:20 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160101 22:43:20 [Note] InnoDB: The InnoDB memory heap is disabled
160101 22:43:20 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
160101 22:43:20 [Note] InnoDB: Memory barrier is not used
160101 22:43:20 [Note] InnoDB: Compressed tables use zlib 1.2.3
160101 22:43:20 [Note] InnoDB: Using Linux native AIO
160101 22:43:20 [Note] InnoDB: Using CPU crc32 instructions
160101 22:43:20 [ERROR] mysqld: Can't create/write to file '/var/mysqltmp/ibVdkfgW' (Errcode: 13 "Permission denied")
2016-01-01 22:43:20 72f82adb9820 InnoDB: Error: unable to create temporary file; errno: 13
160101 22:43:20 [ERROR] Plugin 'InnoDB' init function returned error.
160101 22:43:20 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160101 22:43:20 [Note] Plugin 'FEEDBACK' is disabled.
160101 22:43:20 [ERROR] Unknown/unsupported storage engine: InnoDB
160101 22:43:20 [ERROR] Aborting
160101 22:43:20 [Note] /usr/sbin/mysqld: Shutdown complete
160101 22:43:20 mysqld_safe mysqld from pid file /var/lib/mysql/ns3607815.ip-151-80-22.eu.pid ended
160101 23:12:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160101 23:12:41 [Note] /usr/sbin/mysqld (mysqld 10.0.22-MariaDB) starting as process 2030 ...
160101 23:12:41 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160101 23:12:41 [Note] InnoDB: The InnoDB memory heap is disabled
160101 23:12:41 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
160101 23:12:41 [Note] InnoDB: Memory barrier is not used
160101 23:12:41 [Note] InnoDB: Compressed tables use zlib 1.2.3
160101 23:12:41 [Note] InnoDB: Using Linux native AIO
160101 23:12:41 [Note] InnoDB: Using CPU crc32 instructions
160101 23:12:41 [ERROR] mysqld: Can't create/write to file '/var/mysqltmp/ibaEjhOy' (Errcode: 13 "Permission denied")
2016-01-01 23:12:41 682aa712a820 InnoDB: Error: unable to create temporary file; errno: 13
160101 23:12:41 [ERROR] Plugin 'InnoDB' init function returned error.
160101 23:12:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160101 23:12:41 [Note] Plugin 'FEEDBACK' is disabled.
160101 23:12:41 [ERROR] Unknown/unsupported storage engine: InnoDB
160101 23:12:41 [ERROR] Aborting
160101 23:12:42 [Note] /usr/sbin/mysqld: Shutdown complete
160101 23:12:42 mysqld_safe mysqld from pid file /var/lib/mysql/****** pid ended
These both look to be your issue.Code:160101 21:57:47 [ERROR] Unknown/unsupported storage engine: InnoDB [...] 160101 22:43:20 [ERROR] mysqld: Can't create/write to file '/var/mysqltmp/ibVdkfgW' (Errcode: 13 "Permission denied")
Thank you.. I will look asap. Been a long day, new years day, tried a restart and lost my site and 1k members.These both look to be your issue.
/var/mysqltmp/ needs to exist and have access privileges for your mysql user
/etc/my.cnf or /etc/mysql/my.cnf or /usr/etc/my.cnf (in that order) need to have config settings for InnoDB
innodb=ON
innodb_large_prefix=1
innodb_purge_threads=1
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_open_files = 1000
innodb_data_file_path= ibdata1:10M:autoextend
innodb_buffer_pool_size = 8192MM
innodb_log_file_size = 128M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_thread_concurrency = 0
innodb_lock_wait_timeout=50
innodb_flush_method = O_DIRECT
innodb_support_xa=1
We use essential cookies to make this site work, and optional cookies to enhance your experience.