{"id":258285,"date":"2022-12-24T09:16:22","date_gmt":"2022-12-24T01:16:22","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=258285"},"modified":"2022-11-29T10:17:20","modified_gmt":"2022-11-29T02:17:20","slug":"mysql-cnf-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mysql-cnf-linux.html","title":{"rendered":"\u89e3\u6790MySQL \u914d\u7f6e\u6587\u4ef6 my.cnf \/ my.ini \u533a\u522b"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5145\u5206\u7406\u89e3 MySQL \u914d\u7f6e\u6587\u4ef6\u4e2d\u5404\u4e2a\u53d8\u91cf\u7684\u610f\u4e49\u5bf9\u6211\u4eec\u6709\u9488\u5bf9\u6027\u7684\u4f18\u5316 MySQL \u6570\u636e\u5e93\u6027\u80fd\u6709\u975e\u5e38\u5927\u7684\u610f\u4e49\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86MySQL \u914d\u7f6e\u6587\u4ef6 my.cnf \/ my.ini \u533a\u522b,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5145\u5206\u7406\u89e3 MySQL \u914d\u7f6e\u6587\u4ef6\u4e2d\u5404\u4e2a\u53d8\u91cf\u7684\u610f\u4e49\u5bf9\u6211\u4eec\u6709\u9488\u5bf9\u6027\u7684\u4f18\u5316 MySQL \u6570\u636e\u5e93\u6027\u80fd\u6709\u975e\u5e38\u5927\u7684\u610f\u4e49\u3002\u6211\u4eec\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u6570\u636e\u91cf\u7ea7\uff0c\u4e0d\u540c\u7684\u751f\u4ea7\u73af\u5883\u60c5\u51b5\u5bf9 MySQL \u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n \u4e00\u3001\u914d\u7f6e\u6587\u4ef6my.ini\u6216my.cnf\u7684\u4f4d\u7f6e<\/strong><\/div>\n Windows \u548c Linux \u4e0b\u7684 MySQL \u914d\u7f6e\u6587\u4ef6\u7684\u540d\u5b57\u548c\u5b58\u653e\u4f4d\u7f6e\u90fd\u662f\u4e0d\u540c\u7684\uff1a<\/p>\n 1\u3001WIndows \u4e0b MySQL \u914d\u7f6e\u6587\u4ef6\u662f my.ini \u5b58\u653e\u5728 MySQL \u5b89\u88c5\u76ee\u5f55\u7684\u6839\u76ee\u5f55\u4e0b\uff1b<\/p>\n 2\u3001Linux \u4e0b MySQL \u914d\u7f6e\u6587\u4ef6\u662f my.cnf \u5b58\u653e\u5728 \/etc\/my.cnf\u3001\/etc\/mysql\/my.cnf\u3002\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7 find \u547d\u4ee4\u8fdb\u884c\u67e5\u627e\u3002<\/p>\n 1)find \/etc -name my.cnf\u3000\u3000 --\u5728\/etc\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6my.cnf\r\n\u30002)find \/etc -name '*cnf*'\u3000\u3000--\u4f7f\u7528\u901a\u914d\u7b26*(0\u6216\u8005\u4efb\u610f\u591a\u4e2a)\u3002\u8868\u793a\u5728\/etc\u76ee\u5f55\u4e0b\u67e5\u627e\u6587\u4ef6\u540d\u4e2d\u542b\u6709\u5b57\u7b26\u4e32\u2018cnf'\u7684\u6587\u4ef6\r\n\u30003)find \/ -name my.cnf\u3000\u3000 --\u5728\u6839\u76ee\u5f55\u4e0b\u67e5\u627e\u6587\u4ef6my.cnf\uff0c\u8868\u793a\u5728\u6574\u4e2a\u786c\u76d8\u67e5\u627e\r\n\u30004)find . -name 'cnf*' \u3000\u3000 --\u8868\u793a\u5f53\u524d\u76ee\u5f55\u4e0b\u67e5\u627e\u6587\u4ef6\u540d\u5f00\u5934\u662f\u5b57\u7b26\u4e32\u2018cnf'\u7684\u6587\u4ef6<\/pre>\n |