估计 MySQL 某些版本有这个毛病。
1
2
3
4
5
6
7
8
9
10
11
mysql>select SUM ( sale_money ) FROM sale_report
ERROR 1630 (42000): FUNCTION test.SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
去除空格以后:
mysql>select SUM(sale_money) FROM sale_report
+-----------------+
| SUM(sale_money) |
+-----------------+
| 741407.00 |
+-----------------+
1 row in set (0.00 sec)
哈哈, 这个情况我也遇到过。
原因估计是 SUM 后面,不能有空格的缘故……
估计 MySQL 某些版本有这个毛病。
mysql> select SUM ( sale_money ) FROM sale_report
ERROR 1630 (42000): FUNCTION test.SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
去除空格以后:
mysql> select SUM(sale_money) FROM sale_report
+-----------------+
| SUM(sale_money) |
+-----------------+
| 741407.00 |
+-----------------+
1 row in set (0.00 sec)
1.Starting MySQL.Manager of pid-file quit without updating fi[失败]
关于这个错误原因有很多,最大的可能是没有创建测试数据库,可以用/usr/local/mysql/scripts/mysql_install_db –user=mysql命令进行创建;另外一个原因可能是权限设置问题,需要赋予mysql的data权限,可以用chmod -R 命令。
2.FATAL ERROR: Could not find /home/mysql/bin/my_print_defaults If you are using a binary release,you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run ‘make install’ first.
这个错误,是没有指明mysql的data路径导致的,可以很简单的进行解决:
vim /etc/my.cnf
在[mysqld] 后面加上路径:
basedir = /usr/local/mysql
datadir =/opt/data;
3.-bash: mysql: command not found
用mysql命令进行登陆mysql报错,原因是没有设置环境变量,需要设置,或者进入到bin目录进行登陆cd /usr/local/mysql/bin
mysql -u root
4.ERROR 1130: Host ’192.168.1.3′ is not allowed to connect to this MySQL server
用mysql远程工具链接数据库报错,这个错误原因是没有开放远程链接功能,可以在mysql里面输入如下命令进行解决:GRANT ALL PRIVILEGES ON *.* TO ’root‘@’%' IDENTIFIED BY ’password’ WITH GRANT OPTION
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)