自己做的网站还要买域名么,官方网址,wordpress静态文件放到cdn,小型个人网站制作如何禁止mysql记录历史命令#xff1f;在执行 SQL命令时#xff0c;mysql会将历史命令记录到~/.mysql_history文件中#xff0c;因此我们用上下键就可以翻阅历史命令了。也许某些特殊需要我们可能需要不让它记录这些历史命令#xff0c;我们可以这样作#xff1a;[rootTes…如何禁止mysql记录历史命令在执行 SQL命令时mysql会将历史命令记录到~/.mysql_history文件中因此我们用上下键就可以翻阅历史命令了。也许某些特殊需要我们可能需要不让它记录这些历史命令我们可以这样作[rootTestServer root]# ln -s /dev/null $HOME/.mysql_history这个方法来自官方手册下面是摘录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_historyYou need do this only once.