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错误怎么办的详细内容。
