mysql提示符命令prompt
来源:互联网 发布:weui js 编辑:程序博客网 时间:2024/05/21 22:48
一句话总计:prompt命令可以在mysql提示符中显示随心所欲信息
\h: 服务器名称
\u: 用户名
\d: 数据库名称
\D: 日期
例子:
zjy@ubuntu:~$ mysql -uroot -proot --prompt '\h'
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.7.19-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
localhost
localhostprompt this_is_mysql
PROMPT set to 'this_is_mysql'
this_is_mysqlprompt \h
PROMPT set to '\h'
localhostprompt \u@\h \d \D>
PROMPT set to '\u@\h \d \D>'
root@localhost (none) Thu Aug 24 18:39:01 2017>prompt \u@\h \d>
PROMPT set to '\u@\h \d>'
root@localhost (none)>CREATE DATABASE IF NOT EXISTS test;
Query OK, 1 row affected (0.00 sec)
root@localhost (none)>USE test;
Database changed
root@localhost test>\q;
Bye
- mysql提示符命令prompt
- 命令提示符:prompt
- 个性化设置 MySQL prompt 提示符
- Linux/Unix中的命令提示符prompt
- Linux/Unix中的命令提示符prompt
- Linux/Unix中的命令提示符prompt
- zsh 自定义命令提示符(PS1/ prompt)
- 巧用mysql提示符prompt清晰管理数据库
- 修改MySQL命令提示符
- 命令提示符进入mysql
- PostgreSQL的Command Prompt(命令提示符)的基本操作
- 如何自定义命令提示符Command Prompt的快捷方式
- 如何自定义命令提示符Command Prompt的快捷方式
- 强悍的命令行 —— 命令提示符(command prompt)
- Prompt设置提示符
- 命令提示符还原MYSQL数据库
- Bash Prompt -Linux 终端提示符
- mysql --prompt一个很好用的命令
- 真Unity3d_没看完这个先不要用2dtoolkit做UI
- Java版本HTTPSQS 纯java实现、 一个jar包、支持嵌入式启动、完全兼容HTTPSQS、TPS 1w+
- Css中,transform属性的matrix值简介
- 20170824 Java——I/O,字节流与字符流,BufferedOutputStream,InputStream等(附相关练习代码)
- TcpClient和UdpClient
- mysql提示符命令prompt
- python TCP/IP 编程
- ubuntu15 解决“dpkg 被中断,您必须手工运行 ‘sudo dpkg --configur”问题
- 在Ubuntu中为root用户启用界面登录
- Linux(简单命令3)
- 实用工具软件
- 闲来无事,陶冶一下!
- 树状数组总结
- jQuery获取文本框数据