+ -
当前位置:首页 → 问答吧 → 如何使mysql命令行界面的输出,不带由+-|组成的边框。

如何使mysql命令行界面的输出,不带由+-|组成的边框。

时间:2011-08-04

来源:互联网

比如:
输出为
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
| zshinfo |
+--------------------+

只需:
information_schema 
mysql  
performance_schema 
test  
zshinfo  


即可。

作者: GGeneral2   发布时间: 2011-08-04

mysql -N -e 'show databases'> test.txt

less test.txt

作者: rucypli   发布时间: 2011-08-04

mysql -uroot -p123 -N -s
进入MYSQL后,再运行show databases看看结果

作者: wwwwb   发布时间: 2011-08-04