mysql安装/启动报错汇总
2016/9/6补充
初始化报错:
- # /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/data/mysqldb/
- Installing MySQL system tables...2016-09-06 17:29:16 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2016-09-06 17:29:17 0 [Note] /usr/local/mysql//bin/mysqld (mysqld 5.6.32) starting as process 21651 ...
- 2016-09-06 17:29:19 21651 [Note] InnoDB: Using atomics to ref count buffer pool pages
- 2016-09-06 17:29:19 21651 [Note] InnoDB: The InnoDB memory heap is disabled
- 2016-09-06 17:29:19 21651 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2016-09-06 17:29:19 21651 [Note] InnoDB: Memory barrier is not used
- 2016-09-06 17:29:19 21651 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2016-09-06 17:29:19 21651 [Note] InnoDB: Using CPU crc32 instructions
- /usr/local/mysql//bin/mysqld: Can't create/write to file '/tmp/ibEKTPAP' (Errcode: 13 - Permission denied)
- 2016-09-06 17:29:19 7f72573f0720 InnoDB: Error: unable to create temporary file; errno: 13
- 2016-09-06 17:29:19 21651 [ERROR] Plugin 'InnoDB' init function returned error.
- 2016-09-06 17:29:19 21651 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 2016-09-06 17:29:19 21651 [ERROR] Unknown/unsupported storage engine: InnoDB
- 2016-09-06 17:29:19 21651 [ERROR] Aborting
- 2016-09-06 17:29:19 21651 [Note] Binlog end
- 2016-09-06 17:29:19 21651 [Note] /usr/local/mysql//bin/mysqld: Shutdown complete
解决方法:
- # chmod 777 /tmp
第一次安装mysql,启动时报错
- # /etc/init.d/mysqld start
- Starting MySQL.......The server quit without updating PID f[失败]tmp/mysql.pid).
查看日志
- # tailf /data/mysqldb/log/mysql-error.log
- 160730 00:57:28 mysqld_safe Starting mysqld daemon with databases from /data/mysqldb
- 2016-07-30 00:57:29 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.31-log) starting as process 18702 ...
- 2016-07-30 00:57:29 18702 [Warning] option 'innodb-buffer-pool-instances': signed value -1 adjusted to 0
- .........
- 2016-07-30 00:57:29 18702 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 768 pages (rounded down to MB) than specified in the .cnf file: initial 131072 pages, max 0 (relevant if non-zero) pages!
- 2016-07-30 00:57:29 18702 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
- 2016-07-30 00:57:29 18702 [ERROR] Plugin 'InnoDB' init function returned error.
- 2016-07-30 00:57:29 18702 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 2016-07-30 00:57:29 18702 [ERROR] Unknown/unsupported storage engine: InnoDB
- 2016-07-30 00:57:29 18702 [ERROR] Aborting
- ......
- 160730 00:57:29 mysqld_safe mysqld from pid file /tmp/mysql.pid ended
解决方法
- # ls /data/mysqldb
- binlog ibdata1 ib_logfile0 ib_logfile1 log mysql performance_schema test
- 重命名或者直接删除这三个文件
- # mv ibdata1 ibdata1.bak
- # mv ib_logfile0 ib_logfile0.bak
- # mv ib_logfile1 ib_logfile1.bak
- # /etc/init.d/mysqld start
- Starting MySQL........................ [确定]
之前因为总是断电,启动数据库报如下类似错误
- # /etc/init.d/mysqld status
- MySQL is not running, but lock file (/var/lock/subsys/mysql[失败]ts
查看日志
- # tailf /data/mysqldb/log/mysql-error.log
- InnoDB: To fix the problem and start mysqld:
- InnoDB: 1) If there is a permission problem in the file and mysqld cannot
- InnoDB: open the file, you should modify the permissions.
- InnoDB: 2) If the table is not needed, or you can restore it from a backup,
- InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
- InnoDB: crash recovery and ignore that table.
- InnoDB: 3) If the file system or the disk is broken, and you cannot remove
- InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
- InnoDB: and force InnoDB to continue crash recovery here.
- 160801 19:30:39 mysqld_safe mysqld from pid file /tmp/mysql.pid ended
解决方法
同上,删除那几个文件即可
mysql安装/启动报错汇总的更多相关文章
- Ubuntu操作系统编译安装zabbix报错汇总
Ubuntu操作系统编译安装zabbix报错汇总 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.报错提示:"configure: error: MySQL libra ...
- python MySQL安装依赖报错的坑
0X01 问题 MySQL-python是python调用MySQL的常用库 通常安装时会遇到某些坑. EnvironmentError: mysql_config not found yum -y ...
- docker离线安装 启动报错Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
安装报错的提示:systemctl status docker.service 好吧,原来是缺少库文件.验证一下想法吧,yum -y install libseccomp 成功后,再启动docker发 ...
- 1、linux下mysql5.5.20安装过程报错汇总
1.Access denied for user 'root'@'localhost' (using password: YES) 这个提示是因为root帐户默认不开放远程访问权限,所以需要修改一下相 ...
- jmeter安装启动报错:Not able to find Java executable or version. Please check your Java installation
1.xp安装jmeter后启动,出现下面错误,找了很多方法试了,都没有用: 2.最后找到一个方法解决了[感谢无名大神],在环境变量PATH中添加:%SystemRoot%/system32;%Syst ...
- ubuntu 下安装 mysql 启动报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
环境: ubuntu LTS 18.04.1 mysql Ver 14.14 Distrib 5.7.29, for Linux (x86_64) 初探 linux,按照如下安装完mysql sudo ...
- MySQL5.7.26安装及启动报错解决
一.安装依赖包 [root@db01 ~]# yum install -y lrzsz [文件上传/下载] [root@db01 ~]# yum -y install xfsprogs [安装磁盘格式 ...
- mysql启动报错,与selinux相关
mysql启动报错,与selinux相关 如果遇到报错,可能的情况是 selinux 的关系,可以安装 setroubleshoot-server 工具,使用 sealert -a /var/log/ ...
- mysql启动报错:Starting MySQL...The server quit without updating PID file
在mysql的data目录下误删除了mysql-bin.000001,mysql-bin.000002等文件,但是没有删除mysql-bin.index文件,此时启动mysql就会报错: Starti ...
随机推荐
- ios开发之OC基础-类和对象
本系列的文章主要来自于个人在学习前锋教育-欧阳坚老师的iOS开发教程之OC语言教学视频所做的笔记,边看视频,边记录课程知识点.建议大家先过一遍视频,在看视频的过程中记录知识点关键字,把把握重点,然后再 ...
- TCP/IP之大明王朝邮差
一位大神的精华之作,原创2016-05-12 刘欣 来自码农翻身! 时间: 大明王朝天启四年, 清晨. 天色刚蒙蒙亮,我就赶着装满货物的马车来到了南城门,这里是集中处理货物的地方,一队一队的马车都来到 ...
- 【IHttpHandler】使用IHttpHandler防盗链
防盗链的原理,从图片请求的URL地址上判断是否是我们自己网站上的域名,如果不是,恭喜,你的图片已经被盗链了! 那么我来介绍下图片放盗链的一个方法 首先,添加个httpHandlers请求,webcon ...
- mysql 常用sql操作语句
获取数据库里所有表 SELECT TABLE_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名' 获取表里 ...
- 华为OJ—字符串排序(排序,忽略指定字符排序)
http://career-oj.huawei.com/exam/ShowProblemInfo?id=2168 编写一个程序,将输入字符串中的字符按如下规则排序. 规则1:英文字母从A到Z排列,不区 ...
- CentOS6.5配置vim使支持Python
CentOS6.5下开启vim对python的支持,配置方法如下: 1.检查系统已经安装了RPM包vim-enhanced; 2.复制默认的.vimrc初始化文件: # cp /usr/share/v ...
- 自定义Attribute 服务端校验 客户端校验
MVC 自定义Attribute 服务端校验 客户端校验/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) *//* Autho ...
- Hive中的排序语法
ORDER BY hive中的ORDER BY语句和关系数据库中的sql语法相似.他会对查询结果做全局排序,这意味着所有的数据会传送到一个Reduce任务上,这样会导致在大数量的情况下,花费大量时间. ...
- 初识 css3中counter属性
最近看到counter属性,好奇是做什么用的,于是去查了查. 1.简单介绍 counter是为css中插入计数器.[注明]在CSS2.1中counter()只能被使用在content属性上.关于浏览器 ...
- 利用crontab自动更新SVN代码
shell.sh#!/bin/sh source ~/.bash_profile LANG=en_US.UTF- cd /opt/web/hzcms/ svn up >> /opt/web ...