mysql出现1044错误怎么办


本文摘自PHP中文网,作者coldplay.xixi,侵删。

mysql出现1044错误的解决办法:首先cmd模式进入mysql的bin目录,并输入相关代码回车;然后再打开一个dos窗口,同样切到mysql bin目录下,输入相关代码;最后设置密码即可。

mysql出现1044错误的解决办法:

这个错误一般是这个文件my-default.ini或者这个文件my.ini(对应你自己的版本)中sql_mode的配置可能有问题,你可以把它删除掉,然后按照下面的步骤做

1、cmd模式进入mysql的bin目录,输入D:\Program Files\MySQL\MySQL Server 5.6\bin>mysqld --defaults-file="D:\Program Files\MySQL\MySQL Server 5.6\my-default.ini" --console --skip-grant-tables,回车

2014-08-29 10:40:48 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use

2014-08-29 10:40:48 8108 [Note] Plugin 'FEDERATED' is disabled.

2014-08-29 10:40:48 8108 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-08-29 10:40:48 8108 [Note] InnoDB: The InnoDB memory heap is disabled

2014-08-29 10:40:48 8108 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2014-08-29 10:40:48 8108 [Note] InnoDB: Memory barrier is not used

2014-08-29 10:40:48 8108 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-08-29 10:40:48 8108 [Note] InnoDB: Not using CPU crc32 instructions

2014-08-29 10:40:48 8108 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-08-29 10:40:48 8108 [Note] InnoDB: Completed initialization of buffer pool

2014-08-29 10:40:48 8108 [Note] InnoDB: Highest supported file format is Barracuda.

2014-08-29 10:40:57 8108 [Note] InnoDB: 128 rollback segment(s) are active.

2014-08-29 10:40:57 8108 [Note] InnoDB: Waiting for purge to start

2014-08-29 10:40:57 8108 [Note] InnoDB: 5.6.20 started; log sequence number 1625997

2014-08-29 10:40:57 8108 [Note] Server hostname (bind-address): '*'; port: 3306

2014-08-29 10:40:57 8108 [Note] IPv6 is available.

2014-08-29 10:40:57 8108 [Note] - '::' resolves to '::';

2014-08-29 10:40:57 8108 [Note] Server socket created on IP: '::'.

2014-08-29 10:40:58 8108 [Note] mysqld: ready for connections.

Version: '5.6.20' socket: '' port: 3306 MySQL Community Server (GPL)

看到这个结果就说明MySQL已经起来了。

2、再开一个dos窗口,同样切到mysql bin目录下,输入D:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -u root mysql,回车

阅读剩余部分

相关阅读 >>

xshell怎么搭建mysql

mysql使用profile分析sql开销的代码

通过mysql导出查询结果到csv方法的讲解

mysql如何修改字段为null

mysql索引详细解析

mysql可以比较时间吗

mysql 协议嗅探是什么

c#操作mysql数据库的代码实例

程序连不上mysql怎么办

mysql逻辑架构详解

更多相关阅读请进入《mysql》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...