1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

MySQL import

Discussion in 'Site & Server Administration' started by DarrenC, Jun 11, 2005.

  1. #1
    Hi folks, I've exported my .sql file from the old database, and I want to import it into the new database.

    How do you do it :eek:

    I can't find an import link, I'm baffled.

    Any ideas?
     
    DarrenC, Jun 11, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Run mysql and use the source command. For example:

    # mysql -u root -p database-name
    mysql> source ~/filname.sql

    J.D.
     
    J.D., Jun 11, 2005 IP
  3. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Umm I'm been thick I know J.D but I have zero knowledge of mysql (I shouldn't be let free with technology!)

    Where do I run the mysql?

    I am using the myphp admin
     
    DarrenC, Jun 11, 2005 IP
  4. mushroom

    mushroom Peon

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are using phpMyAdmin
    1. click Sql
    2. click browse
    3. browse for the sql file on your comupter and ok
    4. click go
     
    mushroom, Jun 11, 2005 IP
  5. TechEvangelist

    TechEvangelist Guest

    Messages:
    919
    Likes Received:
    140
    Best Answers:
    0
    Trophy Points:
    133
    #5
    I just downloaded and installed PHPMyAdmin. All of my databases are visible and I can create tables okay, but when I try to do any type of import, I get a "Cannot find server or DNS Error" message.

    Other than that, everything appears to function okay. I normally do everything from the command line, but PHPMyAdmin looks like it's easy to use. Are there an additional configuration issues that I may be missing? PHPMyAdmin never asks for a Username or Password.

    Any clues as to what might be causing this? The file is about a one meg datafeed text file. All the columns were previously set up in the table.
     
    TechEvangelist, Jun 11, 2005 IP
    Mia likes this.
  6. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Is phpmyadmin installed locally or on a live/remote server?
    Could be that php upload is set for less than 1mb although the default is 2mb
     
    cyanide, Jun 12, 2005 IP