MySQL 执行查询报错:Fatal error encountered during command execution

 

  MySQL执行查询时,语句中含有@rowNum查询行号的变量时报错,提示Fatal error encountered during command execution .

  在数据库连接串中添加“Allow User Variables=true;”即可执行查询成功!

  例如:“Server=192.168.1.XXX;Database=huac_pacs_cs;Uid=root;Pwd=huac123;Charset=utf8;Allow User Variables=true;”

posted @ 2017-05-24 18:12  shuanzhi  阅读(2122)  评论(0编辑  收藏  举报