发现mysql的error.log里面有报错:InnoDB: Error: Table “mysql”.“innodb_table_stats” not found. InnoDB:Error: Fetch of persistent statistics requested for table“hj_web”.“wechat_res” but the required system tablesmysql.innodb_table_stats and mysql.innodb_index_stats are not presentor have ...【阅读全文】
CREATE OR REPLACE FUNCTION "public"."cursor_demo"() RETURNS "pg_catalog"."int4" AS $BODY$ declare cursor_data refcursor; t_accid int;begin open cu...【阅读全文】
运行中的mysql状态查看 对正在运行的mysql进行监控,其中一个方式就是查看mysql运行状态。 (1)QPS(每秒Query量) QPS = Questions(or Queries) / seconds mysql > show global status like 'Question%'; (2...【阅读全文】
2017-05-31T07:12:17.798068Z mysqld_safe mysqld from pid file /opt/mysql5718/data/izwz9gxsbwybwg9n5xdi47z.pid ended2017-05-31T07:13:41.155879Z mysqld_safe Logging to '/opt/mysql5718/mysqllog/logfile/mysql-err.log'.2017-05-31T07:13:41.180126Z mysqld_safe Starting mysqld daemon with databases from /o...【阅读全文】
http://www.cnblogs.com/chubeautiful/p/3540710.html之前在工作中总是听别人提到存储过程,觉得是个很高深的东西,利用工作之余,看了下相关的知识,现将学习知识总结如下,希望可以为刚学习的人提供些许帮助。开发环境:Navicat For Mysql。MySQL存储过程1.1、CREATE PROCEDURE (创建)...【阅读全文】
点击(此处)折叠或打开CREATE PROCEDURE schedue.test(OUT po_return int) SQL SECURITY INVOKERBEGIN DECLARE b varchar(2); DECLARE exit handler FOR SQLEXCEPTION begin SET po_return=999; end;...【阅读全文】