欢迎关注Mysql 8.0必知必会系列课程。 mysql8.0必知必会-自动化部署 https://edu.51cto.com/course/16368.html Mysq
欢迎关注Mysql 8.0必知必会系列课程。
mysql8.0必知必会-自动化部署 https://edu.51cto.com/course/16368.html Mysql8.0必知必会之参数标准化配置 Https://edu.51cto.com/course/16358.html
重新配置默认mysql>的提示符
•常用选项
•用户 (\u)
•主机 (\h)
•数据库 (\d)
•计数器 (\c)
•session ID(\C)
•完整账号名称user_name@host_name(\U)
•完整的当前日期(\D)
•设置方式:
1.环境变量
export MYSQL_PS1="(\u@\h) [\d]> "
2.命令行选项
mysql --prompt="(\u@\h) [\d]> "
3.参数文件
[mysql]
prompt=(\\u@\\h) [\\d]>\\_
4.交互方式设置
PROMPT后第一个空格后面的所有内容,都将成为提示符字符串的一部分
mysql> prompt (\u@\h) [\d]>\_
恢复原始提示符
(root@localhost) [(none)]> prompt
--结束END--
本文标题: prompt 提示符
本文链接: https://www.lsjlt.com/news/41883.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
2024-05-08
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0