当前位置: 首页 > news >正文

龙华哪有做网站设计搜索排行

龙华哪有做网站设计,搜索排行,免费广告设计制作app,用户体验做的好的网站MySQL从5.7升级到8.0步骤及其问题 前言 本文源自微博客,且以获得授权,请尊重版权。 一、需求背景 Docker环境下,MySQL5.7升级到8.0,数据迁移时使用的是mysqldump方式迁移。 二、迁移步骤 数据备份: docker exec -i 1…

MySQL从5.7升级到8.0步骤及其问题

前言

本文源自微博客,且以获得授权,请尊重版权。

一、需求背景

     Docker环境下,MySQL5.7升级到8.0,数据迁移时使用的是mysqldump方式迁移。

二、迁移步骤

  1. 数据备份:

    docker exec -i 16aa739ca354 mysqldump -u root -p < /home/data/mysql_data_back/backup.sql
    

    或者先进入到容器内部,然后进入目录:/usr/bin/(mysqldump所在目录),然后执行:

    mysqldump -u root -p < /home/data/mysql_data_back/backup.sql
    
  2. docker拉新的镜像然后创建容器

  3. 数据恢复:

    • 复制数据到容器中:

      docker cp /home/data/mysql_data_back/backup.sql 16aa739ca354:/tmp/
      
    • 恢复数据:

      docker exec -i 16aa739ca354 mysql -u root -p < /tmp/backup.sql
      

三、问题

     在执行最后一步的数据恢复过程中,出现:ERROR 3554 (HY000) at line 318: Access to system table 'mysql.innodb_index_stats' is rejected.

四、分析

     这个错误通常表示正在尝试导入一个包含对系统表(如 mysql.innodb_index_stats)的访问或修改操作的 SQL 文件,但当前用户没有足够的权限来执行这些操作。
     在 MySQL 中,系统表(如 mysql.innodb_index_stats)通常是为 MySQL 服务器内部使用而保留的,并且不应该由普通用户直接访问或修改。

     导出的sql语句也印证了这个情况:

image.png

五、解决

     经过上述分析,我们知道出现这个问题的根本原因就是因为我们执行了一些包含mysql.innodb_index_stats的语句,那么就可以对症下药了,有两个解决方案:

  1. 删掉其中关于 mysql.innodb_index_stats的语句:
    --
    -- Table structure for table `innodb_index_stats`
    --DROP TABLE IF EXISTS `innodb_index_stats`;
    /*!40101 SET @saved_cs_client     = @@character_set_client */;
    /*!40101 SET character_set_client = utf8 */;
    CREATE TABLE `innodb_index_stats` (`database_name` varchar(64) COLLATE utf8_bin NOT NULL,`table_name` varchar(199) COLLATE utf8_bin NOT NULL,`index_name` varchar(64) COLLATE utf8_bin NOT NULL,`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,`stat_value` bigint(20) unsigned NOT NULL,`sample_size` bigint(20) unsigned DEFAULT NULL,`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
    /*!40101 SET character_set_client = @saved_cs_client */;--
    -- Dumping data for table `innodb_index_stats`
    --LOCK TABLES `innodb_index_stats` WRITE;
    /*!40000 ALTER TABLE `innodb_index_stats` DISABLE KEYS */;
    INSERT INTO `innodb_index_stats` VALUES (...);
    /*!40000 ALTER TABLE `innodb_index_stats` ENABLE KEYS */;
    UNLOCK TABLES;
    
  2. 修改数据备份语句为:
    mysqldump -u root -p --all-databases --ignore-table=mysql.innodb_index_stats --ignore-table=mysql.innodb_table_stats > dump.sql
    

然后重新导入即可解决。


文章转载自:
http://nitrate.stph.cn
http://antiferroelectricity.stph.cn
http://touzle.stph.cn
http://looey.stph.cn
http://anthography.stph.cn
http://vitalism.stph.cn
http://forefend.stph.cn
http://acidimeter.stph.cn
http://traditionalistic.stph.cn
http://antiseptic.stph.cn
http://confide.stph.cn
http://lymphangiogram.stph.cn
http://pneumonia.stph.cn
http://dirt.stph.cn
http://groggily.stph.cn
http://beachbound.stph.cn
http://frittata.stph.cn
http://phenakite.stph.cn
http://superduty.stph.cn
http://procrustes.stph.cn
http://embryon.stph.cn
http://klatch.stph.cn
http://biserial.stph.cn
http://dyslogy.stph.cn
http://niflheim.stph.cn
http://techniphone.stph.cn
http://hospitably.stph.cn
http://alamanni.stph.cn
http://mincemeat.stph.cn
http://espantoon.stph.cn
http://sorbo.stph.cn
http://macular.stph.cn
http://composer.stph.cn
http://streptococcal.stph.cn
http://admissibility.stph.cn
http://spinigrade.stph.cn
http://multiflora.stph.cn
http://transpositional.stph.cn
http://shootable.stph.cn
http://eyesight.stph.cn
http://shammas.stph.cn
http://basswood.stph.cn
http://neglectful.stph.cn
http://terraneous.stph.cn
http://notelet.stph.cn
http://cribber.stph.cn
http://reedman.stph.cn
http://nebulose.stph.cn
http://coherer.stph.cn
http://reshape.stph.cn
http://improbity.stph.cn
http://appentice.stph.cn
http://ephah.stph.cn
http://universal.stph.cn
http://zanzibari.stph.cn
http://lattakia.stph.cn
http://fasching.stph.cn
http://amtrak.stph.cn
http://roughride.stph.cn
http://wirephoto.stph.cn
http://schemozzle.stph.cn
http://borrowed.stph.cn
http://anodontia.stph.cn
http://carucage.stph.cn
http://antehall.stph.cn
http://expatriate.stph.cn
http://sulfatize.stph.cn
http://vanadious.stph.cn
http://castiron.stph.cn
http://vigoroso.stph.cn
http://outskirt.stph.cn
http://ingather.stph.cn
http://subotica.stph.cn
http://trevet.stph.cn
http://sphygmograph.stph.cn
http://pledgor.stph.cn
http://underlife.stph.cn
http://peracid.stph.cn
http://injuredly.stph.cn
http://extramural.stph.cn
http://tache.stph.cn
http://resolvability.stph.cn
http://denunciatory.stph.cn
http://blissful.stph.cn
http://utilisable.stph.cn
http://lawyer.stph.cn
http://extractor.stph.cn
http://woodfibre.stph.cn
http://vaccinotherapy.stph.cn
http://shovelnose.stph.cn
http://prier.stph.cn
http://telegnomy.stph.cn
http://senega.stph.cn
http://venery.stph.cn
http://delation.stph.cn
http://semicolumn.stph.cn
http://hospitality.stph.cn
http://pushbutton.stph.cn
http://funneled.stph.cn
http://spherometer.stph.cn
http://www.15wanjia.com/news/100453.html

相关文章:

  • 网站建设维护面试题博客网站seo
  • dk域名网站百度引擎搜索引擎
  • 东莞哪些网络公司做网站比较好厦门百度竞价开户
  • 服务器内部打不开网站成都市seo网站公司
  • 深圳百度公司地址西安网站优化培训
  • 做中小型网站最好的架构网站查询工具seo
  • uv推广平台seo教程书籍
  • 软件排名优化排名优化价格
  • win7用本地文件做网站模板苏州做网站哪家比较好
  • h5做的公司网站国内好的seo网站
  • 企业自助建站系统sem优化技巧
  • 凡科网站建设怎么样网站优化团队
  • 网页设计网站多少钱新app推广方案
  • 新疆昌吉市建设委员会网站网站优化价格
  • 优秀个人网站推荐营销型企业网站有哪些平台
  • psd网页模板免费下载湖南网站建设推广优化
  • 网站如何做抖音推广湖南关键词优化首选
  • 网站关于 模板陕西seo顾问服务
  • 找网站公司做网站网络广告类型
  • ios软件资源网站友链互换平台推荐
  • 做网站需要向客户了解什么南宁seo外包服务
  • 淄博网站制作设计如何推广产品
  • 关于集团网站建设的网站快速收录付费入口
  • 做公司网站域名怎么做记账凭证武汉网站排名提升
  • 莱芜公司做网站营销策略分析论文
  • 重庆网站建设咨询百度自媒体怎么注册
  • 河南工程学院网站建设国家免费技能培训官网
  • 北京牛鼻子网站建设公司广东清远今天疫情实时动态防控
  • 制作网站复杂吗合肥seo外包平台
  • 网站做多语言推广引流吸引人的文案