CentOS尝试从MySQL 5.1更新到5.5时无法启动MySQL

时间:2015-04-17 14:53:30

标签: mysql centos

论坛发帖后,我已经通过论坛发帖了。我无法弄清楚这一点。我正在使用拥有MySQL 5.1的CentOS 6.5,但我需要5.5!我一直在看很多帖子,但是我一直在使用的主要帖子是this one。我已经逐步了解了我所做的事情及其结果。一世 可以告诉我有5.5,但我不能让它开始。

[informatics @ aib-bitest~] $ sudo / sbin / service mysqld start MySQL守护进程无法启动。启动mysqld:[FAILED]

   ## Tried to restart    [root@aib-bitest log]# service mysqld restart    Stopping mysqld:                                           [  OK  ]    MySQL Daemon failed to start.    Starting mysqld:                                           [FAILED]
   ## Tried to update    [root@aib-bitest log]# mysql_upgrade    Looking for 'mysql' as: mysql    Looking for 'mysqlcheck' as: mysqlcheck    FATAL ERROR: Upgrade failed
   ## Realized that mysqld is not running    [root@aib-bitest log]# service mysqld status    mysqld is stopped
   ## And then Realized that I couldn't get it running.    [root@aib-bitest log]# service mysqld start    MySQL Daemon failed to start.    Starting mysqld:                                           [FAILED]
   ## Just tested this just because    [root@aib-bitest log]# mysql    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
   ## Changed access rights    [root@aib-bitest log]# chown -R mysql:mysql /var/lib/mysql    [root@aib-bitest log]# service mysqld start    MySQL Daemon failed to start.    Starting mysqld:                                           [FAILED]
   ## Restarted Apache    [root@aib-bitest log]# sudo service httpd restart    Stopping httpd:                                            [  OK  ]    Starting httpd:                                            [  OK  ]    [root@aib-bitest log]# service mysqld start    MySQL Daemon failed to start.    Starting mysqld:                                           [FAILED]
   [root@aib-bitest log]# mysql_install_db    Installing MySQL system tables...    150417 10:06:12 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.    150417 10:06:12 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'    150417 10:06:12 [ERROR] Aborting
   150417 10:06:12 [Note]
   Installation of system tables failed!  Examine the logs in    /var/lib/mysql for more information.
   You can try to start the mysqld daemon with:

   shell>     /usr/libexec/mysqld --skip-grant &
   and use the command line tool /usr/bin/mysql    to connect to the mysql database and look at the grant tables:

   shell>     /usr/bin/mysql -u root mysql
   mysql>     show tables
   Try 'mysqld --help' if you have problems with paths.  Using --log    gives you a log in /var/lib/mysql that may be helpful.
   Please consult the MySQL manual section    'Problems running mysql_install_db', and the manual section that    describes problems on your OS.  Another information source are the    MySQL email archives available at http://lists.mysql.com/.
   Please check all of the above before submitting a bug report    at http://bugs.mysql.com/
   #--------------------------------------------------------------------------------------------
   [root@aib-bitest log]# /usr/libexec/mysqld --skip-grant    150417 10:07:30 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.    150417 10:07:30 [Warning] Using unique option prefix skip-grant instead of skip-grant-tables is deprecated and will be removed in a future release. Please use the full name instead.    150417 10:07:30 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'    150417 10:07:30 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
   150417 10:07:30 [ERROR] Aborting
   150417 10:07:30 [Note]
   #--------------------------------------------------------------------------------------------
   [root@aib-bitest log]# /usr/libexec/mysqld --skip-grant-tables    150417 10:08:20 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.    150417 10:08:20 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'    150417 10:08:20 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
   150417 10:08:20 [ERROR] Aborting
   150417 10:08:20 [Note]
   #--------------------------------------------------------------------------------------------
   ## Added user = mysql to /etc/my.cnf    [root@aib-bitest log]# nano /etc/my.cnf
   ## Tried this again    [root@aib-bitest log]# /usr/libexec/mysqld --skip-grant-tables    150417 10:35:38 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.    150417 10:35:38 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'    150417 10:35:38 [Note] Plugin 'FEDERATED' is disabled.    150417 10:35:38 InnoDB: The InnoDB memory heap is disabled    150417 10:35:38 InnoDB: Mutexes and rw_locks use GCC atomic builtins    150417 10:35:38 InnoDB: Compressed tables use zlib 1.2.3
   150417 10:35:38 InnoDB: Using Linux native AIO    150417 10:35:38 InnoDB: Initializing buffer pool, size = 128.0M    150417 10:35:38 InnoDB: Completed initialization of buffer pool    150417 10:35:38 InnoDB: highest supported file format is Barracuda.    150417 10:35:38  InnoDB: Waiting for the background threads to start    150417 10:35:39 InnoDB: 5.5.40 started; log sequence number 1595675    150417 10:35:39 [ERROR] Aborting
   150417 10:35:39  InnoDB: Starting shutdown...    150417 10:35:40  InnoDB: Shutdown completed; log sequence number 1595675    150417 10:35:40 [Note]
   #--------------------------------------------------------------------------------------------
   [root@aib-bitest log]# /sbin/service mysqld start    MySQL Daemon failed to start.    Starting mysqld:                                           [FAILED]

0 个答案:

没有答案