[Warning] TIMESTAMP with implicit DEFAULT --explicit_defaults_for_timestamp
发表于:2025-11-25 作者:千家信息网编辑
千家信息网最后更新 2025年11月25日,2014.9.25本想在MySQL上面做点实验的,可以登录的时候报错(ps:mysql 服务已经是开启的):window 7 64位,MySQL 5.7日志:点击(此处)折叠或打开2014-09-25
千家信息网最后更新 2025年11月25日[Warning] TIMESTAMP with implicit DEFAULT --explicit_defaults_for_timestamp2014.9.25
本想在MySQL上面做点实验的,可以登录的时候报错(ps:mysql 服务已经是开启的):
window 7 64位,
MySQL 5.7

日志:
网上找了很多文章,有以下几种解决方案,可能适合你的情况:
1、删除data目录下的ib_logfile0和ib_logfile1文件,重启MySQL。
-----这种多发生在启动MySQL服务时,不能开启MySQL服务。但是我的服务可以正常的开启和关闭:
2、在my.ini mysqld 下添加 explicit_defaults_for_timestamp=true
-----我添加之后,还是原来的错误。
3、手动的在服务里面,重启MySQL服务
-----这种可能性表示怀疑。手动的跟命令行下,应该都一样吧
中午吃饭回来继续解决。
可发现,报错不一样了

然后又把添加的参数给注释掉。
再登录的时候,居然可以登录了。
真的百思不得其解。刚刚接触MySQL,很多问题不会,只能通过度娘以及认识的大牛们。
哈哈 现在要下班了,刚刚在Linux环境下同样遇见这个问题:
但是这样就可以登录了:
总算明白是怎么会事儿了!
回家!
本想在MySQL上面做点实验的,可以登录的时候报错(ps:mysql 服务已经是开启的):
window 7 64位,
MySQL 5.7

日志:
点击(此处)折叠或打开
- 2014-09-25T04:19:53.971570Z 0 [Note] Plugin \'FEDERATED\' is disabled.
- 2014-09-25T04:19:53.974570Z 0 [Warning] InnoDB: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB\'s internal memory allocator.
- 2014-09-25T04:19:53.977570Z 0 [Note] InnoDB: The InnoDB memory heap is disabled
- 2014-09-25T04:19:53.978570Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
- 2014-09-25T04:19:53.979570Z 0 [Note] InnoDB: Uses system mutexes
- 2014-09-25T04:19:53.980570Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2014-09-25T04:19:53.982571Z 0 [Warning] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
- 2014-09-25T04:19:53.987571Z 0 [Note] InnoDB: Number of pools: 1
- 2014-09-25T04:19:53.988571Z 0 [Note] InnoDB: Not using CPU crc32 instructions
- 2014-09-25T04:19:54.003572Z 0 [Note] InnoDB: Initializing buffer pool, total size = 57.0M, instances = 1
- 2014-09-25T04:19:54.012572Z 0 [Note] InnoDB: Completed initialization of buffer pool
- 2014-09-25T04:19:54.016573Z 0 [ERROR] InnoDB: .\\ibdata1 must be writable
- 2014-09-25T04:19:54.017573Z 0 [ERROR] InnoDB: The system tablespace must be writable
- 2014-09-25T04:19:54.218584Z 0 [ERROR] Plugin \'InnoDB\' init function returned error.
- 2014-09-25T04:19:54.219584Z 0 [ERROR] Plugin \'InnoDB\' registration as a STORAGE ENGINE failed.
- 2014-09-25T04:19:54.220584Z 0 [ERROR] mysqld: unknown option \'-p\'
- 2014-09-25T04:19:54.221584Z 0 [ERROR] Aborting
- 2014-09-25T04:19:54.222584Z 0 [Note] Binlog end
- 2014-09-25T04:19:54.223584Z 0 [Note] Shutting down plugin \'partition\'
- 2014-09-25T04:19:54.224584Z 0 [Note] Shutting down plugin \'PERFORMANCE_SCHEMA\'
- 2014-09-25T04:19:54.225584Z 0 [Note] Shutting down plugin \'INNODB_SYS_DATAFILES\'
- 2014-09-25T04:19:54.227585Z 0 [Note] Shutting down plugin \'INNODB_SYS_TABLESPACES\'
- 2014-09-25T04:19:54.228585Z 0 [Note] Shutting down plugin \'INNODB_SYS_FOREIGN_COLS\
网上找了很多文章,有以下几种解决方案,可能适合你的情况:
1、删除data目录下的ib_logfile0和ib_logfile1文件,重启MySQL。
-----这种多发生在启动MySQL服务时,不能开启MySQL服务。但是我的服务可以正常的开启和关闭:
2、在my.ini mysqld 下添加 explicit_defaults_for_timestamp=true
-----我添加之后,还是原来的错误。
3、手动的在服务里面,重启MySQL服务
-----这种可能性表示怀疑。手动的跟命令行下,应该都一样吧
中午吃饭回来继续解决。
可发现,报错不一样了

然后又把添加的参数给注释掉。
再登录的时候,居然可以登录了。
真的百思不得其解。刚刚接触MySQL,很多问题不会,只能通过度娘以及认识的大牛们。
哈哈 现在要下班了,刚刚在Linux环境下同样遇见这个问题:
点击(此处)折叠或打开
- [root@BIDEVEDW_DB bin]# ./mysqld -uroot -p
- 2014-09-25 17:29:05 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2014-09-25 17:29:05 24368 [Note] Plugin \'FEDERATED\' is disabled.
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Using atomics to ref count buffer pool pages
- 2014-09-25 17:29:05 24368 [Note] InnoDB: The InnoDB memory heap is disabled
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Using Linux native AIO
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Using CPU crc32 instructions
- 2014-09-25 17:29:05 24368 [Note] InnoDB: Initializing buffer pool, size = 9.0G
- 2014-09-25 17:29:07 24368 [Note] InnoDB: Completed initialization of buffer pool
- 2014-09-25 17:29:08 24368 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
- 2014-09-25 17:29:08 24368 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
但是这样就可以登录了:
点击(此处)折叠或打开
- [root@BIDEVEDW_DB bin]# ./mysql -uroot -p
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \\g.
- Your MySQL connection id is 19445
- Server version: 5.6.19 Source distribution
- Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type \'help;\' or \'\\h\' for help. Type \'\\c\' to clear the current input statement.
- mysql>
总算明白是怎么会事儿了!
回家!
服务
登录
大牛
手动
时候
还是
问题
百思不得其解
事儿
参数
可能性
命令
情况
文件
文章
方案
日志
是在
注释
环境
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全法犯罪规定
云服务器 测速
苹果cms10共同数据库
服务器为什么用至强处理器
dz 数据库结构
在线网络技术开发建议
签订网络安全承诺书小结
gis空间数据库的连接
张艺兴网络安全手指舞
局域网服务器最大网速
网络安全攻击有哪些
战舰世界国服连接不上服务器
域名解析服务器设置
学校里做软件开发是什么编制
数据库报1051
分布式编程服务器配置
数据库上传到服务器软件
自己制作华为云服务器
数据库原理与应用用什么教材
写软件开发的文案
江门零件加工管理软件开发
国产单串口服务器公司
数据库la代表什么意思
我的世界哪个服务器有死亡交换
服务器登不上
经济安全首先要确保网络安全
下载显示服务器错误
网络安全演讲稿三百字
吴忠市网络安全宣传
服务器硬盘检测机制