{"id":56480,"date":"2023-07-03T06:21:15","date_gmt":"2023-07-02T22:21:15","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=56480"},"modified":"2023-07-03T06:21:15","modified_gmt":"2023-07-02T22:21:15","slug":"linux-dbroot-password","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-dbroot-password.html","title":{"rendered":"Linux\u4e0b\u8f7b\u677e\u4fee\u6539MySQL\/MariaDB\u7684Root\u5bc6\u7801"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u5b89\u88c5 MySQL \u6216 MariaDB\uff0c\u4f60\u53ef\u4ee5\u6267\u884c mysql_secure_installation \u811a\u672c\u6765\u5b9e\u73b0\u57fa\u672c\u7684\u5b89\u5168\u8bbe\u7f6e\u3002\u5176\u4e2d\u7684\u4e00\u4e2a\u8bbe\u7f6e\u662f\u6570\u636e\u5e93\u7684 root \u5bc6\u7801 \u2014\u2014 \u8be5\u5bc6\u7801\u5fc5\u987b\u4fdd\u5bc6\uff0c\u5e76\u4e14\u53ea\u5728\u5fc5\u8981\u7684\u65f6\u5019\u4f7f\u7528\u3002\u5982\u679c\u4f60\u9700\u8981\u4fee\u6539\u5b83\uff08\u4f8b\u5982\uff0c\u5f53\u6570\u636e\u5e93\u7ba1\u7406\u5458\u6362\u4e86\u4eba \u2014\u2014 \u6216\u8005\u88ab\u89e3\u96c7\u4e86\uff01\uff09\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u4fee\u6539 MySQL \u6216 MariaDB \u7684 root \u5bc6\u7801<\/strong><\/div>\n \u4f60\u77e5\u9053 root \u5bc6\u7801\uff0c\u4f46\u662f\u60f3\u8981\u91cd\u7f6e\u5b83\uff0c\u5bf9\u4e8e\u8fd9\u6837\u7684\u60c5\u51b5\uff0c\u8ba9\u6211\u4eec\u9996\u5148\u786e\u5b9a MariaDB \u6b63\u5728\u8fd0\u884c\uff1a<\/p>\n ------------- CentOS\/RHEL 7 and Fedora 22+ ------------- \r\n# systemctl is-active mariadb\r\n------------- CentOS\/RHEL 6 and Fedora -------------\r\n# \/etc\/init.d\/mysqld status\r\n<\/pre>\n |