Results 1 to 4 of 4
  1. #1
    Join Date
    May 2013
    Posts
    2

    Unanswered: set file size in MySQL

    Hello,

    i'm a beginner in database, I have a MySQL installed on my Linux desktop, I would like to create a database to store .ogg files, but MySQL don't allow me to store files bigger than 2,048KiB. What should I do?

    my table structure is :
    Code:
    mysql> show tables;
    +-------------------+
    | Tables_in_animals |
    +-------------------+
    | birds             |
    | music             |
    +-------------------+
    2 rows in set (0.00 sec)
    
    mysql> describe music;
    +------------+-----------------+------+-----+---------+----------------+
    | Field      | Type            | Null | Key | Default | Extra          |
    +------------+-----------------+------+-----+---------+----------------+
    | subject_id | int(5) unsigned | NO   | PRI | NULL    | auto_increment |
    | music      | longblob        | NO   |     | NULL    |                |
    +------------+-----------------+------+-----+---------+----------------+
    2 rows in set (0.00 sec)
    thanks.
    Last edited by rakoczimrks; 05-27-13 at 15:20. Reason: table structure inserted

  2. #2
    Join Date
    Sep 2009
    Location
    San Sebastian, Spain
    Posts
    880
    That is not true, longblob can handle up to 4Gb in size. How are you inserting the contents into the database? Are you using PHP?
    Ronan Cashell
    Certified Oracle DBA/Certified MySQL Expert (DBA & Cluster DBA)
    http://www.it-iss.com
    Follow me on Twitter

  3. #3
    Join Date
    May 2013
    Posts
    2
    I tried to load sample data with phpMyAdmin
    see the screenshot below

    phpScreenShot.jpg


  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    Quote Originally Posted by rakoczimrks View Post
    I tried to load sample data with phpMyAdmin
    see the screenshot below

    phpScreenShot.jpg

    that's more likely to be an internal limit to PHPMyAdmin.

    You may need to adjust the max_packet_size

    however it does be g the question why are you trying to store stuff like music files INSIDE a db, as opposed to the URL to the file.
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •