1、Err1055,出现这个问题往往是在执行sql语句时候,在最后一行会出现这个问题。
1
2
3
|
[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连接工具的时候出现这个问题
1
|
"ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)"
|
解决方法:
这是由于mysql服务没有启动的原因
2.1、若是安装版的mysql,在服务项里面启动mysql服务就可以了。
2.2、压缩包版的mysql,在dos窗口下进入mysql文件的bin目录下,敲以下命令 mysqld
如果这时候还连不上就使用以下命令
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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 嵌套子查询问题
1
|
[Err] 1248 - Every derived table must have its own alias
|
解决方案:出现这种情况一般是由于嵌套子查询的问题,对于mysql来说嵌套子查询来说必须要加别名,否则就会报错,在Oracle中就不会出现这种错误!!!!
4、Err 1241 一列对应多值问题
1
|
[Err] 1241 - Operand should contain 1 column (s)
|
解决方案:通常这种情况是由于,一个字段 = 多个值的问题,这时候要用到 in 字段就可以解决了。
5、Err 1045 密码错误
1
|
Err 1045 - Access denied for user 'root' @ 'localhost' (using password :YES)
|
这个是登录mysql时候密码错误的问题