{"id":6944,"date":"2020-04-29T19:20:38","date_gmt":"2020-04-29T11:20:38","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6944"},"modified":"2020-04-29T19:20:39","modified_gmt":"2020-04-29T11:20:39","slug":"mysqld-safe","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mysqld-safe","title":{"rendered":"mysqld_safe\u547d\u4ee4 – MySQL\u670d\u52a1\u5668\u542f\u52a8\u811a\u672c"},"content":{"rendered":"\n
\u4f7f\u7528mysqld_safe\u547d\u4ee4\u53ef\u4ee5\u542f\u52a8MySQL\u670d\u52a1\u5668\u3002mysqld_safe\u589e\u52a0\u4e86\u4e00\u4e9b\u5b89\u5168\u529f\u80fd\uff0c\u6bd4\u5982\u53d1\u751f\u9519\u8bef\u65f6\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\uff0c\u5e76\u8bb0\u5f55\u8fd0\u884c\u4fe1\u606f\u5230\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a <\/strong>mysqld_safe [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u542f\u52a8MySQL\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n \u542f\u52a8MySQL\u670d\u52a1\u5668\u4f7f\u75283306:<\/p>\n\n\n\n \u6307\u5b9a\u542f\u52a8mysql\u670d\u52a1\u5668\u4f7f\u7528\u7684\u7cfb\u7edf\u767b\u5f55\u7528\u6237\u662fzx\uff1a<\/p>\n\n\n\n \u4f7f\u7528mysqld_safe\u547d\u4ee4\u53ef\u4ee5\u542f\u52a8MySQL\u670d\u52a1\u5668\u3002mysqld_safe\u589e\u52a0\u4e86\u4e00\u4e9b\u5b89\u5168\u529f\u80fd\uff0c\u6bd4\u5982\u53d1\u751f\u9519\u8bef […]<\/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\/6944"}],"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=6944"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6944\/revisions"}],"predecessor-version":[{"id":7197,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6944\/revisions\/7197"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--port<\/td> \u76d1\u542cTCP\/IP\u8fde\u63a5\u65f6\uff0c\u670d\u52a1\u5668\u5e94\u8be5\u4f7f\u7528\u7684\u7aef\u53e3\u53f7\u3002<\/td><\/tr> --user<\/td> \u8fd0\u884cmysqld\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u767b\u5f55\u7528\u6237<\/td><\/tr> --log-error<\/td> \u5199\u5165\u9519\u8bef\u65e5\u5fd7\u5230\u6307\u5b9a\u6587\u4ef6<\/td><\/tr> --pid-file<\/td> \u8fdb\u7a0bID\u6587\u4ef6\u7684\u8def\u5f84\u540d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# mysqld_safe<\/pre>\n\n\n\n
[root@linuxcool ~]# mysqld_safe --port 3306<\/pre>\n\n\n\n
[root@linuxcool ~]# mysqld_safe --user zx<\/pre>\n","protected":false},"excerpt":{"rendered":"