{"id":77648,"date":"2023-09-06T05:37:14","date_gmt":"2023-09-05T21:37:14","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=77648"},"modified":"2023-09-06T05:37:14","modified_gmt":"2023-09-05T21:37:14","slug":"linux-check-mysql","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-check-mysql.html","title":{"rendered":"Linux\u4e0a\u68c0\u67e5MySQL\u6570\u636e\u8868\u7684\u5b58\u50a8\u5f15\u64ce\u7c7b\u578b\u4e09\u677f\u65a7"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | MySQl\u4e3b\u8981\u4f7f\u7528\u4e24\u79cd\u5b58\u50a8\u5f15\u64ce\uff1aMyISAM \u548c Innodb\u3002MyISAM\u662f\u975e\u4e8b\u52a1\u7684\uff0c\u56e0\u6b64\u62e5\u6709\u8bfb\u53d6\u66f4\u5feb\uff0c\u7136\u800cInnoDB\u5b8c\u5168\u652f\u6301\u7ec6\u9897\u7c92\u5ea6\u7684\u4e8b\u52a1\u9501\u5b9a\uff08\u6bd4\u5982\uff1acommit\/rollback\uff09\u3002\u5f53\u4f60\u521b\u5efa\u4e00\u5f20\u65b0\u7684MySQL\u8868\u65f6\uff0c\u4f60\u8981\u9009\u62e9\u5b83\u7684\u7c7b\u578b\uff08\u4e5f\u5c31\u662f\u5b58\u50a8\u5f15\u64ce\uff09\u3002\u5982\u679c\u6ca1\u6709\u9009\u62e9\uff0c\u4f60\u5c31\u4f1a\u4f7f\u7528\u4e0e\u9884\u8bbe\u7f6e\u7684\u9ed8\u8ba4\u5f15\u64ce\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5982\u679c\u4f60\u60f3\u8981\u77e5\u9053\u5df2\u7ecf\u5b58\u5728\u7684MySQL\u6570\u636e\u8868\u7684\u7c7b\u578b\uff0c\u8fd9\u91cc\u6709\u51e0\u79cd\u65b9\u6cd5\u8fbe\u5230\u3002<\/p>\n <\/p>\n \u65b9\u6cd5\u4e00<\/strong><\/div>\n \u5982\u679c\u4f60\u53ef\u4ee5\u8bbf\u95eephpMyAdmin\uff0c\u4f60\u53ef\u4ee5\u4ecephpMyAdmin\u627e\u51fa\u9ed8\u8ba4\u7684\u6570\u636e\u5e93\u7c7b\u578b\u3002\u4ecephpMyAdmin\u4e2d\u9009\u4e2d\u6570\u636e\u5e93\u6765\u67e5\u770b\u5b83\u7684\u8868\u5217\u8868\u3002\u5728\u201cType\u201d\u4e00\u5217\u7684\u4e0b\u9762\uff0c\u4f60\u4f1a\u770b\u5230\u6bcf\u4e2a\u8868\u7684\u6570\u636e\u8868\u7c7b\u578b\u3002<\/p>\n <\/p>\n \u65b9\u6cd5\u4e8c<\/strong><\/div>\n \u5982\u679c\u4f60\u53ef\u4ee5\u76f4\u63a5\u767b\u5f55MySQL\u670d\u52a1\u5668\uff0c\u53e6\u5916\u4e00\u79cd\u9274\u522b\u5b58\u50a8\u5f15\u64ce\u7684\u65b9\u6cd5\u662f\u767b\u5f55MySQL\u670d\u52a1\u5668\u540e\u8fd0\u884c\u4e0b\u9762\u7684MySQL\u547d\u4ee4\uff1a<\/p>\n mysql> SELECT ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'my_database' AND TABLE_NAME = 'my_table';<\/pre>\n |