{"id":55762,"date":"2023-06-29T17:55:13","date_gmt":"2023-06-29T09:55:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=55762"},"modified":"2023-06-29T17:55:13","modified_gmt":"2023-06-29T09:55:13","slug":"linux-reset-password","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-reset-password.html","title":{"rendered":"Linux \u4e2d\u91cd\u7f6e\u6570\u636e\u5e93\u7684 root \u5bc6\u7801\u7684\u6280\u5de7"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5176\u4e2d\u4e00\u9879\u662f\u8bbe\u7f6e\u6570\u636e\u5e93 root \u5e10\u6237\u7684\u5bc6\u7801 - \u4f60\u5fc5\u987b\u4fdd\u6301\u79c1\u5bc6\uff0c\u5e76\u4ec5\u5728\u7edd\u5bf9\u9700\u8981\u65f6\u4f7f\u7528\u3002\u5982\u679c\u4f60\u5fd8\u8bb0\u4e86\u5bc6\u7801\u6216\u9700\u8981\u91cd\u7f6e\u5bc6\u7801\uff08\u4f8b\u5982\uff0c\u5f53\u6570\u636e\u5e93\u7ba1\u7406\u5458\u6362\u4eba\u6216\u88ab\u88c1\u5458\uff01\uff09\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4f1a\u6d3e\u4e0a\u7528\u573a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u8bbe\u7f6e MySQL \u6216 MariaDB \u6570\u636e\u5e93\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c mysql_secure_installation \u6765\u5b9e\u73b0\u57fa\u672c\u7684\u5b89\u5168\u8bbe\u7f6e\u3002<\/p>\n <\/p>\n \u5176\u4e2d\u4e00\u9879\u662f\u8bbe\u7f6e\u6570\u636e\u5e93 root \u5e10\u6237\u7684\u5bc6\u7801 - \u4f60\u5fc5\u987b\u4fdd\u6301\u79c1\u5bc6\uff0c\u5e76\u4ec5\u5728\u7edd\u5bf9\u9700\u8981\u65f6\u4f7f\u7528\u3002\u5982\u679c\u4f60\u5fd8\u8bb0\u4e86\u5bc6\u7801\u6216\u9700\u8981\u91cd\u7f6e\u5bc6\u7801\uff08\u4f8b\u5982\uff0c\u5f53\u6570\u636e\u5e93\u7ba1\u7406\u5458\u6362\u4eba\u6216\u88ab\u88c1\u5458\uff01\uff09\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4f1a\u6d3e\u4e0a\u7528\u573a\u3002\u6211\u4eec\u5c06\u89e3\u91ca\u5982\u4f55\u5728 Linux \u4e2d\u91cd\u7f6e\u6216\u6062\u590d MySQL \u6216 MariaDB \u7684 root \u5bc6\u7801\u3002<\/p>\n \u5efa\u8bae\u9605\u8bfb\uff1a\u66f4\u6539 MySQL \u6216 MariaDB \u7684 root \u5bc6\u7801\u3002<\/p>\n \u867d\u7136\u6211\u4eec\u5c06\u5728\u672c\u6587\u4e2d\u4f7f\u7528 MariaDB\uff0c\u4f46\u8fd9\u4e9b\u8bf4\u660e\u540c\u6837\u4e5f\u9002\u7528\u4e8e MySQL\u3002<\/p>\n \u6062\u590d MySQL \u6216\u8005 MariaDB \u7684 root \u5bc6\u7801<\/strong><\/div>\n \u5f00\u59cb\u4e4b\u524d\uff0c\u5148\u505c\u6b62\u6570\u636e\u5e93\u670d\u52a1\u5e76\u68c0\u67e5\u670d\u52a1\u72b6\u6001\uff0c\u6211\u4eec\u5e94\u8be5\u53ef\u4ee5\u770b\u5230\u5148\u524d\u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n ------------- SystemD ------------- \r\n# systemctl stop mariadb\r\n------------- SysVinit -------------\r\n# \/etc\/init.d\/mysqld stop\r\n<\/pre>\n |