• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > mysql prompt一个特别好用的命令

mysql prompt一个特别好用的命令

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了mysql prompt,command prompt命令,prompt命令,prompt,prompt是什么意思等相关知识,希望本文的分享对您有所帮助

想必大家在命令行操作mysql的时候会十分发愁现在的操作的是那个数据库吧,至少我就纠结过,可能您会说我打一条命令不就知道了,是的这样做确实可以的。
可是今儿给大家介绍个好用的命令--prompt

Copyright (c) 2000, 2011, 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.

root@localhost:(none) 08:23:32>use test;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
root@localhost:test 08:23:44>exit;
</div>
这样做的好处就是让我们大家在操作数据库时更加方便快捷。

您也可以在在my.cnf配置文件里进行配置:

default-character-set=utf8
</div>

Copyright (c) 2000, 2011, 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.

mysql(root@localhost:(none))>use test;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql(root@localhost:test)>
</div>
这里也给出需要的一些个选项供大家参考。

Option Description
\c A counter that increments for each statement you issue
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • mysql prompt一个特别好用的命令
  • mysql prompt的用法详解
  • mysql 控制台程序的提示符 prompt 字符串设置
  • 巧用mysql提示符prompt清晰管理数据库的方法

相关文章

  • 2018-12-05浅谈 恢复技术 核心架构设计
  • 2018-12-05SQL数据操作基础(中级)6
  • 2018-12-05MySQL简单主从方案暴露问题
  • 2018-12-05使用mysql的disctinct group by查询不重复记录
  • 2018-12-05ORACLE应用经验(2)
  • 2017-05-11使用Rotate Master实现MySQL 多主复制的实现方法
  • 2017-08-07MySql按周,按月,按日分组统计数据
  • 2017-05-11分享20个数据库设计的最佳实践
  • 2017-05-11mysql 字符串函数收集比较全
  • 2018-12-05SqlServer参数化查询之where in和like实现详解

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • SQL Server 7.0 入门(一)
    • navicat 8 创建数据库与创建用户分配权限图文方法
    • SQL MSSQL 常用代码大全
    • 将MySQL数据库移植为PostgreSQL
    • mysql Load Data InFile 的用法
    • Mysql高级之索引
    • Mysql数据备份之逻辑备份的恢复方法
    • MySQL数据库迁移data文件夹位置详细步骤
    • mysql修改数据库编码(数据库字符集)和表的字符编码的方法
    • mysql ON DUPLICATE KEY UPDATE语句示例

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有