进入 /etc/my.cnf 下配置文件,
vim /etc/my.cnf
添加以下内容:
[mysql]
prompt=mysql8.0 [\\d]>
重启服务
systemctl restart mysqld.service
进入数据库,使用一个库,前面就可以看见提提示
进入 /etc/my.cnf 下配置文件,
vim /etc/my.cnf
添加以下内容:
[mysql]
prompt=mysql8.0 [\\d]>
重启服务
systemctl restart mysqld.service
进入数据库,使用一个库,前面就可以看见提提示