{"id":4570,"date":"2019-08-16T23:42:25","date_gmt":"2019-08-16T15:42:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4570"},"modified":"2019-08-16T23:42:27","modified_gmt":"2019-08-16T15:42:27","slug":"mysql","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mysql","title":{"rendered":"mysql\u547d\u4ee4 – MySQL\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u5de5\u5177"},"content":{"rendered":"\n

mysql\u547d\u4ee4\u662fMySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5b83\u5de5\u4f5c\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\uff0c\u5b8c\u6210\u5bf9\u8fdc\u7a0bMySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u64cd\u4f5c\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:\u00a0<\/strong> mysql [\u53c2\u6570] [\u6570\u636e\u5e93]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-h<\/td>MySQL\u670d\u52a1\u5668\u7684ip\u5730\u5740\u6216\u4e3b\u673a\u540d<\/td><\/tr>
-u<\/td>\u8fde\u63a5MySQL\u670d\u52a1\u5668\u7684\u7528\u6237\u540d<\/td><\/tr>
-e<\/td>\u6267\u884cMySQL\u5185\u90e8\u547d\u4ee4<\/td><\/tr>
-p<\/td>\u8fde\u63a5MySQL\u670d\u52a1\u5668\u7684\u5bc6\u7801<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u8fde\u63a5\u672c\u5730MySQL\u670d\u52a1\u5668\uff0c\u5e76\u6253\u5f00\u6570\u636e\u5e93\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mysql -h localhost -u root -p linuxcool<\/pre>\n\n\n\n

\u8fde\u63a5\u8fdc\u7a0bMySQL\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mysql -h 192.168.60.60 -u root -p  linuxcool <\/pre>\n","protected":false},"excerpt":{"rendered":"

mysql\u547d\u4ee4\u662fMySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5b83\u5de5\u4f5c\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\uff0c\u5b8c\u6210\u5bf9\u8fdc\u7a0bMySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u64cd […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4570"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4570"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4570\/revisions"}],"predecessor-version":[{"id":4637,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4570\/revisions\/4637"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}