linux\u4e0b\u67e5\u770bmysql\u7248\u672c<\/strong>\uff0c\u5e76\u6253\u5f00\u540e\u8fdb\u884c\u641c\u7d22\u5373\u53ef\u627e\u5230\u76f8\u5e94\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n\u56db\u3001\u901a\u8fc7rpm\u547d\u4ee4\u67e5\u770b<\/p>\n
\u5982\u679c\u60a8\u662f\u901a\u8fc7yum\u5b89\u88c5\u7684MySQL\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528rpm\u547d\u4ee4\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n
```shell<\/p>\n
rpm -qa | grep mysql<\/p>\n
```<\/p>\n
\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002<\/p>\n
\u4e94\u3001\u901a\u8fc7dpkg\u547d\u4ee4\u67e5\u770b<\/p>\n
\u5982\u679c\u60a8\u662f\u901a\u8fc7apt-get\u5b89\u88c5\u7684MySQL\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528dpkg\u547d\u4ee4\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n
```shell<\/p>\n
dpkg -l| grep mysql<\/p>\n
```<\/p>\n
\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002<\/p>\n
\u516d\u3001\u901a\u8fc7phpMyAdmin\u67e5\u770b<\/p>\n
<\/p>\n
\u5982\u679c\u60a8\u5df2\u7ecf\u5b89\u88c5\u4e86phpMyAdmin\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7phpMyAdmin\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u53ea\u9700\u8981\u767b\u5f55phpMyAdmin\u540elinux\u6570\u636e\u6062\u590d\uff0c\u5728\u4e3b\u754c\u9762\u4e2d\u627e\u5230“Server version”\u9009\u9879\u5373\u53ef\u3002<\/p>\n
\u4e03\u3001\u901a\u8fc7navicat for MySQL\u67e5\u770b<\/p>\n
\u5982\u679c\u60a8\u5df2\u7ecf\u5b89\u88c5\u4e86navicat for MySQL\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7navicat for MySQL\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u53ea\u9700\u8981\u8fde\u63a5\u4e0a\u76f8\u5e94\u7684\u6570\u636e\u5e93\u540e\uff0c\u5728\u4e3b\u754c\u9762\u4e2d\u627e\u5230“Server version”\u9009\u9879\u5373\u53ef\u3002<\/p>\n
\u516b\u3001\u901a\u8fc7JDBC\u9a71\u52a8\u7a0b\u5e8f\u83b7\u53d6<\/p>\n
\u5982\u679c\u60a8\u6b63\u5728\u4f7f\u7528Java\u7f16\u7a0b\u8bed\u8a00linux\u662f\u4ec0\u4e48\u7cfb\u7edf\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b89\u88c5\u4e86JDBC\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7JDBC\u9a71\u52a8\u7a0b\u5e8f\u83b7\u53d6MySQL\u7248\u672c\u4fe1\u606f\u3002\u53ea\u9700\u8981\u5728Java\u4ee3\u7801\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u5373\u53ef\uff1a<\/p>\n
```java<\/p>\n
Connection conn = DriverManager.getConnection("jdbc:mysql:\/\/localhost:3306\/test","root","password");<\/p>\n
DatabaseMetaData metaData = conn.getMetaData();<\/p>\n
System.out.println("\u6570\u636e\u5e93\u4ea7\u54c1\u540d\u79f0\uff1a"+ metaData.getDatabaseProductName());<\/p>\n
System.out.println("\u6570\u636e\u5e93\u4ea7\u54c1\u7248\u672c\u53f7\uff1a"+ metaData.getDatabaseProductVersion());<\/p>\n
```<\/p>\n
\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002<\/p>\n
\u4e5d\u3001\u603b\u7ed3<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e869\u79cd\u65b9\u6cd5\u6765\u5728Linux\u7cfb\u7edf\u4e0b\u67e5\u770bMySQL\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u4f7f\u7528mysql\u547d\u4ee4\u3001mysqld\u547d\u4ee4\u3001\u67e5\u8be2\u914d\u7f6e\u6587\u4ef6\u3001rpm\u547d\u4ee4\u3001dpkg\u547d\u4ee4\u3001phpMyAdmin\u3001navicat for MySQL\u548cJDBC\u9a71\u52a8\u7a0b\u5e8f\u7b49\u65b9\u6cd5\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4e00\u3001\u4f7f\u7528mysql\u547d\u4ee4\u67e5\u770b\u9996\u5148\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7mysql\u547d\u4ee4\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002\u9664\u4e86mysql\u547d\u4ee4\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528mysqld\u547d\u4ee4\u6765\u67e5\u770bMySQL\u7248\u672c\u4fe1\u606f\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002\u53ea\u9700\u8981\u627e\u5230f\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u6253\u5f00\u540e\u8fdb\u884c\u641c\u7d22\u5373\u53ef\u627e\u5230\u76f8\u5e94\u7684\u7248\u672c\u4fe1\u606f\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u5230MySQL\u7684\u7248\u672c\u4fe1\u606f\u4e86\u3002\u5982\u679c\u60a8\u6b63\u5728\u4f7f\u7528Java\u7f16\u7a0b\u8bed\u8a00\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b89\u88c5\u4e86JDBC\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7JDBC\u9a71\u52a8\u7a0b\u5e8f\u83b7\u53d6MySQL\u7248\u672c\u4fe1\u606f\u3002<\/p>\n","protected":false},"author":1,"featured_media":266679,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-266678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=266678"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/266679"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=266678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=266678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=266678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}