Proper SQL Synatx for an import

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Proper SQL Synatx for an import

    I have done a mysqldump of my online database to my PC, where I also have MySQL
    running for testing purposes. I have my local database (chuckomalley) in the
    C:\mysql\data\chuckomalley\ folder. I saved the dump file
    (chuckomalleydump.sql) in the same folder. I want to use the mysqlimport
    function to restore the dump into my local database so that my tables are
    syncronized with my live database (My host provider will now allow live
    replication for security purposes.) What is the proper syntax for getting the
    dump file to populate the tables? I have the dump file with drop table options
    already in the file so it is a matter of using the right syntax to populate it
    correctly. I checked the mysql manual (section 2.10.8) but nothing works
    (keeps giving me a syntax error.) I used PHP My Admin to create the dump file
    but I do not have PHP My Admin on my local PC. And to be honest, I'd rather
    learn the code instead of using a GUI. Thanks in advance. Cheers Chuck

    chuckomalley Guest

  2. Similar Questions and Discussions

    1. Proper way to do modules
      Hi all, What's the proper way to create a module in the Flex editor and have it referenced by other applications? specifically, when i make a...
    2. this isn't really the proper forum but...
      it seems like this forum is a magnet for a lot of people, from different backgrounds that know the ins and outs of design,printing,etc, so i'm going...
    3. Proper way to resize
      My image off the digital camera comes in at 26.667 x 35.556, resolution 72. Document size 14.1 MB What is the best way and in what order to bring...
    4. proper name for one who uses ruby
      I've seen two: Rubyist and Rubicon. Which is correct? -Kurt
    5. What is a proper way to set up smtp
      You may have to add the IP address of the server in the relay restrictions: - Go to Control Panel, Administrative Tools, IIS - Right click on...
  3. #2

    Default Re: Proper SQL Synatx for an import

    .oO(chuckomalley)
    >What is the proper syntax for getting the
    >dump file to populate the tables? I have the dump file with drop table options
    >already in the file so it is a matter of using the right syntax to populate it
    >correctly.
    I usually do it with the 'mysql' command:

    mysql -uUsername -pPassword Database < dump.sql

    Micha
    Michael Fesser Guest

  4. #3

    Default Re: Proper SQL Synatx for an import

    BINGO! That did the trick. Thanks.

    Cheers

    Chuck
    chuckomalley Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139