René's URL Explorer Experiment


Title: 2006 mysql server has gone away · Issue #131 · codcodog/Blog · GitHub

Open Graph Title: 2006 mysql server has gone away · Issue #131 · codcodog/Blog

X Title: 2006 mysql server has gone away · Issue #131 · codcodog/Blog

Description: 2006 mysql server has gone away 场景 php yii 框架,一个 console 任务,执行的时候,报 2006 mysql server has gone away 错误. 方案 导致报错的原因是,这个 console 任务处理的数据太多,大量的错误测试数据发送到 mysql,超出了包大小的限制. ... $task->status = TaskModel::STATUS_FAIL; $task->message = json_enco...

Open Graph Description: 2006 mysql server has gone away 场景 php yii 框架,一个 console 任务,执行的时候,报 2006 mysql server has gone away 错误. 方案 导致报错的原因是,这个 console 任务处理的数据太多,大量的错误测试数据发送到 mysql,超出了包大小的限制. ... $task->status = TaskModel:...

X Description: 2006 mysql server has gone away 场景 php yii 框架,一个 console 任务,执行的时候,报 2006 mysql server has gone away 错误. 方案 导致报错的原因是,这个 console 任务处理的数据太多,大量的错误测试数据发送到 mysql,超出了包大小的限制. ... $task->status = TaskMod...

Opengraph URL: https://github.com/codcodog/Blog/issues/131

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"2006 mysql server has gone away","articleBody":"2006 mysql server has gone away\r\n===============================\r\n\r\n### 场景\r\n\r\nphp `yii` 框架,一个 `console` 任务,执行的时候,报 `2006 mysql server has gone away` 错误.\r\n\r\n\r\n### 方案\r\n\r\n导致报错的原因是,这个 `console` 任务处理的数据太多,大量的错误测试数据发送到 `mysql`,超出了包大小的限制.\r\n\r\n```php\r\n...\r\n$task-\u003estatus = TaskModel::STATUS_FAIL;\r\n$task-\u003emessage = json_encode($object-\u003eerrors);\r\n$task-\u003esave();\r\nreturn self::DELETE;\r\n...\r\n```\r\n\r\n上面的 `$task-\u003emessage = json_encode($object-\u003eerrors);` 文本内容过大,导致 `save()` 之后,超出了 `mysql` 限制的大小,  \r\n从而导致 `2006 mysql server has gone away`.\r\n\r\n查看 `mysql` `max_allowed_packet` 的大小:\r\n```\r\nazoya_product_system\u003e show variables like '%max_allowed_packet%';\r\n+--------------------------+------------+\r\n| Variable_name            | Value      |\r\n+--------------------------+------------+\r\n| max_allowed_packet       | 16777216   |\r\n| slave_max_allowed_packet | 1073741824 |\r\n+--------------------------+------------+\r\n```\r\n\r\n修改 `max_allowed_packet` 的大小\r\n```\r\nazoya_product_system\u003e set global max_allowed_packet = 1073741824;\r\n```\r\n\r\n修改之后,退出 `mysql`,重新登录即可.\r\n\r\n\r\n或者,限制 `$object-\u003eerros` 的大小\r\n```\r\nif (count($object-\u003eerros) \u003e 50) {\r\n    $object-\u003eerros = array_slice($object-\u003eerros, 0, 50);\r\n}\r\n```\r\n","author":{"url":"https://github.com/codcodog","@type":"Person","name":"codcodog"},"datePublished":"2021-12-14T13:23:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/131/Blog/issues/131"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e87efd96-2646-17bb-fd0c-515db5f2fce2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA57C:343283:1B62583:2567A62:6A4C0EA3
html-safe-nonce8648c819e6a8a965ad9d1fe28efe0c4adacfb019632b60bf9f4cb9ab555e093a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTdDOjM0MzI4MzoxQjYyNTgzOjI1NjdBNjI6NkE0QzBFQTMiLCJ2aXNpdG9yX2lkIjoiNjkxODg5Nzc2MjQ4NzI0MjQwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac799aa8718f7e994c7838ddddca4e42c34e02b604e721e2455e1f809bd1e99d47
hovercard-subject-tagissue:1079754808
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codcodog/Blog/131/issue_layout
twitter:imagehttps://opengraph.githubassets.com/73c900ae773602d4c90418b527531d022cf1695764b0c74145d4df964b21fcab/codcodog/Blog/issues/131
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73c900ae773602d4c90418b527531d022cf1695764b0c74145d4df964b21fcab/codcodog/Blog/issues/131
og:image:alt2006 mysql server has gone away 场景 php yii 框架,一个 console 任务,执行的时候,报 2006 mysql server has gone away 错误. 方案 导致报错的原因是,这个 console 任务处理的数据太多,大量的错误测试数据发送到 mysql,超出了包大小的限制. ... $task->status = TaskModel:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecodcodog
hostnamegithub.com
expected-hostnamegithub.com
None0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9
turbo-cache-controlno-preview
go-importgithub.com/codcodog/Blog git https://github.com/codcodog/Blog.git
octolytics-dimension-user_id18098145
octolytics-dimension-user_logincodcodog
octolytics-dimension-repository_id75478736
octolytics-dimension-repository_nwocodcodog/Blog
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id75478736
octolytics-dimension-repository_network_root_nwocodcodog/Blog
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release18812876666a23a0912556e224383baa4c84cf8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/codcodog/Blog/issues/131#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodcodog%2FBlog%2Fissues%2F131
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodcodog%2FBlog%2Fissues%2F131
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=codcodog%2FBlog
Reloadhttps://github.com/codcodog/Blog/issues/131
Reloadhttps://github.com/codcodog/Blog/issues/131
Reloadhttps://github.com/codcodog/Blog/issues/131
codcodog https://github.com/codcodog
Bloghttps://github.com/codcodog/Blog
Notifications https://github.com/login?return_to=%2Fcodcodog%2FBlog
Fork 1 https://github.com/login?return_to=%2Fcodcodog%2FBlog
Star 20 https://github.com/login?return_to=%2Fcodcodog%2FBlog
Code https://github.com/codcodog/Blog
Issues 135 https://github.com/codcodog/Blog/issues
Pull requests 0 https://github.com/codcodog/Blog/pulls
Actions https://github.com/codcodog/Blog/actions
Wiki https://github.com/codcodog/Blog/wiki
Security and quality 0 https://github.com/codcodog/Blog/security
Insights https://github.com/codcodog/Blog/pulse
Code https://github.com/codcodog/Blog
Issues https://github.com/codcodog/Blog/issues
Pull requests https://github.com/codcodog/Blog/pulls
Actions https://github.com/codcodog/Blog/actions
Wiki https://github.com/codcodog/Blog/wiki
Security and quality https://github.com/codcodog/Blog/security
Insights https://github.com/codcodog/Blog/pulse
2006 mysql server has gone awayhttps://github.com/codcodog/Blog/issues/131#top
PHPhttps://github.com/codcodog/Blog/issues?q=state%3Aopen%20label%3A%22PHP%22
https://github.com/codcodog
codcodoghttps://github.com/codcodog
on Dec 14, 2021https://github.com/codcodog/Blog/issues/131#issue-1079754808
PHPhttps://github.com/codcodog/Blog/issues?q=state%3Aopen%20label%3A%22PHP%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.