[{"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,"tags":293},{"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},[],[],[294,302,315,325,335,347,355,364,373,382,391,400,409,418,427],{"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,"posts":295},[296,297,298,299,300,301],{"id":61,"documentId":62},{"id":64,"documentId":65},{"id":67,"documentId":68},{"id":70,"documentId":6},{"id":84,"documentId":85},{"id":96,"documentId":97},{"id":303,"documentId":304,"name":305,"slug":306,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":307,"updatedAt":307,"publishedAt":308,"locale":22,"heading":16,"desc":16,"posts":309},6,"mau3qzs4gq9pxckgymu674yr","MODX","modx","2026-05-16T10:03:44.164Z","2026-05-16T10:03:44.154Z",[310,311,312,313,314],{"id":49,"documentId":50},{"id":52,"documentId":53},{"id":75,"documentId":76},{"id":90,"documentId":91},{"id":93,"documentId":94},{"id":316,"documentId":317,"name":318,"slug":319,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":320,"updatedAt":320,"publishedAt":321,"locale":22,"heading":16,"desc":16,"posts":322},19,"bfi7bs1ny52g8tz3ok8wrngy","macOS","macos","2026-05-16T10:33:46.268Z","2026-05-16T10:33:46.265Z",[323,324],{"id":43,"documentId":44},{"id":58,"documentId":59},{"id":326,"documentId":327,"name":328,"slug":329,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":330,"updatedAt":330,"publishedAt":331,"locale":22,"heading":16,"desc":16,"posts":332},20,"georvivt518jgm5vp8rcv0kv","Инструменты","instrumenty","2026-05-16T10:33:46.941Z","2026-05-16T10:33:46.938Z",[333,334],{"id":55,"documentId":56},{"id":78,"documentId":79},{"id":336,"documentId":337,"name":338,"slug":339,"textcolor":16,"bgcolor":16,"published":17,"uri":340,"createdAt":341,"updatedAt":341,"publishedAt":342,"locale":22,"heading":343,"desc":123,"posts":344},31,"dcyh9y95rmthzo6oip4ftoez","AI","ai","\u002Fai","2026-05-30T10:54:12.198Z","2026-05-30T10:54:12.192Z","Искусственный интеллект",[345,346],{"id":99,"documentId":100},{"id":102,"documentId":103},{"id":105,"documentId":348,"name":349,"slug":350,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":351,"updatedAt":351,"publishedAt":352,"locale":22,"heading":16,"desc":16,"posts":353},"tfr5asfr2apchhtgxje8epz1","Стихи","stihi","2026-05-16T10:03:43.872Z","2026-05-16T10:03:43.861Z",[354],{"id":26,"documentId":27},{"id":356,"documentId":357,"name":358,"slug":359,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":360,"updatedAt":360,"publishedAt":361,"locale":22,"heading":16,"desc":16,"posts":362},5,"c7joczpqlb928nxr2l5qyg9m","Мысли","mysli","2026-05-16T10:03:44.061Z","2026-05-16T10:03:44.054Z",[363],{"id":115,"documentId":116},{"id":365,"documentId":366,"name":367,"slug":368,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":369,"updatedAt":369,"publishedAt":370,"locale":22,"heading":16,"desc":16,"posts":371},8,"dwpf4sx017aq366ygh46evsc","Психология","psihologiya","2026-05-16T10:03:44.268Z","2026-05-16T10:03:44.264Z",[372],{"id":118,"documentId":119},{"id":374,"documentId":375,"name":376,"slug":377,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":378,"updatedAt":378,"publishedAt":379,"locale":22,"heading":16,"desc":16,"posts":380},13,"qolbs7a9lkvr15oytyy3gj03","CSS","css","2026-05-16T10:03:45.289Z","2026-05-16T10:03:45.283Z",[381],{"id":81,"documentId":82},{"id":383,"documentId":384,"name":385,"slug":386,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":387,"updatedAt":387,"publishedAt":388,"locale":22,"heading":16,"desc":16,"posts":389},14,"lz1k1ridxwxre34lzf0jfl3t","SASS","sass","2026-05-16T10:03:45.319Z","2026-05-16T10:03:45.314Z",[390],{"id":81,"documentId":82},{"id":392,"documentId":393,"name":394,"slug":395,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":396,"updatedAt":396,"publishedAt":397,"locale":22,"heading":16,"desc":16,"posts":398},16,"czaf643kmvvab1xf4gx3ddh9","VPN","vpn","2026-05-16T10:03:45.455Z","2026-05-16T10:03:45.446Z",[399],{"id":84,"documentId":85},{"id":401,"documentId":402,"name":403,"slug":404,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":405,"updatedAt":405,"publishedAt":406,"locale":22,"heading":16,"desc":16,"posts":407},18,"gpitv9ds3usb3p8j7sgajglb","SEO","seo","2026-05-16T10:33:46.002Z","2026-05-16T10:33:45.995Z",[408],{"id":46,"documentId":47},{"id":410,"documentId":411,"name":412,"slug":413,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":414,"updatedAt":414,"publishedAt":415,"locale":22,"heading":16,"desc":16,"posts":416},21,"htsr27rbn93onqsys2gavt4m","Phpstorm","phpstorm","2026-05-16T10:33:46.959Z","2026-05-16T10:33:46.956Z",[417],{"id":55,"documentId":56},{"id":419,"documentId":420,"name":421,"slug":422,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":423,"updatedAt":423,"publishedAt":424,"locale":22,"heading":16,"desc":16,"posts":425},29,"l9ruh02w7yl3rvez05s8ndv7","Node.js","node-js","2026-05-16T10:33:47.947Z","2026-05-16T10:33:47.944Z",[426],{"id":72,"documentId":73},{"id":428,"documentId":429,"name":430,"slug":431,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":432,"updatedAt":432,"publishedAt":433,"locale":22,"heading":16,"desc":16,"posts":434},30,"xkffo03bgoiimugiwqgryrx0","Крипта","kripta","2026-05-16T10:33:48.241Z","2026-05-16T10:33:48.237Z",[435],{"id":87,"documentId":88}]