MySQL Forums
Forum List  »  Spanish

Re: BACKUP GRANDE
Posted by: Peter Brawley
Date: May 25, 2021 08:14AM

Parece que sus bases de datos han crecido más allá de los recursos disponibles para MySQL.

(i) Busque en el archivo especificado por --log-error, también en el registro de errores de MySQL (<nombre de máquina> .err y publique aquí los mensajes de error relacionados con el volcado.

(ii) Publique el resultado de estas consultas en el programa cliente mysql (no en Workbench) ...

select engine,data,indexes,total
from (
  select 
    ifnull(engine,'TOTALS') as engine, 
    concat(data,' GB') as data, 
    concat(indexes,' GB') as indexes, 
    concat(tot,' GB') as total,
    if(engine is null,-1,tot) as ord
  from (
    select   
      engine,  
      round( sum(data_length)/1024/1024/1024, 2 ) as data,  
      round( sum(index_length)/1024/1024/1024, 2 ) as indexes,  
      round( sum(data_length+index_length)/1024/1024/1024, 2 ) as tot
    from information_schema.tables
    where engine is not null and engine not in('information_schema','performance_schema')
    group by engine with rollup
  ) sums
) list
order by list.ord desc;

show variables;

show global status;

select * from sys.memory_global_total;

select 
  substring_index(event_name,'/',2) as code_area, 
  sys.format_bytes( sum(current_alloc) ) as current_alloc 
from sys.x$memory_global_by_current_bytes 
group by substring_index(event_name,'/',2) 
order by sum(current_alloc) desc;

select 
  concat(format(a.num * 100.0 / b.num,2),"%") bufferpoolfullpct 
from 
  (select variable_value num from performance_schema.global_status
  where variable_name = 'innodb_buffer_pool_pages_data') a,
  (select variable_value num from performance_schema.global_status
  where variable_name = 'innodb_buffer_pool_pages_total') b;

(iii) en Linux, publique el resultado de ...

free -m

o en Windows, revise el intercambio en la pestaña Memoria del Administrador de tareas de Windows o el Monitor de recursos.

(iv) ¿Cuánta RAM está disponible para MySQL?

Eso nos ayudará a empezar.



Edited 2 time(s). Last edit at 05/25/2021 08:18AM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
545
May 25, 2021 07:04AM
Re: BACKUP GRANDE
270
May 25, 2021 08:14AM
256
May 25, 2021 11:04AM
219
May 25, 2021 11:07AM
231
May 25, 2021 12:48PM
235
May 25, 2021 03:47PM
228
May 25, 2021 07:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.