MySQL Daemon failed to start (CentOS 6)

MySQL Daemon failed to start (CentOS 6)

I upgrade mysql 5.1 to 5.6 receive an error message..

MySQL Daemon failed to start.

Solution:
Open a terminal and do the following:
# cd /var/lib/mysql/
# rm /var/lib/mysql/mysql.sock
Delete the file inside the above folder
# rm -rf *
# sudo service mysqld start
I hope the issue is resolved for you also.

Example:
[root@localhost ~]# cd /var/lib/mysql/

[root@localhost mysql]# rm /var/lib/mysql/mysql.sock

rm: remove regular empty file `/var/lib/mysql/mysql.sock'? y

[root@localhost mysql]# rm -rf *


[root@localhost mysql]# service mysqld start

Initializing MySQL database:  2018-11-13 18:08:07 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-11-13 18:08:07 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-11-13 18:08:07 0 [Note] /usr/sbin/mysqld (mysqld 5.6.42) starting as process 30959 ...
2018-11-13 18:08:07 30959 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-11-13 18:08:07 30959 [Note] InnoDB: The InnoDB memory heap is disabled
2018-11-13 18:08:07 30959 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-11-13 18:08:07 30959 [Note] InnoDB: Memory barrier is not used
2018-11-13 18:08:07 30959 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-11-13 18:08:07 30959 [Note] InnoDB: Using Linux native AIO
2018-11-13 18:08:07 30959 [Note] InnoDB: Using CPU crc32 instructions
2018-11-13 18:08:07 30959 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2018-11-13 18:08:07 30959 [Note] InnoDB: Completed initialization of buffer pool
2018-11-13 18:08:07 30959 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-11-13 18:08:07 30959 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-11-13 18:08:07 30959 [Note] InnoDB: Database physically writes the file full: wait...
2018-11-13 18:08:08 30959 [Note] InnoDB: Setting log file ./ib_logfile101 size to 40 MB
2018-11-13 18:08:08 30959 [Note] InnoDB: Setting log file ./ib_logfile1 size to 40 MB
2018-11-13 18:08:08 30959 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-11-13 18:08:08 30959 [Warning] InnoDB: New log files created, LSN=45781
2018-11-13 18:08:08 30959 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-11-13 18:08:08 30959 [Note] InnoDB: Doublewrite buffer created
2018-11-13 18:08:08 30959 [Note] InnoDB: 128 rollback segment(s) are active.
2018-11-13 18:08:08 30959 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-11-13 18:08:08 30959 [Note] InnoDB: Foreign key constraint system tables created
2018-11-13 18:08:08 30959 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-11-13 18:08:08 30959 [Note] InnoDB: Tablespace and datafile system tables created.
2018-11-13 18:08:08 30959 [Note] InnoDB: Waiting for purge to start
2018-11-13 18:08:08 30959 [Note] InnoDB: 5.6.42 started; log sequence number 0
2018-11-13 18:08:11 30959 [Note] Binlog end
2018-11-13 18:08:11 30959 [Note] InnoDB: FTS optimize thread exiting.
2018-11-13 18:08:11 30959 [Note] InnoDB: Starting shutdown...
2018-11-13 18:08:13 30959 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2018-11-13 18:08:13 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-11-13 18:08:13 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-11-13 18:08:13 0 [Note] /usr/sbin/mysqld (mysqld 5.6.42) starting as process 30987 ...
2018-11-13 18:08:13 30987 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-11-13 18:08:13 30987 [Note] InnoDB: The InnoDB memory heap is disabled
2018-11-13 18:08:13 30987 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-11-13 18:08:13 30987 [Note] InnoDB: Memory barrier is not used
2018-11-13 18:08:13 30987 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-11-13 18:08:13 30987 [Note] InnoDB: Using Linux native AIO
2018-11-13 18:08:13 30987 [Note] InnoDB: Using CPU crc32 instructions
2018-11-13 18:08:13 30987 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2018-11-13 18:08:13 30987 [Note] InnoDB: Completed initialization of buffer pool
2018-11-13 18:08:13 30987 [Note] InnoDB: Highest supported file format is Barracuda.
2018-11-13 18:08:13 30987 [Note] InnoDB: 128 rollback segment(s) are active.
2018-11-13 18:08:13 30987 [Note] InnoDB: Waiting for purge to start
2018-11-13 18:08:13 30987 [Note] InnoDB: 5.6.42 started; log sequence number 1625977
2018-11-13 18:08:13 30987 [Note] Binlog end
2018-11-13 18:08:13 30987 [Note] InnoDB: FTS optimize thread exiting.
2018-11-13 18:08:13 30987 [Note] InnoDB: Starting shutdown...
2018-11-13 18:08:15 30987 [Note] InnoDB: Shutdown completed; log sequence number 1625987

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

  /usr/bin/mysqladmin -u root password 'new-password'

  /usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:


  /usr/bin/mysql_secure_installation


which will also give you the option of removing the test

databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.


Please report any problems at http://bugs.mysql.com/


The latest information about MySQL is available on the web at


  http://www.mysql.com


Support MySQL by buying support/licenses at http://shop.mysql.com


Note: new default config file not created.

Please make sure your config file is current

WARNING: Default config file /etc/my.cnf exists on the system

This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server

                                                        [  OK  ]

Starting mysqld:                         [  OK  ]

[root@localhost mysql]# service mysqld status


mysqld (pid  31498) is running...

Post a Comment

0 Comments