mysql1044错误代码_mysql出现1044错误怎么办
mysql出現(xiàn)1044錯誤的解決辦法:首先cmd模式進入mysql的bin目錄,并輸入相關(guān)代碼回車;然后再打開一個dos窗口,同樣切到mysql bin目錄下,輸入相關(guān)代碼;最后設(shè)置密碼即可。
mysql出現(xiàn)1044錯誤的解決辦法:
這個錯誤一般是這個文件my-default.ini或者這個文件my.ini(對應(yīng)你自己的版本)中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)
看到這個結(jié)果就說明MySQL已經(jīng)起來了。
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 1
Server version: 5.6.20 MySQL Community Server (GPL)
mysql>
已連接上mysql數(shù)據(jù)庫,可以輸入mysql命令了。
3、設(shè)置密碼mysql> update user set password=PASSWORD('password') where user='root';
Query OK, 2 rows affected (0.02 sec)
Rows matched: 3 Changed: 2 Warnings: 0
mysql> FLUSH PRIVILEGES;
mysql> quit
之后按正常方法連接mysql就可以了。如果不能連接,查看下mysql服務(wù)是否啟動。相關(guān)免費學(xué)習(xí)推薦:mysql視頻教程
總結(jié)
以上是生活随笔為你收集整理的mysql1044错误代码_mysql出现1044错误怎么办的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 静电势能的计算(格林函数思想以及有限元工
- 下一篇: 中文词向量的训练