AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / dba / Perguntas / 312115
Accepted
Mike
Mike
Asked: 2022-05-14 22:31:56 +0800 CST2022-05-14 22:31:56 +0800 CST 2022-05-14 22:31:56 +0800 CST

Percona MySQL 5.7 a 8.0

  • 772

Gostaria de saber se alguém atualizou com sucesso o percona 5.7 para 8.0 com um banco de dados totalmente preenchido. Todos os artigos que li sugerem que é possível, mas tentei duas vezes em um ambiente de teste e, enquanto a atualização acontece, ela trava durante o início do serviço e nunca fornece uma indicação verdadeira do motivo.

É um grande servidor de banco de dados multi com mais de 100dbs em mais de 150gb.

Eu gostaria de ter o processo acertado porque quando se trata de viver, os servidores estão em um cluster de replicação. Eu li para começar com os escravos primeiro, o que é bom, mas mesmo isso sugere que eu deveria ser capaz de atualizar com dados.

Ao verificar se as tabelas estão corretas para atualização, todas elas retornam OK.

mysql-5.7 percona
  • 1 1 respostas
  • 90 Views

1 respostas

  • Voted
  1. Best Answer
    Ajith Daniel
    2022-08-23T21:49:24+08:002022-08-23T21:49:24+08:00

    É possível migrar o MySQL 5.7 para 8.0 com plano de dados e rollback

    Como verificar a compatibilidade com o MySQL 8.

    1. Instale o MySQL Shell ( Referência: Instalando o MySQL Shell no Linux )

    2. Use o utilitário MySQL Shell Upgrade Checker

       mysqlsh -- util check-for-server-upgrade { --user=root --host=localhost --port=3306 } --config-path=/etc/my.cnf  
      

      Isso produzirá uma saída semelhante à seguinte:

      1) Usage of old temporal type
        No issues found
      
      2) Usage of db objects with names conflicting with reserved keywords in 8.0
        No issues found
      
      3) Usage of utf8mb3 charset
        No issues found
      
      4) Table names in the mysql schema conflicting with new tables in 8.0
        No issues found
      
      5) Partitioned tables using engines with non native partitioning
        No issues found
      
      6) Foreign key constraint names longer than 64 characters
        No issues found
      
      7) Usage of obsolete MAXDB sql_mode flag
        No issues found
      
      8) Usage of obsolete sql_mode flags
        No issues found
      
      9) ENUM/SET column definitions containing elements longer than 255 characters
        No issues found
      
      10) Usage of partitioned tables in shared tablespaces
        No issues found
      
      11) Circular directory references in tablespace data file paths
        No issues found
      
      12) Usage of removed functions
        No issues found
      
      13) Usage of removed GROUP BY ASC/DESC syntax
        No issues found
      
      14) Removed system variables for error logging to the system log configuration
        To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
        More information:
          https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-13.html#mysqld-8-0-13-logging
      
      15) Removed system variables
        To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
        More information:
          https://dev.mysql.com/doc/refman/8.0/en/added-deprecated-removed.html#optvars-removed
      
      16) System variables with new default values
        To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
        More information:
          https://mysqlserverteam.com/new-defaults-in-mysql-8-0/
      
      17) Schema inconsistencies resulting from file removal or corruption
        No issues found
      
      18) Issues reported by 'check table x for upgrade' command
        No issues found
      
      19) New default authentication plugin considerations
        Warning: The new default authentication plugin 'caching_sha2_password' offers
          more secure password hashing than previously used 'mysql_native_password'
          (and consequent improved client connection authentication). However, it also
          has compatibility implications that may affect existing MySQL installations.
          If your MySQL installation must serve pre-8.0 clients and you encounter
          compatibility issues after upgrading, the simplest way to address those
          issues is to reconfigure the server to revert to the previous default
          authentication plugin (mysql_native_password). For example, use these lines
          in the server option file:
      
          [mysqld]
          default_authentication_plugin=mysql_native_password
      
          However, the setting should be viewed as temporary, not as a long term or
          permanent solution, because it causes new accounts created with the setting
          in effect to forego the improved authentication security.
          If you are using replication please take time to understand how the
          authentication plugin changes may impact you.
        More information:
          https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password-compatibility-issues
          https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password-replication
      
      Errors:   0
      Warnings: 1
      Notices:  0
      

    Ele fornece as alterações significativas necessárias para você atualizar para o MySQL 8.0 e você pode aplicar essas alterações ao MySQL 5.7. antes de atualizar para 8.0.

    Em seguida, execute o utilitário MySQL Shell Upgrade Checker novamente e veja se os problemas foram corrigidos.

    Mantenha o mesmo conjunto de caracteres e agrupamento da versão 5.7 para evitar outros possíveis conflitos e problemas.

    • 0

relate perguntas

  • qualquer documentação sobre a ferramenta de benchmark tpcc-mysql

  • Mecanismo de armazenamento desconhecido 'XtraDB'

  • concessões de backup xtrabackup?

  • É possível passar parâmetros para pt-table-checksum usando um arquivo de opções?

  • xtrabackup "falha ao ler metadados" [fechado]

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    conectar ao servidor PostgreSQL: FATAL: nenhuma entrada pg_hba.conf para o host

    • 12 respostas
  • Marko Smith

    Como fazer a saída do sqlplus aparecer em uma linha?

    • 3 respostas
  • Marko Smith

    Selecione qual tem data máxima ou data mais recente

    • 3 respostas
  • Marko Smith

    Como faço para listar todos os esquemas no PostgreSQL?

    • 4 respostas
  • Marko Smith

    Listar todas as colunas de uma tabela especificada

    • 5 respostas
  • Marko Smith

    Como usar o sqlplus para se conectar a um banco de dados Oracle localizado em outro host sem modificar meu próprio tnsnames.ora

    • 4 respostas
  • Marko Smith

    Como você mysqldump tabela (s) específica (s)?

    • 4 respostas
  • Marko Smith

    Listar os privilégios do banco de dados usando o psql

    • 10 respostas
  • Marko Smith

    Como inserir valores em uma tabela de uma consulta de seleção no PostgreSQL?

    • 4 respostas
  • Marko Smith

    Como faço para listar todos os bancos de dados e tabelas usando o psql?

    • 7 respostas
  • Martin Hope
    Jin conectar ao servidor PostgreSQL: FATAL: nenhuma entrada pg_hba.conf para o host 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane Como faço para listar todos os esquemas no PostgreSQL? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh Por que o log de transações continua crescendo ou fica sem espaço? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland Listar todas as colunas de uma tabela especificada 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney O MySQL pode realizar consultas razoavelmente em bilhões de linhas? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx Como posso monitorar o andamento de uma importação de um arquivo .sql grande? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison Como você mysqldump tabela (s) específica (s)? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas Como posso cronometrar consultas SQL usando psql? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas Como inserir valores em uma tabela de uma consulta de seleção no PostgreSQL? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas Como faço para listar todos os bancos de dados e tabelas usando o psql? 2011-02-18 00:45:49 +0800 CST

Hot tag

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve