If your local development is failing to import large Drupal databases try setting the my.ini file for your MySQL to the following:

  • Create a backup of you my.ini file
  • Update your current one with the following
  • Let it rip!
#######################################################################
# File name: my.ini
# Created By: Lehel Matyus
# ==> Use file entirely at your own risk! <==
# V 1.0 2016-2-26
######################################################################## 

[mysql]
default-character-set=utf8

# SERVER SECTION The following options will be read by the MySQL Server.
[mysqld]
bind-address=127.0.0.1
# server-id = 1  Comment Prevents error Cannot open table mysql/slave_master_info
server-id = 0
pid-file=mysql.pid
explicit_defaults_for_timestamp
#default-storage-engine=MYISAM


skip-external-locking
key_buffer_size = 512M
max_allowed_packet = 512M
table_open_cache = 32
sort_buffer_size = 64M
read_buffer_size = 64M
read_rnd_buffer_size = 512K
net_buffer_length = 64M
thread_stack = 512K

character-set-server=utf8

# federated
skip-federated


# Uncomment the following if you are using InnoDB tables
innodb_file_per_table = 1
innodb_data_file_path = ibdata1:10M:autoextend
innodb_buffer_pool_size = 64M
innodb_log_file_size = 32M
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 100


[mysqldump]
quick
max_allowed_packet = 512M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M

[mysqlhotcopy]
interactive-timeout

 

Cheers!