1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I add files to a mysql database?

Discussion in 'General Programming Chat' started by YoungGuns, Jun 10, 2008.

  1. YoungGuns

    YoungGuns Regular Member Premium Member

    Joined:
    May 26, 2008
    Messages:
    340
    Likes Received:
    267
    Location:
    Tennessee, US
    I know this is probably a dumb question, but how do you add files to a database? I've already set a database up, but I don't see any way of adding files to it. In my host area it just says stuff about adding users.

    Do I just put the mysql code in my website's files? If so, where do I put it and what do I save it as? Or do I have to enter something on mysql command line client? I'm really lost on this subject.

    I'm doing a mysql dump if that matters any.
     
  2. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    705
    Likes Received:
    865
    What do you mean by 'add files to the database' ? Are you trying to add tables, run a sql script or actually store a file in the database?
     
  3. jaeden

    jaeden BANNED BANNED

    Joined:
    Jun 3, 2008
    Messages:
    232
    Likes Received:
    28
    Why are you trying to use mysql? It sounds like you have the wrong idea about what it is for. Mysql is used to store data fields and to facilitate fast and efficient access of such data.

    An example would be this forum. All of the user profiles, forum settings, and even this post itself is saved to an SQL database which the forum script then uses to draw its settings and content/posts from.

    MySQL is not something that you use to store random info for yourself.. If you need to create a spreadsheet, use a spread sheet program like microsoft excel or even better and free: http://www.openoffice.org.
     
  4. YoungGuns

    YoungGuns Regular Member Premium Member

    Joined:
    May 26, 2008
    Messages:
    340
    Likes Received:
    267
    Location:
    Tennessee, US
  5. jaeden

    jaeden BANNED BANNED

    Joined:
    Jun 3, 2008
    Messages:
    232
    Likes Received:
    28
    i typed up a nice reply for you explaining what to do.. unfortunately the firewall script keeps blocking the post and i dont know why. *sigh*
     
  6. jaeden

    jaeden BANNED BANNED

    Joined:
    Jun 3, 2008
    Messages:
    232
    Likes Received:
    28
    here: http://www.mediafire.com/?dyb1cewl2ls