- 博客(14)
- 收藏
- 关注
原创 1292 - Incorrect datetime value: '' for column Mysql5.6 中datetime 类型字段的插入问题
mysql> select database(), version();+------------+-------------------------+| database() | version() |+------------+-------------------------+| test | 5.0.45-community-nt-l
2014-10-30 20:36:20 60486 6
原创 com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value
记录由WMySql5.0.45 升级为5.6.17时遇到的问题。数据库升级后,能正常查询。在插入datetime类型的字段报如下错误:Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '' for column 'crtTime' at row 1at co
2014-10-30 20:20:31 22189 6
原创 Cannot create JDBC driver of class '' for connect URL 'null'
记录新项目上线遇到的两个小问题。一、通过域名访问应用时报http 400的错误。思路:1.看本地能否正常访问。2.检查防火墙是否有问题。解决过程:1.server端的/etc/hosts文件映射ip和域名,wget域名能正常访问。排除应用自身问题。2.主机防火墙没开,开始考虑硬件防火墙的问题。找到网管,在硬件防火墙上做设置后,问题解决。二、连不上数据库org
2014-10-28 20:47:43 1134
原创 Tomcat 多域名配置
为了节省公网IP,要在一个tomcat下部署多个项目,每个项目对应一个不同的域名。1.注释掉tomcat\conf\server.xml中默认的Host标签对 unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
2014-10-28 20:36:21 912
原创 innobackupex存储备份历史
innobackupex可以将备份信息存储在mysql的percona_schema的xtrabackup_history表中。这样就更方便我们查询备份的情况了。 实验环境:mysql> system innobackupex --versionInnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innob
2014-10-28 17:23:37 762
原创 innobackupex 基于时间点的恢复
innobackupex Point-In-Time recovery利用innobackupex结合全备和全备以后的binlog可以把mysql恢复到指定的时间点。1.innobackupex全备$innobackupex --defaults-file=/mysqlweb/mysql5.6/my.cnf -user=bkpuser -password=s3cret /
2014-10-28 15:51:37 1588
原创 innobackupex: Error: Original data directory '.' is not empty
innobackupex恢复时遇到三个错误:错误信息:1. innobackupex: Error: Original data directory '.' is not empty! at /usr/bin/innobackupex line 21622. innobackupex: Error: Original data directory '/db/mysql5.6/data'
2014-10-27 17:04:56 7430
原创 RSA private key file not found
mysql5.6二进制版本启动后,errorlog中出现如下错误:[Note] RSA private key file not found: /db/mysql5.6/data//private_key.pem. Some authentication plugins will not work.[Note] RSA public key file not found: /db/mysq
2014-10-26 13:24:32 18757
原创 No such file or directory -- MYSQL 二进制版本启动失败
$tar xf mysql-advanced-5.6.21-linux-glibc2.5-x86_64.tar.gz -C /db/使用二进制版的mysql-advanced-5.6.21-linux-glibc2.5-x86_64.tar.gz安装后,修改了--log-error的路径,用mysqld_safe启动一直报错。必须到安装目录下启动才行。1.查看mysqld_safe的路
2014-10-24 17:50:17 33253 2
原创 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
$ mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MySQL to
2014-10-24 15:55:17 3869
原创 xtrabackup 恢复单个表
原理和mysql的transport tablespace基本相同。一、安装与备份1. 下载安装XtraBackup$wget http://www.percona.com/redir/downloads/XtraBackup/LATEST/binary/tarball/percona-xtrabackup-2.2.5-5027-Linux-x86_64.tar.gz$ta
2014-10-23 11:39:35 5262
原创 innobackupex: Error: Failed to connect to MySQL server as DBD
新环境上测试percona-xtrabackup-2.2.5-Linux-x86_64新版本,出现以下几个问题.1. 没安装perl-DBD-MySQL$innobackupex --defaults-file=/db/mysql5.6/my.cnf -user=bkpuser -password=s3cret -socket=/db/mysql5.6/mysql.sock /hom
2014-10-22 17:43:56 11384
原创 mysqldump: Got error: 1356 mysqldump的重要参数--force
一个mysql的备份突然变小了很多,但实际的数据量却一直在增长。备份脚本也没有调整过。为什么呢?重现了一下备份过程,发现备份中遇到了如下错误:mysqldump: Got error: 1356: View 'wordpress.v_t1' references invalid table(s) or column(s) or function(s) or definer/invoker
2014-10-22 10:10:09 11918
原创 MySql 传输表空间 Transportable Tablespaces
官方文档:http://dev.mysql.com/doc/refman/5.6/en/tablespace-copying.htmlMySql 传输表空间的限制:1.MySQL 5.6及以上版本2.打开innodb_file_per_table3.Linux中开启lower_case_table_names4.MySQL 5.6中有些版本不支持分区表的传输表空间5.源库和
2014-10-21 14:59:52 2068
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人