Results 1 to 8 of 8
  1. #1
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145

    How do I store attachments with a MySQL backend?

    I have an Access front end and backend right now, however when I made the backend I made it so that Access stores the attachments in the backend instead of a path to the backend. Now the database is growing rapidly and I need to migrate to a MySQL backend. I'm not sure how this will work with the attachments though? I definitely want to just store paths to the attachments in the MySQL database. Whats the best way to do this? Thanks

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    You don't normally, you store them outside and have a filepath/name to open them. They can be stored as a BLOB field type, but I've never used them - have a look at this link

    https://doc.zarafa.com/7.0/Administr..._database.html

    if you google 'MySQL attachments' you will find plenty of links on the subject

    good luck

  3. #3
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    Thats basically what I said in my post. I need to know how to take an Access backend, with attachments stored in it, and migrate it to MySQL with attachment paths instead of actual attachments. the data is simple, just the attachments part I'm not sure about

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by alexandervj View Post
    ...I need to know how to take an Access backend, with attachments stored in it, and migrate it to MySQL with attachment paths instead of actual attachments....
    Then, this may be of some help.
    https://www.accessforums.net/access/...tml#post237825

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by alexandervj View Post
    Thanks ItsMe, I think that might be a little more VBA than I can handle. I'm building a PHP front end and getting rid of Access and just needed a temporary solution to reduce the size of the database until I can finish the new php front end. I guess I'll just try to finish the new front end asap and make everybody use that
    It is up to you. You will need intermediate VBA to manage the task. You will need to use DAO and iterations. However, a lot of the code you see in the example is to create a user interface to export and attach attachments.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Why do you have to store the "attachments" in the database? Often, people want quick access to the attachments. They aren't necessarily concerned with where "they" are stored, or backed up etc. They just want "them" available, accessible..

  7. #7
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by orange View Post
    Why do you have to store the "attachments" in the database? ..
    I think the OP clarified they want to use the path in a text field. It is a matter of exporting the existing attachments.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Thanks for clarifying. As I reread the posts, I think several interpretations are possible.
    It seemed first that (the storing the attachment in the database) bloat was the issue. Then it seems that moving to MySQL is a goal.

    Not sure which/what is the driving factor.

    Always suggest/recommend you store the files on the file system, and store the link within Access. This give accessibility, availability and prevents/reduces the bloating effect.

    One issue that could arise with links in the database and files on the file system is that backups of the database- do not backup the files. You need to have a plan for that.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Proper way to store attachments in a database?
    By alexandervj in forum Access
    Replies: 3
    Last Post: 04-29-2014, 02:52 PM
  2. How To Store Attachments
    By David92595 in forum SQL Server
    Replies: 1
    Last Post: 10-11-2012, 02:01 PM
  3. Store backend on NAS?
    By justgeig in forum Access
    Replies: 1
    Last Post: 04-19-2012, 06:59 PM
  4. lookup database name on MYsql backend
    By russ0670 in forum Access
    Replies: 3
    Last Post: 01-05-2012, 11:23 AM
  5. access split DB to mySQL (backend only)
    By rnbwkat in forum Access
    Replies: 1
    Last Post: 05-31-2010, 07:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums