Inserting large amounts of data into a custom table during plugin install

I have some suggestions for you:

  • 1, create MySQL insert queries on your own.
  • 2, combine multiple insert values queries into one like
    values(1,2,3),(4,5,6)
  • 3, use $wpdb->query then

you need to figure out what the appropriate number of “multiple” is.

I’ve tried with 100 and it worked for me but I think the number varies on server settings.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)