关于Linux系统下遇到的mysql问题,求指导

问题1:

Mysql是安装在linux体统中,操作是通过使用WindowsXP 下的软件Navicat 8 for MySQL,在连接上Linux中的数据库之后,打开了我使用的库,然后在事件中增加了一个事件,在事件的计划任务中,勾选了Every 1 Hour, Starts 2010-07-14 10:00:00。这个计划任务主要是调用了一个存储过程,存储过程语句如下:

begin

delete from GJ_VEH1L where JGSJ < date_sub( now(), interval 3 month) order by JGSJ;

delete from GJ_VEH1L_BACK where JGSJ < date_sub( now(), interval 3 month) order by JGSJ;

end

症状是,有的机器突然就不执行这个计划任务了,求解决方法及可能原因。

问题2:

在Linux系统中 配置 /etc/my.cnf文件,在【mysqld】下 加入了如下代码:

log=/data/GKJManager/mysql_log/log.log

slow-query-log_file=/data/GKJManager/mysql_log/slow-query-log.log

log-error=/data/GKJManager/mysql_log/log-err.log

log-queries-not-using-indexes = /data/GKJManager/mysql_log/nouseindex.log

希望能够打开 我计划任务执行时的日志,但是加了如下代码之后,在/data/GKJManager/mysql_log这个文件夹中,只产生了log-err.log,而且貌似只生成了 我输入service mysql restart 之后的错误信息,错误信息如下:

120917 11:41:11 mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended

120917 11:41:12 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

120917 11:41:12 [Warning] /usr/local/mysql/bin/mysqld: ignoring option '--log-queries-not-using-indexes' due to invalid value '/data/GKJManager/mysql_log/nouseindex.log'

120917 11:41:12 [Note] Plugin 'FEDERATED' is disabled.

120917 11:41:12 InnoDB: Started; log sequence number 0 46459

120917 11:41:12 [Note] Event Scheduler: Loaded 1 event

120917 11:41:12 [Note] Event Scheduler: scheduler thread started with id 1

120917 11:41:12 [Note] /usr/local/mysql/bin/mysqld: ready for connections.

Version: '5.1.36-log' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)

120917 13:32:03 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown

120917 13:32:03 [Note] Event Scheduler: Killing the scheduler thread, thread id 1

120917 13:32:03 [Note] Event Scheduler: Waiting for the scheduler thread to reply

120917 13:32:03 [Note] Event Scheduler: Stopped

120917 13:32:03 [Note] Event Scheduler: Purging the queue. 1 events

120917 13:32:03 InnoDB: Starting shutdown...

120917 13:32:04 InnoDB: Shutdown completed; log sequence number 0 46459

120917 13:32:04 [Warning] Forcing shutdown of 1 plugins

120917 13:32:04 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

120917 13:32:04 mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended

120917 13:32:04 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

120917 13:32:04 [Warning] The syntax '--log' is deprecated and will be removed in MySQL 7.0. Please use '--general_log'/'--general_log_file' instead.

120917 13:32:04 [Warning] /usr/local/mysql/bin/mysqld: ignoring option '--log-queries-not-using-indexes' due to invalid value '/data/GKJManager/mysql_log/nouseindex.log'

120917 13:32:04 [Note] Plugin 'FEDERATED' is disabled.

120917 13:32:05 InnoDB: Started; log sequence number 0 46459

/usr/local/mysql/bin/mysqld: File '/data/GKJManager/mysql_log/log.log' not found (Errcode: 13)

120917 13:32:05 [ERROR] Could not use /data/GKJManager/mysql_log/log.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.

120917 13:32:05 [Note] Event Scheduler: Loaded 1 event

120917 13:32:05 [Note] Event Scheduler: scheduler thread started with id 1

120917 13:32:05 [Note] /usr/local/mysql/bin/mysqld: ready for connections.

想知道为什么没有生成其他的日志信息,有知道的麻烦回答我一下,谢谢了!!

------解决方案--------------------

症状是,有的机器突然就不执行这个计划任务了,求解决方法及可能原因。

show events 检查一下。另外检查一下变量 event_scheduler

mysql> show variables like '%sc%';

微信 赏一包辣条吧~

支付宝 赏一听可乐吧~

关于linux系统下遇到的mysql问题_关于Linux系统上遇到的MySql有关问题,求指导相关推荐

  1. win10系统下vs2015编写的C++程序在XP系统里运行

    虽然目前很多用户的电脑系统都是win7到win10,但还有部分用户的电脑系统是xp,比如一个项目要兼顾到xp用户,而通常编写的vs2015程序在xp里并不能运行,先做一个如下测试,使用vs2015创建 ...

  2. (非usb方式)树莓派4BCentos系统下使用SIM7600G-H进行GPS(直接插在树莓派上使用)

    (非usb方式)树莓派4BCentos系统下使用SIM7600G-H进行GPS(直接插在树莓派上使用) GPS接受天线必须放在能看到天空的地方 1.下载设置官方示例 1.将模块直接插入树莓派中:wge ...

  3. linux上部署mysql服务_在Linux环境下部署MySql服务

    之前有下载部署过几次,但是每次都会踩一些坑.特此记录在liunx下部署安装mysql的基本步骤: 1.卸载老版本的mysql find / -name mysql|xargs rm -rf     查 ...

  4. win7 mysql 密码_笔记本win7系统下mysql忘记密码的最佳解决方法

    MySQL是一个关系型数据库管理系统,在笔记本win7系统下编程的时候就需要用到MySQL数据库,不过有时候一段时间没用的话,可能会忘记数据库的登录密码了,当忘记密码就无法进入mysql,要如何解决呢 ...

  5. linux系统中自动生成snap文件_在Linux操作系统下自动生成Makefile的方法

    在Linux操作系统下进行开发,编写Makefile似乎是不可缺少的事情.但是对于一个比较大的工程,编写一个符合规范的Makefile并非易事.而且由于Makefile的各种显式,隐式规则,加之平时并 ...

  6. linux系统下的打印机驱动下载,方法论:Linux下如何驱动主流品牌打印机

    薄荷站长浸淫 Linux 桌面领域十余年,一直致力于 Linux 桌面系统的推广.对于桌面用户办公中必需的打印功能,薄荷站长也是有所研究.为了使新手朋友们少走弯路,薄荷站长介绍一下常见品牌打印机的 L ...

  7. linux系统怎么安装爱奇艺_在deepin系统下使用vek来安装爱奇艺PC客户端

    其实在deepin系统下可以通过应用商店来安装到爱奇艺,但是本文也给出了另一种方式,那就是使用vek来安装爱奇艺PC客户端.可参考深度商店应用FF Multi Converter.Imaginatio ...

  8. 免费网站mysql模板_十大最常用的PHP+MySql免费CMS模板系统

    十大最常用的PHP+MySql免费CMS模板系统 (2010-11-09 13:38:40) 标签: 健康 1. DEDE -这是一款国内开源的cms,作者是一个个人,能做出如此功能的cms,是相当不 ...

  9. linux mysql软件_「Linux」 - 常用软件安装-MySql

    一.TIPS 1.5.6版本使用mysql_install_db安装:5.7版本中被废弃,使用--initialize,进行初始化安装 2.初始化时,使用--initialize-insecure生成 ...

最新文章

  1. Bzoj2337:[HNOI2011]XOR和路径
  2. 关于selenium+python的框架
  3. 编译原理实验语义分析_「编译原理」LL(1)文法分析,简单优先分析
  4. ( )不是html的布局标签,不要使用的HTML标签(WEB标准网页布局)
  5. QT消息/事件循环机制与多线程的关系
  6. datetime报错 sql脚本_SQLSERVER 中datetime 和 smalldatetime类型分析说明
  7. STM32工作笔记0089---UCOSIII存储管理
  8. Dropthings - Ajax Web Portal
  9. 新装的台式机新装WIN7系统启动时卡在开机动画如何解决?
  10. python爬虫简历项目怎么写_爬虫项目咋写,爬取什么样的数据可以作为项目写在简历上?...
  11. Bus Hound 使用指南
  12. 云计算与大数据之间的关系
  13. 大数据最核心的价值是什么?
  14. 目标检测正负样本区分和平衡策略总结
  15. C++智能指针与类型转换
  16. Pr 复古胶片老电影回忆效果
  17. 英语口语8000句 pdf_英语口语 — Track 01表达技巧
  18. 三维视觉 | 03 MATLAB 单、双目相机标定
  19. 「 LaTex 」写论文,修改公式内行距的方法
  20. 如何重键盘输入“勾”“打勾””√“这个符号

热门文章

  1. matlab中的numel函数使用
  2. 计算机网络会话层主要功能,计算机网络体系结构及协议之会话层
  3. Nat Genet | 湖南农业大学群体基因组学研究揭示古老芥菜身世之谜、百变之源
  4. 【技术分享】昇腾CANN AIPP入门学习实战总结
  5. 十行代码在旧手机上快速安装homeassistant
  6. 逻辑地址到物理地址的转换
  7. ASP.NET Core MVC 从入门到精通之路由
  8. HTTP三次握手四次挥手简记
  9. C位出道大飞机(中)
  10. 一图搞懂网络NAT映射