Results 1 to 4 of 4

Importing .SQL file

This is a discussion on Importing .SQL file within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Please can somebody tell me how I import my database from home. I have exported my database at home to ...

      
  1. #1
    Anonymous
    Guest


    Default Importing .SQL file

    Please can somebody tell me how I import my database from home. I have exported my database at home to a file called catalog.sql. How do I import this to my computer at work.

    I have tried using the following at the command prompt:

    c:\mysql\bin\mysql -u root -p <c:\backup\catalog.sql>

    but I am getting a File Creation error.

    Can anyone help?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default

    You may not have root access, check the login details. Also, you could try using phpmyadmin, and running a query from there.

  3. #3
    Anonymous
    Guest


    Default

    I'm sorry but could you tell me how i would run the query from MySQL. I have got PHPMyAdmin installed.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default How to...

    In phpmyadmin, select your shopping cart database. Depending on your version of phpmyadmin, find the tab that says "SQL" and click it, or on older versions, scroll down and look for a text box the has the words "Run SQL query/queries on database" near it.

    Once you have found this, simply copy and paste your sql file to the text box, or click the browse button, and locate the sql file on your hard drive. Select it and click the "Go" or "Run Query" button (again depending on your version of phpmyadmin).

    You will get a query report in a moment, it will either show all your data, or an error message. If you get an error, there is something wrong with the syntax of the sql file.

    Good luck.

Similar Threads

  1. Importing database from another oscommerce site...
    By aussiejay in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 06-11-2006, 06:10 PM
  2. Installed and upgrading from osc 2 database needs importing
    By gamefreak7 in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 07-17-2005, 11:31 AM
  3. Importing a Click Cart Pro product.csv file to oscommerce
    By nut in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 02-26-2005, 08:11 AM
  4. Importing from msAccess
    By damnedpig in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 04-16-2004, 12:19 PM
  5. Importing data with Easypopulate
    By michael_work2003 in forum osCmax v1.7 Discussion
    Replies: 8
    Last Post: 03-27-2004, 01:30 AM

Bookmarks

Posting Permissions

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