亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 11763 | 回復(fù): 7
打印 上一主題 下一主題

mysql的歷史命令 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-09-11 16:37 |只看該作者 |倒序瀏覽
在mysql中,可以按向上方向鍵來調(diào)出以前的命令,如何取消該功能?mysql是不是有一個類似操作系統(tǒng)的
.bash_history文件來記錄歷史命令?如果有,該文件的位置是?謝謝了!

論壇徽章:
0
2 [報告]
發(fā)表于 2006-09-11 17:43 |只看該作者

回復(fù) 1樓 lifeistrue 的帖子

在你所使用的用戶的用戶目錄下
.mysql_history

論壇徽章:
0
3 [報告]
發(fā)表于 2006-09-11 17:48 |只看該作者
OK,謝謝樓上的!

論壇徽章:
0
4 [報告]
發(fā)表于 2006-09-11 17:50 |只看該作者
呵呵,一個新的問題,mysql有命令清空歷史命令嗎?在不手工編輯.mysql_history的情況下

論壇徽章:
0
5 [報告]
發(fā)表于 2006-09-11 17:55 |只看該作者

回復(fù) 4樓 lifeistrue 的帖子

On Unix, the mysql client writes a record of executed statements to a history file. By default, the history file is named .mysql_history and is created in your home directory. To specify a different file, set the value of the MYSQL_HISTFILE environment variable.

If you do not want to maintain a history file, first remove .mysql_history if it exists, and then use either of the following techniques:

Set the MYSQL_HISTFILE variable to /dev/null. To cause this setting to take effect each time you log in, put the setting in one of your shell's startup files.

Create .mysql_history as a symbolic link to /dev/null:

shell> ln -s /dev/null $HOME/.mysql_history

You need do this only once.

論壇徽章:
0
6 [報告]
發(fā)表于 2006-09-11 19:49 |只看該作者

回復(fù) 5樓 dangk 的帖子

非常詳細的說明!謝謝!

論壇徽章:
0
7 [報告]
發(fā)表于 2006-09-12 17:30 |只看該作者

回復(fù) 6樓 lifeistrue 的帖子

是抄手冊的,赫赫

論壇徽章:
5
IT運維版塊每日發(fā)帖之星
日期:2015-11-10 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-07-19 06:20:00JAVA
日期:2016-10-25 16:03:37PHP
日期:2016-10-25 16:03:37Python
日期:2016-10-25 16:03:37
8 [報告]
發(fā)表于 2015-11-04 11:07 |只看該作者
cat  ~/.mysql_history
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP