mysql系统命令 [英] mysql system command

查看:68
本文介绍了mysql系统命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MySQL中,想更改当前的工作目录.我试图执行:

I am in MySQL and would like to change the current working directory. I tried to execute:

mysql> system cd './my_dir'

但是,这似乎不起作用.有没有人遇到类似的问题?

However, this does not seem to work. Has anyone run into a similar problem?

推荐答案

系统将产生一个子进程来运行Shell命令.....

System is going to spawn a child process to run a shell command.....

当前工作目录是进程级别的属性....因此,您不能在子进程的父目录中更改它.这就是为什么它不起作用.

Current working directory is a process level property....so you can't change it in the parent from a child process. That's why it doesn't work.

我在 http://dev上简短地扫描了MySQL文档. .mysql.com/doc/refman/5.5/en/mysql-commands.html ,但没有看到直接CD命令更改工作目录.我认为一个有冒险精神的人可以写一个....

I briefly scanned the MySQL docs at http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html but didn't see a direct CD command that changes the working directory. I think an adventurous person could write one....

这篇关于mysql系统命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆