# SMF2 to discourse - Troubles importing attachments

**URL:** <https://meta.discourse.org/t/smf2-to-discourse-troubles-importing-attachments/89302>\
**Category:** Support\
**Created:** [6월 6, 2018, 9:46오후 UTC](https://meta.discourse.org/t/smf2-to-discourse-troubles-importing-attachments/89302 "2018-06-06T21:46:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Post date:** [6월 8, 2018, 6:15오전 UTC](https://meta.discourse.org/t/smf2-to-discourse-troubles-importing-attachments/89302/7 "2018-06-08T06:15:47Z")

</div>

THIS. Many many thanks @cmwebdev !!

In my previous attempts I had also set the connection request like that:

```plaintext
    Mysql2::Client.new(host: options.host, username: options.username, 
                       password: options.password, database: options.database,
                       read_timeout: 3600, write_timeout: 3600, connect_timeout: 3600,
                       reconnect: true)

```

but what definitively did the trick was to tune the mysql server configuration to maximise buffers and timeouts.  
I’m noting down all I’m doing and in a few days I’ll post a comprehensive guide to SMF2 migration.

---

_[View the full topic](https://meta.discourse.org/t/smf2-to-discourse-troubles-importing-attachments/89302)._
