Hi
I tried it again and now with proper error log file. Here are the details of error log:
130917 09:09:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2013-09-17 09:09:59 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-09-17 09:09:59 2399 [Note] Plugin ‘FEDERATED’ is disabled.
^G/usr/sbin/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 - Permission denied)
2013-09-17 09:09:59 2399 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
2013-09-17 09:09:59 2399 [Note] InnoDB: The InnoDB memory heap is disabled
2013-09-17 09:09:59 2399 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-09-17 09:09:59 2399 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-09-17 09:09:59 2399 [Note] InnoDB: Using Linux native AIO
2013-09-17 09:09:59 2399 [Note] InnoDB: Not using CPU crc32 instructions
2013-09-17 09:09:59 2399 [Note] InnoDB: Initializing buffer pool, size = 256.0M
2013-09-17 09:09:59 2399 [Note] InnoDB: Completed initialization of buffer pool
2013-09-17 09:09:59 b77598e0 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
2013-09-17 09:09:59 b77598e0 InnoDB: File name /var/lib/mysql/ibdata1
2013-09-17 09:09:59 b77598e0 InnoDB: File operation call: ‘stat’ returned OS error 113.
2013-09-17 09:09:59 2399 [ERROR] InnoDB: os_file_get_status() failed on ‘/var/lib/mysql/ibdata1’. Can’t determine file permissions
2013-09-17 09:09:59 2399 [ERROR] InnoDB: The system tablespace must be writable!
2013-09-17 09:09:59 2399 [ERROR] Plugin ‘InnoDB’ init function returned error.
2013-09-17 09:09:59 2399 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2013-09-17 09:09:59 2399 [ERROR] Unknown/unsupported storage engine: InnoDB
2013-09-17 09:09:59 2399 [ERROR] Aborting
As, we can see, there are two issues:
- plugin.frm is not accessible however, i had given permission to mysql user for this folder using (chown -R mysql:mysql /var/lib/mysql), which is the base directory.
- mysqld doesn’t have access right to Innodb, Here also i had provided read and write permissions to user and groups using (chmod 661 /var/lib/mysql/ibdata1) and to log files also.
Note: I am using my linux box using root user. Also, i tried using restarting my system.
Please suggest.