1、Err1055,出現這個問題往往是在執行sql語句時候,在最后一行會出現這個問題。
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
解決方法:
在 /etc/my.cnf 文件里加上如下:
sql_mode='NO_ENGINE_SUBSTITUTION'
然后,重啟Mysql服務就可以解決了!
2、ERROR2003 、打開mysql連接工具的時候出現這個問題
"ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)"
解決方法:
這是由於mysql服務沒有啟動的原因
2.1、若是安裝版的mysql,在服務項里面啟動mysql服務就可以了。
2.2、壓縮包版的mysql,在dos窗口下進入mysql文件的bin目錄下,敲以下命令 mysqld
如果這時候還連不上就使用以下命令
D:\develop tools\MySQL Server 5.6\bin>mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 Server version: 5.6.24 MySQL Community Server (GPL) Copyright (c) 2000, 2015, 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>
3、Err 1248 嵌套子查詢問題
[Err] 1248 - Every derived table must have its own alias
解決方案:出現這種情況一般是由於嵌套子查詢的問題,對於mysql來說嵌套子查詢來說必須要加別名,否則就會報錯,在Oracle中就不會出現這種錯誤!!!!
4、Err 1241 一列對應多值問題
[Err] 1241 - Operand should contain 1 column(s)
解決方案:通常這種情況是由於,一個字段 = 多個值的問題,這時候要用到 in 字段就可以解決了。
5、Err 1045 密碼錯誤
Err 1045 - Access denied for user 'root'@'localhost' (using password:YES)
這個是登錄mysql時候密碼錯誤的問題