首页 > 编程知识 正文

数据库客户端工具有哪些,mysql客户端管理工具

时间:2023-05-03 10:01:37 阅读:49048 作者:2142

对于mysql客户端工具,与sqlplus类似,它通过为用户提供命令行界面来操作和管理mysql服务器。 本文总结了常见的选项和一些基本的配置技巧。

通用选项缩写选项说明- eexecute=name运行指定的命令后退出通用场景。

内置在脚本的后者的程序中使用。 我不想交互使用msql客户端。 执行指定的语句并退出。

使用案例:

# MySQL-uroot-pliumiaocn-e ' desc MySQL.time _ zone ' MySQL 3360 [ warning ] usingapasswordonthecommandlineinterfacecanbeinsecure-------------------------------- ------------------------------------------.---------------------------------------------- ------------------------------------------.---------------------------------------------- extra---------------------------------------------------------- -。 ------------------------------------------.---------------------------------------------- ------------------unsigned|no|pri|null|auto _ increment|| use _ leap _ seconds (未指定)

# MySQL-uroot-pliumiaocn-e-e ' desc MySQL.time _ zone ' MySQL : [ warning ] usingapasswordonthecommandlineinterfation * * * field 3360 time _ zone _ id type unsigned null 3360 nokey : pri default : null extra : auto * * * * * * * * * * *。 * field : use _ leap _ seconds type : enum (y (,n ) ) null : nokey : default : n extra 3360 #可选缩写选项说明- h

可以用于在HTML文件中直接生成以HTML页面或XML格式运行的流程

使用案例:

# MySQL-uroot-pliumiaocn-h-e ' desc MySQL.time _ zone ' MySQL : [ warning ] usingapasswordonthecommandlineinterfation tht htype/ththnull/tht HKEY/ththdefault trtrt dtime _ zone _ id/tdtd int (10 ) unsigned/tdtd no/TD tdpri/tdtd null /

可选缩写可选可选说明--prompt=name执行提示信息的一般场景:

修改默认mysql的提示信息与Linux上的prompt一样,可以用于呈现特定的信息,如当前用户、正在使用的数据库信息和时间信息,从而为操作者提供一定的注意和警告

使用案例:将默认mysql提示更改为hello to liumiaocn mysql。

# MySQL-uroot-pliumiaocn-- prompt=' hellotoliumiaocnmysql ' MySQL : [ warning ] usingapasswordonthecommandlineinterer g.yourmysqlconnectionidis 45618服务器版本:5.7.16 mysqlcommunityserver (GPL ) Copyright (c ) c ) 2000、2016, Oracle and/oritsaffiliates.all rights reserved.oracleisaregisteredtrademarkoforaclecorporationand/oritsaffiliates.other 以下是c ' toclearthecurrentinputstatement.hellotoliumiaocnmysql的更常用用法:

# MySQL-uroot-pliumiaocn-- prompt=' [u @h (d )r:(m: ) () ] )。 s ) MySQL'MySQL:[warning] usingapasswordonthecommandlineinterfacecanbeinsecure.welcometothemysqlmonitor.commandseecure.welcometothemysqlmonitor . g.yourmysqlconnectionidis 47427服务器版本:5.7.16 mysqlcommunityserver (GPL ) Copyright (c ) c ) 2000、2016, Oracle and/oritsaffiliates.all rights reserved.oracleisaregisteredtrademarkoforaclecorporationand/oritsaffiliates.other c ' toclearthecurrentinputstatement.[根@ localhost ((none ) 17:24:04] mysqlusemysqlreadingtableinformationforcompletionoftableandcolumnnamesyoucanturnoffthisfeaturetogetaquickerstartupwith-adata ost (MySQL (17336024336011 ) MySQL时间相关信息转义序列说明D完整的日期和时间yYY格式的年份yyyy格式的年份o以数字显示的月份o以字母显示的月份w r12小时标记u当前用户名u包含主机名的用户名h当前主机d当前使用的数据库v服务器版本号p当前端口号或套接字文件名c当前输入的行数特殊字符转义序列说明t选项卡

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。