Fatal error encountered during command execution

MySQL + .net + EF 开发环境,调用一处sql语句报错:

Fatal error encountered during command execution
[sql] view plain copy print?
SELECT @r AS cateid,(SELECT @r := b.ParentId FROM cmscontentcategory b WHERE b.id = cateid) AS parentid
FROM (SELECT @r := ‘75422ccd151c484291013d72f9a98cd7‘) vars,cmscontentcategory h
WHERE @r <> ‘sys‘;
查看详细错误:
Parameter ‘@r‘ must be defined
查看国外资料发现一个方法,在mysql数据连接字符串增加Allow User Variables=True

Database=testdb;Data Source=localhost;User Id=root;Password=hello;Allow User Variables=True

ok,搞定。

时间: 2024-11-05 01:39:57

Fatal error encountered during command execution的相关文章

MYSQL报Fatal error encountered during command execution.错误的解决方法

{MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MyS

Fatal error: Maximum execution time of 30 seconds exceeded in

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\code\curl\work\work3.php on line 38 一看就是超时.懒人比较喜欢第二种解决方法. 看http://cn.php.net/manual/zh/info.configuration.php#ini.max-execution

PHP超时提示Fatal error: Maximum execution time of 30,解决方案

PHP执行超时提示如下:Fatal error: Maximum execution time of 30 seconds exceeded in D:\php\AppServ\www\sum3\test.php on line 5这个错误是说你的php执行时间越过了配置文件中设置的最大执行时间30秒钟 这不是你的程序本身存在的问题,而是系统的配置文件问题,如果你的网速快的话,可能再执行一次就不会出现这种错误了,不过有了出现这种问题也可以进行一定的修改,PHP执行超时解决方案方法有三种:1.修改

phpMyAdmin出现Fatal error: Maximum execution time of 300 seconds

在mysql用phpMyAdmin导入大数据的时候出现:Fatal error: Maximum execution time of 300 seconds exceeded in D:/查了很多文章都说是把php.ini里面的max_execution_time改大就可以,可我改了还是不行,后来查出原来是phpmyadmin自己的限制.找到phpMyAdmin目录下config文件,具体位置可能不一样.wamp集成环境对应在D:\wamp\apps\phpmyadmin3.2.0.1\libr

安装MySQLdb模块遭遇&quot;fatal error: my_config.h: No such file or directory&quot;的处理

Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this: [[email protected] script]# python Xtrabackup.py Traceback (most recent call last): File "backup.py"

Ubuntu 13.10 PHP 5.5.x mcrypt missing – Fatal Error: Undefined function mcrypt_encrypt()!

[原文]http://www.tuicool.com/articles/goto?id=myM7veR I had updgraded my Ubuntu from 13.04 to 13.10 last week and everything went quite good. The only problems that I faced as developer are: Apache 2.4 was not working with default previous installation

fatal error: &#39;libxml/xmlversion.h&#39; file not found

问题: MACOS安装scrapy时,安装lxml出现错误 In file included from src/lxml/lxml.etree.c:232: /tmp/easy_install-O2UfP7/lxml-3.4.0/src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found #include "libxml/xmlversion.h"          ^

【python】win10中python3.5.2输入pip出现Fatal error in launcher: Unable to create process using &#39;&quot;&#39;

系统:windows 10 python版本:3.5.2 出现的错误如下: C:\Users\zhuxy>pip list Fatal error in launcher: Unable to create process using '"' 尝试的解决办法: C:\Users\zhuxy>python -m pip install package Collecting package Downloading package-0.1.1.tar.gz Complete output

fatal error: Python.h: No such file or directory 解决

[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux软件: 系统python默认版本2.7 PyCharm默认版本Python3.5场景: Build pycrypto-2.6.1 失败提示: building 'Crypto.PublicKey._fastmath' extension x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -Wstrict-p