How to import *.sql into database?

Discussion in 'MySQL' started by silverfox, Jan 2, 2007.

  1. #1
    I just installed "osCAffiliate v2.0" into my server, and the sql file I need to import was only "13 kb", the strange thing is after I uploaded my "affiliate.sql" into my database table "*_affiliate", file size became "0", it's there any way I can check and make sure the files is there?

    [​IMG]
    http://img165.imageshack.us/img165/9296/uxt9.jpg
     
    silverfox, Jan 2, 2007 IP
  2. karan265

    karan265 Active Member

    Messages:
    1,691
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    90
    #2
    You should probably using phpmyadmin for doing that.
     
    karan265, Jan 2, 2007 IP
  3. silverfox

    silverfox Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    yes, I did using phpmyadmin to import my sql file, but I can't see my file after imported.
     
    silverfox, Jan 2, 2007 IP
  4. soniqhost.com

    soniqhost.com Notable Member

    Messages:
    5,887
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    240
    #4
    I can help you with that if you would like. PM ME
     
    soniqhost.com, Jan 2, 2007 IP
  5. itdevil

    itdevil Well-Known Member

    Messages:
    632
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    110
    #5
    got to

    http://yourdomain.com/phpmyadmin
    login using the dbusername / dbpassword

    and use import feature to load sql file.

    if you do not want to do that,

    then download 7zip and compress is using gz ext.
     
    itdevil, Jan 5, 2007 IP
  6. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can also try to dump your file the easy way with bigdump: www.ozerov.de/bigdump.php

    just setup your username and password before uploading the script.
     
    Pat Gael, Jan 6, 2007 IP
  7. magnumpi

    magnumpi Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    PHPmyadmin or drop to command line and upload it like that.
     
    magnumpi, Jan 8, 2007 IP
  8. digital_sc4rz

    digital_sc4rz Guest

    Messages:
    95
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I use phpmyadmin :cool: Just go to phpmyadmin select the database you want to import to and go to import and import the .sql file:D
     
    digital_sc4rz, Jan 17, 2007 IP
  9. West

    West Peon

    Messages:
    79
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you find the database is too large you can use SSH if you have access like that.

    You're going to need to change the obvious though.
     
    West, Jan 17, 2007 IP