一个 mysql server 上的小技巧
来源:互联网 发布:洒店网络方案 编辑:程序博客网 时间:2024/05/19 17:50
转自http://www.linuxbyte.org/yi-ge-mysql-server-shang-de-xiao-ji-qiao.html
在my.cnf 的 mysql 端 添加如下设置
[mysql]#no-auto-rehash # faster start of mysql but no tab completitionprompt="(/u:mysql1@linuxbyte.org /R:/m)[/d]: "
会产生如下效果:
root@ubuntu:/home/hew# mysql -u hew -pEnter password: Welcome to the MySQL monitor. Commands end with ; or /g.Your MySQL connection id is 320Server version: 5.1.41-3ubuntu12.1 (Ubuntu)Type 'help;' or '/h' for help. Type '/c' to clear the current input statement. (hew:mysql1@linuxbyte.org 21:12)[(none)]: use linuxbyte #注意这里 Database changed (hew:mysql1@linuxbyte.org 21:13)[linuxbyte]: use linuxsky; #这里 Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changed (hew:mysql1@linuxbyte.org 21:13)[linuxsky]: #这里
如上所示我们可以在mysql命令行下显示当前的mysql 用户,所在主机,时间和所用的数据库。
这个在关键时刻可以让我们避免很多误操作。
- 一个 mysql server 上的小技巧
- mysql 上的小技巧
- 一个mysql小技巧
- 复制网页上的代码的一个小技巧
- 来自前端的一个上中下居中的小技巧
- xcode上整理字符串资源的一个小技巧
- 的一个小技巧
- 【mysql】关于删除数据的一个小技巧
- MySQL 字段字符串截取常用的一个小技巧
- 关于mysql isnull函数的一个小技巧
- sql server与mysql使用的一个小细节
- 手机上的小技巧
- iOS 上的小技巧
- 一个.net的小技巧
- JbossIDE的一个小技巧
- printf的一个小技巧
- WinRAR的一个小技巧
- AutoCAD的一个小技巧
- CImage显示透明PNG
- java判断IP是否在某个网段中
- PHP 多语言网站解决方案
- 一些SQLite数据的说明
- 关于 难题 arm-none-symbianelf-ld 错误
- 一个 mysql server 上的小技巧
- linux 以16进制形式打开文件
- ORACLE作业为什么会失效?
- 在linux上配置unixODBC和FreeTDS访问MS SQL Server.
- 作业
- 《杜拉拉升职记》的体会-勤奋的重要性
- SQL SERVER数据类型与C#数据类型对照表
- CFile::GetFileName与CFile::GetFileTitle导致软件的错误
- Oracle Management Server 启动和配置