Very intresting problems on mysql database

Discussion in 'MySQL' started by manojkumarphate, Mar 25, 2008.

  1. #1
    Hello all,
    my problem is here

    i download zip files from another url to my server. Then extract zip files into datewise folder. zip files contains three csv data files. each file contains minimum 80000 to 150000 thousand records. i want to create dynamic table datewise & insert that csv into created table. for that i use LOAD DATA INFILE mysql command . It works fine on my local machine but i want to insert database on server.

    let me tell what i completed .
    i download zip files & store in date wise folder on server. then extract into datewise folder. but when i try to import that csv files i comes error file path not found.


    /user/local/apache/htdocs/~username/datewisefoldername/extract_foldername


    so tell me how should i use LOAD DATA FILE command or there is any other solution .

    I trying for from last 2 weeks but not found solution. On my local machine it works fine but on server it's not.

    please give me solution ASAP.

    Thanks in advance.......... :)
     
    manojkumarphate, Mar 25, 2008 IP
  2. argjendii

    argjendii Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    oh never dont have this problem
     
    argjendii, Mar 26, 2008 IP
  3. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #3
    You only have the path problem or mysql does not have rights to read the directory.
     
    mwasif, Mar 26, 2008 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    You should check mysql documentation (dev.mysql.com/doc/refman/5.0/en/load-data.html) related to this issue.
     
    mwasif, Mar 26, 2008 IP
  5. MyCrib

    MyCrib Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    there is possible problem with permission issues. You have to check if folder has permission. Also, make sure if your mysql username has permission for LOAD DATA FILE.
     
    MyCrib, Apr 5, 2008 IP