mysql5.7 solo web服务器
2017-11-04 14:42
113 查看
前言
生活生活奈若何???
直接上干货!报错如图所示:
![](https://s5.51cto.com/oss/201711/04/115708b9adec0281361505def74622e5.png-wh_500x0-wm_3-wmp_4-s_2993537787.png)
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.
171104 14:50:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
看看看报错是什么?
解决方法:修改/etc/my.cnf
其实错误日志已经告诉我们该怎么做了:InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
这句话的意思是让我们增加一条配置 设置此innodb_force_recovery > 0,所以我尝试设置为1,然后重启成功。
# The MySQL server
[mysqld]
innodb_force_recovery = 1 /*增加一行,让其独立运行,注意一定要是在mysqld选项下*/
![](https://s1.51cto.com/oss/201711/04/e4256665e4cab368263b7b6ee95ed50c.png-wh_500x0-wm_3-wmp_4-s_1397302967.png)
重启msyql systemctl restart mysqld
![](https://s3.51cto.com/oss/201711/04/124511e863b5a93e5664c986900aecd1.png-wh_500x0-wm_3-wmp_4-s_1542701583.png)
登录成功!
![](https://s4.51cto.com/oss/201711/04/ffd4df31ed6aa0e16bdd7868391b374b.png-wh_500x0-wm_3-wmp_4-s_2390234544.png)
nginx报错如下:
![](https://s3.51cto.com/oss/201711/04/f75a0b1d5cc4c86641e75b067fe65331.png-wh_500x0-wm_3-wmp_4-s_2185514486.png)
tail -10 /var/log/nginx/error.log
2017/11/04 14:38:10 [emerg] 12853#12853: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:42:24 [emerg] 13685#13685: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:43:11 [emerg] 13837#13837: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:44:27 [emerg] 14071#14071: module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
2017/11/04 14:46:12 [emerg] 14400#14400: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:46:20 [emerg] 14434#14434: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 15:03:28 [emerg] 18276#18276: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:24:33 [emerg] 21283#21283: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:34:29 [emerg] 21390#21390: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:36:29 [emerg] 21416#21416: unknown directive "geoip_country" in /etc/nginx/conf.d/geoip.conf:1
通过日志分析发现conf的配置有问题!
![](https://s1.51cto.com/oss/201711/04/9a2713c3cea246b0fd2e22bcd799213d.png-wh_500x0-wm_3-wmp_4-s_1518823606.png)
重新启动!
![](https://s1.51cto.com/oss/201711/04/74ad3364835b6ec7499abac2dc4c1e36.png-wh_500x0-wm_3-wmp_4-s_3358453135.png)
总结!习惯不管什么错误都想写在博客上!!!
生活生活奈若何???
直接上干货!报错如图所示:
![](https://s5.51cto.com/oss/201711/04/115708b9adec0281361505def74622e5.png-wh_500x0-wm_3-wmp_4-s_2993537787.png)
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.
171104 14:50:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
看看看报错是什么?
解决方法:修改/etc/my.cnf
其实错误日志已经告诉我们该怎么做了:InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
这句话的意思是让我们增加一条配置 设置此innodb_force_recovery > 0,所以我尝试设置为1,然后重启成功。
# The MySQL server
[mysqld]
innodb_force_recovery = 1 /*增加一行,让其独立运行,注意一定要是在mysqld选项下*/
![](https://s1.51cto.com/oss/201711/04/e4256665e4cab368263b7b6ee95ed50c.png-wh_500x0-wm_3-wmp_4-s_1397302967.png)
重启msyql systemctl restart mysqld
![](https://s3.51cto.com/oss/201711/04/124511e863b5a93e5664c986900aecd1.png-wh_500x0-wm_3-wmp_4-s_1542701583.png)
登录成功!
![](https://s4.51cto.com/oss/201711/04/ffd4df31ed6aa0e16bdd7868391b374b.png-wh_500x0-wm_3-wmp_4-s_2390234544.png)
nginx报错如下:
![](https://s3.51cto.com/oss/201711/04/f75a0b1d5cc4c86641e75b067fe65331.png-wh_500x0-wm_3-wmp_4-s_2185514486.png)
tail -10 /var/log/nginx/error.log
2017/11/04 14:38:10 [emerg] 12853#12853: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:42:24 [emerg] 13685#13685: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:43:11 [emerg] 13837#13837: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:44:27 [emerg] 14071#14071: module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
2017/11/04 14:46:12 [emerg] 14400#14400: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 14:46:20 [emerg] 14434#14434: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1012001 in /usr/share/nginx/modules/mod-http-geoip.conf:1
2017/11/04 15:03:28 [emerg] 18276#18276: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:24:33 [emerg] 21283#21283: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:34:29 [emerg] 21390#21390: "rewrite" directive is not allowed here in /etc/nginx/conf.d/newdefine.conf:1
2017/11/04 15:36:29 [emerg] 21416#21416: unknown directive "geoip_country" in /etc/nginx/conf.d/geoip.conf:1
通过日志分析发现conf的配置有问题!
![](https://s1.51cto.com/oss/201711/04/9a2713c3cea246b0fd2e22bcd799213d.png-wh_500x0-wm_3-wmp_4-s_1518823606.png)
重新启动!
![](https://s1.51cto.com/oss/201711/04/74ad3364835b6ec7499abac2dc4c1e36.png-wh_500x0-wm_3-wmp_4-s_3358453135.png)
总结!习惯不管什么错误都想写在博客上!!!
相关文章推荐
- centos7安装web服务器(openresty1.11.2.1、mysql5.7、php7、redis3.2)
- centos安装java web服务器环境java8+tomcat8+mysql5.7
- CGI与WEB服务器的响应头
- xampp一个WEB服务器工具
- 个人用户如何搭建一个全面的WEB服务器(中)
- Tomcat服务器解析“GET /JavaWebDemo1/1.jsp HTTP/1.1”
- 本机访问虚拟机web服务器失败的解决办法 .
- python自带简单web服务器
- HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容
- Web服务器常用配置问题
- apache整合tomcat实现web服务器的动静态资源的分离解析
- 无法在WEB服务器上启动调试,Web 服务器配置不正确
- nginx 禁止ip直接访问web服务器
- 淘宝开源Web服务器Tengine基本安装步骤
- 聊一聊PV和并发、以及计算web服务器的数量的方法
- 反向代理的概念及提高WEB服务器的安全性
- 实现对Web服务器的SSL加密访问
- 工作组下,配置使用web方式修改文件服务器用户帐户密码
- 无法在web服务器上启动调试,你没有调试该服务器的权限。验证你是服务器上“Debugger Users”组的成员
- 同一台服务器上安装mysql5.5和mysql5.7 不同版本的实例