免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1787 | 回复: 3
打印 上一主题 下一主题

【讨论中】mysql5.5.30 system函数失效,客户端无法识别system命令 [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-08-12 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-03-29 16:16 |只看该作者 |倒序浏览
本帖最后由 cenalulu 于 2013-04-01 10:12 编辑

操作系统是win server2008 64位,装的mysql5.5.30。

  1. mysql> select  @@version;
  2. +------------+
  3. | @@version  |
  4. +------------+
  5. | 5.5.30-log |
  6. +------------+
  7. 1 row in set (0.00 sec)

  8. mysql> system dir C:;
  9. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
  10. for the right syntax to use near 'system dir C:' at line 1
  11. mysql> system(dir C:);
  12. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
  13. for the right syntax to use near 'system(dir C:)' at line 1
  14. mysql> system ping 127.0.0.1;
  15. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
  16. for the right syntax to use near 'system ping 127.0.0.1' at line 1
  17. mysql>
复制代码

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-08-12 06:20:00
2 [报告]
发表于 2013-03-29 16:22 |只看该作者
求高人答疑解惑啊

论坛徽章:
0
3 [报告]
发表于 2013-03-29 17:14 |只看该作者
本帖最后由 Shaquile 于 2013-03-29 17:16 编辑

Because system command only works on unix/linux platform.

in Linux:
  1. mysql> system dir /tmp
  2. list.2248.md5   myreschown
  3. createErr          list.17914.md5  list.22724.md5  mysql.sock
  4. list.9364.md5   scripts
复制代码
http://stackoverflow.com/questions/7457056/mysql-system-command

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-08-12 06:20:00
4 [报告]
发表于 2013-04-01 11:15 |只看该作者
@Shaquile 多谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP