【经验分享】如何修改obclient提示符

obclient(root@test)[test]001733>prompt obclient(\u@\T)[\d]\r\m\s>
PROMPT set to 'obclient(\u@\T)[\d]\r\m\s>'
obclient(root@test)[test]121748>select now();
+---------------------+
| now()               |
+---------------------+
| 2025-11-10 00:18:09 |
+---------------------+
1 row in set (0.024 sec)

其他格式参考:https://dev.mysql.com/doc/refman/5.7/en/mysql-commands.html

1 个赞

可以显示时分秒

1 个赞