MySQL无法启动的解决办法

MySQL无法启动

在停止mysql之后,执行了一些操作(如修改主机名),重新启动 mysql,发现起不来。

[root@www ~]$ service mysql start Starting MySQL..^[[A.................................................................................................. ERROR! The server quit without updating PID file (/disk/mysql/www.pid).[root@www ~]$ service mysql stop  ERROR! MySQL server PID file could not be found![root@www ~]$ service mysql stop  ERROR! MySQL server PID file could not be found![root@www ~]$ service mysql start Starting MySQL..................还是老样子,只好 Ctr+C 掉。[root@www ~]$ 
120608 09:56:17 mysqld_safe Starting mysqld daemon with databases from /disk/mysql120608 9:56:17 [Note] Plugin 'FEDERATED' is disabled.120608 9:56:17 InnoDB: The InnoDB memory heap is disabled120608 9:56:17 InnoDB: Mutexes and rw_locks use InnoDB's own implementation120608 9:56:17 InnoDB: Compressed tables use zlib 1.2.3120608 9:56:17 InnoDB: Using Linux native AIO120608 9:56:17 InnoDB: Initializing buffer pool, size = 128.0M120608 9:56:17 InnoDB: Completed initialization of buffer poolInnoDB: Unable to lock ./ibdata1, error: 11InnoDB: Check that you do not already have another mysqld processInnoDB: using the same InnoDB data or log files.120608 9:56:17 InnoDB: Retrying to lock the first data fileInnoDB: Unable to lock ./ibdata1, error: 11InnoDB: Check that you do not already have another mysqld processInnoDB: using the same InnoDB data or log files.InnoDB: Unable to lock ./ibdata1, error: 11InnoDB: Check that you do not already have another mysqld processInnoDB: using the same InnoDB data or log files.InnoDB: Unable to lock ./ibdata1, error: 11...

强制终止 mysqld

[root@www ~]$ ps -ef|grep mysql root   4769   1 0 Jun06 ?    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/disk/mysql --pid-file=/disk/mysql/localhost.pidmysql   4874 4769 0 Jun06 ?    00:04:04 /usr/sbin/mysqld --basedir=/usr --datadir=/disk/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/disk/mysql/localhost.err --pid-file=/disk/mysql/localhost.pid --socket=/disk/mysql/mysql.sockroot   17947   1 0 09:56 pts/1  00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/disk/mysql --pid-file=/disk/mysql/www.pidmysql  18052 17947 0 09:56 pts/1  00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/disk/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/disk/mysql/www.err --pid-file=/disk/mysql/www.pid --socket=/disk/mysql/mysql.sockroot   18099 17514 0 09:56 pts/1  00:00:00 grep mysql[root@www ~]$ killall mysqld [root@www ~]$ killall mysqld [root@www ~]$ ps -ef|grep mysql root   18116 17514 0 09:57 pts/1  00:00:00 grep mysql[root@www ~]$
[root@www ~]$ service mysql start Starting MySQL. SUCCESS! [root@www ~]$ [root@www ~]$ [root@www ~]$ [root@www ~]$ [root@www ~]$ service mysql start Starting MySQL SUCCESS! [root@www ~]$ 
[root@www ~]$ perror 11 OS error code 11: Resource temporarily unavailable[root@www ~]$ [root@www ~]$

更多相关文章

  1. Android,LIstView中的OnItemClick点击无效的解决办法
  2. 华为手机Android(安卓)Studio开发不显示Logcat解决办法
  3. 安卓9.0 http请求数据失败解决办法
  4. Android(安卓)Studio 导入包时报 Duplicate files copied in APK
  5. Android(安卓)启动时闪一下黑屏问题的解决办法
  6. Android(安卓)webview Not allowed to load local resource异常
  7. Android(安卓)SDK Manager更新版慢解决办法
  8. 关于新版SDK报错You need to use a Theme.AppCompat theme的两种
  9. Android小问题解决办法记录

随机推荐

  1. 物理服务器多块硬盘故障
  2. 2020年12PMP备考历程
  3. Redis五大数据类型内部编码剖析(一、Strin
  4. 用鸿蒙开发AI应用(五)HDF 驱动补光灯
  5. 一文详解 Linux系统常用监控工具
  6. 数据库中间件 MyCAT源码分析:【单库单表】
  7. linux系统中重启网卡后网络不通(NetworkMa
  8. 分布式事务 TCC-Transaction 源码分析 —
  9. Redis 哈希结构内存模型剖析
  10. FAlinux01-1基础