[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"custom-urls-\u002Flinux\u002Fmysql-errors":3,"categories-menu":10,"post-reshenie-problem-mysql":120,"post-content-reshenie-problem-mysql":157,"post-comments-exnbib5xi3fgt7mku9q8ithc":292},{"type":4,"entity":5,"path":8},"post",{"documentId":6,"slug":7},"exnbib5xi3fgt7mku9q8ithc","reshenie-problem-mysql",{"uri":9},"\u002Flinux\u002Fmysql-errors",[11,31,104],{"id":12,"documentId":13,"name":14,"slug":15,"desc":16,"published":17,"uri":18,"showmenu":17,"createdAt":19,"updatedAt":20,"publishedAt":21,"locale":22,"heading":16,"order":23,"posts":24},4,"dw88ipzixowg4rbtqhna1fck","Личное","self",null,true,"\u002Fself","2026-05-17T11:06:55.868Z","2026-05-19T09:58:08.297Z","2026-05-19T09:58:08.291Z","en",0,[25,28],{"id":26,"documentId":27},61,"otr8hblo0fac9ovggct48osv",{"id":29,"documentId":30},76,"z77qh8cg0mcz533087epr6xu",{"id":32,"documentId":33,"name":34,"slug":35,"desc":16,"published":17,"uri":36,"showmenu":17,"createdAt":37,"updatedAt":38,"publishedAt":39,"locale":22,"heading":16,"order":40,"posts":41},2,"oxow5hzkizd4dgongka7hxvf","Рабочее","work","\u002Fwork","2026-05-15T07:43:18.016Z","2026-05-19T09:58:08.301Z","2026-05-19T09:58:08.295Z",1,[42,45,48,51,54,57,60,63,66,69,71,74,77,80,83,86,89,92,95,98,101],{"id":43,"documentId":44},71,"tciv16vv801l5eg5m4rx3gal",{"id":46,"documentId":47},80,"x8y72z9yibyjcllzwes23h43",{"id":49,"documentId":50},81,"v06yaukpbxnypv0bh0s48osu",{"id":52,"documentId":53},82,"wgd4f0022pq1pwbvq04rq0x0",{"id":55,"documentId":56},83,"i8wiipabpbxtcofme04ncqjy",{"id":58,"documentId":59},84,"ny1dz9tknms3219nrc5oaahy",{"id":61,"documentId":62},89,"igz67vanm4ke94cilkgrts2i",{"id":64,"documentId":65},95,"fa4sibhpf6ohmet6qo3s4ywx",{"id":67,"documentId":68},96,"u7g77d0bu0rv1u67qea9kglu",{"id":70,"documentId":6},98,{"id":72,"documentId":73},99,"bja31j10up0ffiqw1j5nfr79",{"id":75,"documentId":76},100,"ztrhdkce10c349k6jngsqz72",{"id":78,"documentId":79},101,"gsf74mv1zc39kkejpvy70lfk",{"id":81,"documentId":82},102,"m7c1icp5gt0x73ssyc67atvc",{"id":84,"documentId":85},103,"yz8vml65wloblc0dsp1okc8l",{"id":87,"documentId":88},104,"lquxceynryigq9wdydiwby7f",{"id":90,"documentId":91},105,"yy6x55uwn90hzkzz0786ev1q",{"id":93,"documentId":94},106,"ns37ttwnqxfc86lw6355bx9n",{"id":96,"documentId":97},107,"bjlqk6v41quti6geq9hs4ta6",{"id":99,"documentId":100},108,"ztumsu968y7otczfxrol0o19",{"id":102,"documentId":103},109,"xxxi8etz2ay3839xvw2oz9ym",{"id":105,"documentId":106,"name":107,"slug":108,"desc":16,"published":17,"uri":109,"showmenu":17,"createdAt":110,"updatedAt":111,"publishedAt":112,"locale":22,"heading":16,"order":32,"posts":113},3,"cat0obshestvennoe000001","Общественное","public","\u002Fpublic","2026-05-15T18:29:50.696Z","2026-05-19T09:58:05.992Z","2026-05-19T09:58:05.985Z",[114,117],{"id":115,"documentId":116},74,"u55grcuibxa3e64ymhoaav2v",{"id":118,"documentId":119},92,"rcz3w4mhmhb54ps3o8j462fp",{"id":70,"documentId":6,"title":121,"slug":7,"content":122,"desc":123,"intro":124,"uri":9,"published":17,"publishedDate":125,"showComments":17,"canComment":17,"telegramId":16,"telegramLink":16,"telegramHash":16,"telegramSetReaction":126,"telegramPasteImage":126,"telegramPasteTitle":126,"telegramPasteLink":126,"internalMeta":127,"createdAt":129,"updatedAt":130,"publishedAt":131,"locale":16,"coverCaption":16,"showOnHome":17,"category":132,"cover":16,"tags":133,"author":141,"comments":23,"reactions":156},"Решение проблем MySQL","При обновлении новой версии может происходить ошибка типа такой:\n\n```\nupdate-alternatives: error: no alternatives for my.cnf\ndpkg: error processing package mysql-common (--purge):\n subprocess installed post-removal script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\n```\n\nили такой:\n\n```\nupdate-alternatives: error: \u002Fvar\u002Flib\u002Fdpkg\u002Falternatives\u002Fmy.cnf corrupt: invalid status\ndpkg: error processing package mysql-common (--purge):\n subprocess installed post-removal script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\nE: Sub-process \u002Fusr\u002Fbin\u002Fdpkg returned an error code (1)\n```\n\nили такой:\n\n```\nupdate-alternatives: error: unable to read link '\u002Fetc\u002Falternatives\u002Fmy.cnf': Invalid argument\ndpkg: error processing package mysql-common (--configure):\n subprocess installed post-installation script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\nE: Sub-process \u002Fusr\u002Fbin\u002Fdpkg returned an error code (1)\n```\n\nРешается командой:\n`sudo dpkg -P --force-all mysql-common`\n\nЕсли не помогло, то так:\n\n```bash\nsudo rm \u002Fetc\u002Falternatives\u002Fmy.cnf\nsudo ln -s \u002Fetc\u002Fmysql\u002Fmysql.cnf \u002Fetc\u002Falternatives\u002Fmy.cnf\n```","","При установке или обновлении MySQL могут возникать разного рода ошибки. Постарался описать некоторые из них и решение оных.","2020-08-17T08:34:00.000Z",false,{"modxId":128,"addToTelegram":126,"editInTelegram":126,"removeFromTelegram":126},172,"2026-05-16T14:27:44.610Z","2026-05-16T20:16:56.215Z","2026-05-16T14:27:44.599Z",{"id":32,"documentId":33,"name":34,"slug":35,"desc":16,"published":17,"uri":36,"showmenu":17,"createdAt":37,"updatedAt":38,"publishedAt":39,"locale":22,"heading":16,"order":40},[134],{"id":135,"documentId":136,"name":137,"slug":138,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":139,"updatedAt":139,"publishedAt":140,"locale":22,"heading":16,"desc":16},15,"aju4latl5hi6906pt0ktlb1g","Linux","linux","2026-05-16T10:03:45.426Z","2026-05-16T10:03:45.422Z",{"id":40,"documentId":142,"username":143,"provider":123,"confirmed":17,"blocked":126,"telegramId":144,"telegramData":145,"icon":16,"firstname":149,"lastname":148,"phone":146,"locale":16,"role":150,"avatar":16},"mr9zlrq1858u3k1t8r6dmlly","pavelgvozdb","133652371",{"id":144,"phone":146,"premium":126,"language":147,"lastname":148,"username":143,"firstname":149},"77025551199","ru","Гвоздь","Павел",{"id":105,"documentId":151,"name":152,"description":153,"type":154,"createdAt":155,"updatedAt":155,"publishedAt":155,"locale":16},"agv9d9dnu7pxc9ked3amj647","Admin","Главный админ блога — полный доступ к управлению на фронтенде","admin","2026-05-15T18:45:58.088Z",{"like":23,"dislike":23},{"data":158,"body":160,"toc":290},{"title":123,"description":159},"При обновлении новой версии может происходить ошибка типа такой:",{"type":161,"children":162},"root",[163,170,182,187,196,200,209,220,225,284],{"type":164,"tag":165,"props":166,"children":167},"element","p",{},[168],{"type":169,"value":159},"text",{"type":164,"tag":171,"props":172,"children":176},"pre",{"className":173,"code":175,"language":169},[174],"language-text","update-alternatives: error: no alternatives for my.cnf\ndpkg: error processing package mysql-common (--purge):\n subprocess installed post-removal script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\n",[177],{"type":164,"tag":178,"props":179,"children":180},"code",{"__ignoreMap":123},[181],{"type":169,"value":175},{"type":164,"tag":165,"props":183,"children":184},{},[185],{"type":169,"value":186},"или такой:",{"type":164,"tag":171,"props":188,"children":191},{"className":189,"code":190,"language":169},[174],"update-alternatives: error: \u002Fvar\u002Flib\u002Fdpkg\u002Falternatives\u002Fmy.cnf corrupt: invalid status\ndpkg: error processing package mysql-common (--purge):\n subprocess installed post-removal script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\nE: Sub-process \u002Fusr\u002Fbin\u002Fdpkg returned an error code (1)\n",[192],{"type":164,"tag":178,"props":193,"children":194},{"__ignoreMap":123},[195],{"type":169,"value":190},{"type":164,"tag":165,"props":197,"children":198},{},[199],{"type":169,"value":186},{"type":164,"tag":171,"props":201,"children":204},{"className":202,"code":203,"language":169},[174],"update-alternatives: error: unable to read link '\u002Fetc\u002Falternatives\u002Fmy.cnf': Invalid argument\ndpkg: error processing package mysql-common (--configure):\n subprocess installed post-installation script returned error exit status 2\nErrors were encountered while processing:\n mysql-common\nE: Sub-process \u002Fusr\u002Fbin\u002Fdpkg returned an error code (1)\n",[205],{"type":164,"tag":178,"props":206,"children":207},{"__ignoreMap":123},[208],{"type":169,"value":203},{"type":164,"tag":165,"props":210,"children":211},{},[212,214],{"type":169,"value":213},"Решается командой:\n",{"type":164,"tag":178,"props":215,"children":217},{"className":216},[],[218],{"type":169,"value":219},"sudo dpkg -P --force-all mysql-common",{"type":164,"tag":165,"props":221,"children":222},{},[223],{"type":169,"value":224},"Если не помогло, то так:",{"type":164,"tag":171,"props":226,"children":231},{"className":227,"code":228,"language":229,"meta":123,"style":230},"language-bash shiki shiki-themes github-light catppuccin-mocha","sudo rm \u002Fetc\u002Falternatives\u002Fmy.cnf\nsudo ln -s \u002Fetc\u002Fmysql\u002Fmysql.cnf \u002Fetc\u002Falternatives\u002Fmy.cnf\n","bash","--shiki-default:#24292e;--shiki-dark:#cdd6f4;--shiki-default-bg:#fff;--shiki-dark-bg:#1e1e2e",[232],{"type":164,"tag":178,"props":233,"children":234},{"__ignoreMap":123},[235,257],{"type":164,"tag":236,"props":237,"children":239},"span",{"class":238,"line":40},"line",[240,246,252],{"type":164,"tag":236,"props":241,"children":243},{"style":242},"--shiki-default:#6F42C1;--shiki-default-font-style:inherit;--shiki-dark:#89B4FA;--shiki-dark-font-style:italic",[244],{"type":169,"value":245},"sudo",{"type":164,"tag":236,"props":247,"children":249},{"style":248},"--shiki-default:#032F62;--shiki-dark:#A6E3A1",[250],{"type":169,"value":251}," rm",{"type":164,"tag":236,"props":253,"children":254},{"style":248},[255],{"type":169,"value":256}," \u002Fetc\u002Falternatives\u002Fmy.cnf\n",{"type":164,"tag":236,"props":258,"children":259},{"class":238,"line":32},[260,264,269,275,280],{"type":164,"tag":236,"props":261,"children":262},{"style":242},[263],{"type":169,"value":245},{"type":164,"tag":236,"props":265,"children":266},{"style":248},[267],{"type":169,"value":268}," ln",{"type":164,"tag":236,"props":270,"children":272},{"style":271},"--shiki-default:#005CC5;--shiki-dark:#A6E3A1",[273],{"type":169,"value":274}," -s",{"type":164,"tag":236,"props":276,"children":277},{"style":248},[278],{"type":169,"value":279}," \u002Fetc\u002Fmysql\u002Fmysql.cnf",{"type":164,"tag":236,"props":281,"children":282},{"style":248},[283],{"type":169,"value":256},{"type":164,"tag":285,"props":286,"children":287},"style",{},[288],{"type":169,"value":289},".shiki,html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}.dark .shiki,html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":123,"searchDepth":32,"depth":32,"links":291},[],[]]