show variables like '%version%';
数据库版本结果:
"protocol_version","10" "version","5.0.45-log" "version_comment","MySQL Community Server (GPL)" "version_compile_machine","i686" "version_compile_os","pc-linux-gnu"
本文介绍了一种查询MySQL数据库版本的方法,通过执行SQL语句showvariableslike'%version%',可以获取包括协议版本、数据库版本、版本注释、编译机器类型及操作系统在内的详细信息。
show variables like '%version%';
数据库版本结果:
"protocol_version","10" "version","5.0.45-log" "version_comment","MySQL Community Server (GPL)" "version_compile_machine","i686" "version_compile_os","pc-linux-gnu"
转载于:https://www.cnblogs.com/hwaggLee/p/4557179.html

被折叠的 条评论
为什么被折叠?