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
,回车
Welcome to the MysqL monitor. Commands end with ; or \g.Your MysqL connection ID is 1Server version: 5.6.20 MysqL Community Server (GPL)MysqL>
已连接上MysqL数据库,可以输入MySQL命令了。
3、设置密码
MysqL> update user set password=PASSWORD('password') where user='root';query OK, 2 rows affected (0.02 sec)Rows matched: 3 Changed: 2 Warnings: 0MysqL> FLUSH PRIVILEGES; MysqL> quit
之后按正常方法连接MysqL就可以了。如果不能连接,查看下MysqL服务是否启动。
总结相关免费学习推荐:mysql视频教程
以上是内存溢出为你收集整理的mysql出现1044错误怎么办全部内容,希望文章能够帮你解决mysql出现1044错误怎么办所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)