{"id":290190,"date":"2024-02-29T21:20:56","date_gmt":"2024-02-29T13:20:56","guid":{"rendered":"https:\/\/lrxjmw.cn\/mhjxmpzdjm.html"},"modified":"2024-02-29T21:20:56","modified_gmt":"2024-02-29T13:20:56","slug":"mhjxmpzdjm","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mhjxmpzdjm.html","title":{"rendered":"mysql my.ini linux Linux\u73af\u5883\u4e0bMySQL\u914d\u7f6e\u5927\u63ed\u79d8"},"content":{"rendered":"
MySQL\u4e43\u662f\u4e00\u6b3e\u5e7f\u53d7\u6b22\u8fce\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf<\/a>\uff0c\u800c\u5728Linux<\/a>\u73af\u5883\u4e2d\uff0c\u5219\u9700\u901a\u8fc7\u914d\u7f6emy.ini\u6587\u4ef6\u8fdb\u884c\u76f8\u5e94\u8bbe\u5b9a\u3002\u8eab\u4e3a\u4e00\u4f4d\u8d44\u6df1\u7684\u6570\u636e\u5e93\u7ba1\u7406\u8005\uff0c\u5728\u6b64\u7ea2\u65d7linux\u5b89\u88c5\uff0c\u6211\u613f\u4e0e\u8bf8\u4f4d\u5171\u540c\u63a2\u8ba8\u5236\u5b9aMySQL my.ini\u6587\u4ef6\u65f6\u5e94\u8003\u8651\u7684\u5173\u952e\u56e0\u7d20\u53ca\u76f8\u5173\u7ecf\u9a8c\u5fc3\u5f97\u3002<\/p>\n \u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u9610\u8ff0\u4e86\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u642d\u5efaMySQL\u6570\u636e\u5e93\u65f6\uff0c\u5bf9\u4e8emy.ini\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u7684\u6b65\u9aa4\u53ca\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\uff0c\u6db5\u76d6\u5185\u5bb9\u5982\u4e0b\uff1a\u9996\u5148\u662f\u5206\u6790my.ini\u6587<\/p>\n 1.\u4e86\u89e3my.ini\u6587\u4ef6\u7684\u4f5c\u7528<\/b><\/p>\n \u8be6\u7ec6\u63a2\u8ba8My.ini\u6587\u4ef6\u5bf9\u4e8eMySQL\u6570\u636e\u5e93\u8fd0\u4f5c\u4e0e\u6027\u80fd\u7684\u5173\u952e\u4f5c\u7528\u53ca\u5176\u5f71\u54cd\u529b\u3002<\/p>\n 2.\u7f16\u8f91my.ini\u6587\u4ef6<\/b><\/p>\n <\/p>\n \u8bf7\u7ed9\u51fa\u4fee\u6539my.ini\u6587\u4ef6\u7684\u5177\u4f53\u6b65\u9aa4\u53ca\u5982\u4f55\u5728\u7cfb\u7edf\u4e2d\u67e5\u627e\u548c\u5f00\u542f\u8be5\u6587\u4ef6\u7684\u6307\u5bfc\u8bf4\u660e\u3002<\/p>\n 3.\u8bbe\u7f6e\u5b57\u7b26\u96c6<\/b><\/p>\n \u89e3\u6790\u5b57\u7b26\u96c6\u5bf9\u6570\u636e\u5b58\u50a8\u4e0e\u68c0\u7d22\u4e4b\u91cd\u8981\u6027\uff1b\u540c\u65f6\u63d0\u4f9bmy.ini\u4e2d\u8c03\u6574\u5b57\u7b26\u96c6\u8bbe\u7f6e\u6b65\u9aa4\u3002<\/p>\n <\/p>\n 4.\u8c03\u6574\u7f13\u51b2\u533a\u53c2\u6570<\/b><\/p>\n \u6df1\u5165\u5206\u6790\u5404\u7c7b\u7f13\u51b2\u533a\uff08\u4f8b\u5982innodb_buffer_pool_size\u4e0e key_buffer_size\u7b49\uff09\u7684\u529f\u80fd\u53ca\u8c03\u4f18\u63aa\u65bd\u4e2d\u6807\u9e92\u9e9flinux\uff0c\u4ee5\u4fbf\u63d0\u5347\u6570\u636e\u5e93\u6027\u80fd\u3002<\/p>\n 5.\u4f18\u5316\u67e5\u8be2\u7f13\u5b58<\/b><\/p>\n \u672c\u6587\u8be6\u8ff0\u5982\u4f55\u542f\u52a8\u4e0e\u914d\u7f6e\u67e5\u8be2\u7f13\u5b58\u8bbe\u65bd\uff0c\u4ece\u800c\u63d0\u5347\u9891\u7e41\u67e5\u8be2\u7684\u8fd0\u884c\u901f\u7387\uff0c\u4ee5\u53ca\u4e00\u7cfb\u5217\u4f18\u5316\u67e5\u8be2\u7f13\u5b58\u5b9e\u6548\u6027\u7684\u7b56\u7565\u3002<\/p>\n 6.\u914d\u7f6e\u65e5\u5fd7\u8bb0\u5f55<\/b><\/p>\n \u672c\u6587\u4e13\u95e8\u9610\u8ff0\u914d\u7f6eMySQL\u65e5\u5fd7\u8bb0\u5f55\u7684\u65b9\u5f0f\uff0c\u5177\u4f53\u6d89\u53ca\u5230\u4e86\u9519\u8bef\u65e5\u5fd7\u3001\u6162\u67e5\u8be2\u65e5\u5fd7\u53ca\u4e8c\u8fdb\u5236\u65e5\u5fd7\u7b49\u5404\u7c7b\u65e5\u5fd7\uff0c\u540c\u65f6\u8be6\u7ec6\u89e3\u6790\u4e86\u8fd9\u4e9b\u65e5\u5fd7\u5bf9\u4e8e\u95ee\u9898\u4fa6\u67e5\u4e0e\u6027\u80fd\u5256\u6790\u7684\u91cd\u8981\u6027\u3002<\/p>\n <\/p>\n 7.\u8c03\u6574\u8fde\u63a5\u6570\u9650\u5236<\/b><\/p>\n \u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u6839\u636e\u5e76\u53d1\u8bbf\u95ee\u9700\u6c42\u8c03\u6574MySQL\u7684\u6700\u5927\u8fde\u63a5\u6570\u9650\u5236\uff0c\u540c\u65f6\u4f5c\u51fa\u76f8\u5173\u8bbe\u7f6e\u5efa\u8bae\u3002<\/p>\n 8.\u91cd\u542fMySQL\u670d\u52a1<\/b><\/p>\n \u9488\u5bf9\u5982\u4f55\u91cd\u542fMySQL\u670d\u52a1\u4ee5\u4fbf\u521d\u59cb\u5316\u4fee\u6539\u540e\u7684my.ini\u6587\u4ef6\u4ee5\u53ca\u5728\u53d8\u66f4\u914d\u7f6e\u6587\u4ef6\u540e\u5982\u4f55\u8fdb\u884c\u9a8c\u8bc1\u4e0e\u6d4b\u8bd5\u8fd9\u4e24\u4e2a\u95ee\u9898\u8fdb\u884c\u8be6\u8ff0\uff0c\u4ece\u800c\u5b9e\u73b0\u4fee\u6b63\u3002<\/p>\n \u672c\u7bc7\u6587\u7ae0\u65e8\u5728\u9610\u8ff0\u5728Linux\u7cfb\u7edf\u4e2d\u914d\u7f6eMySQL my.ini\u6587\u4ef6\u7684\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u6539\u8fdb\u6570\u636e\u5e93\u6027\u80fd\u7684\u5173\u952e\u53c2\u6570\u53ca\u6280\u5de7\u3002\u76f8\u4fe1\u901a\u8fc7\u672c\u7bc7\u7ecf\u9a8c\u5206\u4eab\uff0c\u60a8\u5c06\u5728\u6709\u6548\u5730\u7ba1\u7406\u4e0e\u63d0\u5347MySQL\u6570\u636e\u5e93\u65b9\u9762\u83b7\u5f97\u6709\u529b\u652f\u6301\u3002<\/p>\n \u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n