MYSQL importing is slow on all sql files -
i have 2 databases 1 around 127mb , other 2.5gb. tried import sql files using mysql.exe -u root {dbname} < {sqlpath.sql}
but takes time 127mb database took around 2 hours , 2.5 gb database around 2 days. tried again adding
set autocommit=0; set unique_checks=0; set foreign_key_checks=0; to beginning of import file ,
commit; set unique_checks=1; set foreign_key_checks=1; to end of import file there no change. tables innodb , using mysql 5.7.14. idea ?
wiki
Comments
Post a Comment