This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes simple mysql questoion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "simple mysql questoion" Watch "simple mysql questoion" New topic

simple mysql questoion

Eric Howell
Ranch Hand

Joined: Nov 26, 2000
Posts: 63
How do I create a new database from a dump?(I have a .sql dump I need to put on my machine)
Not too sure of the best command to do this using mySQL3.2
Thanks in advance
Hartmut Ludwig
Ranch Hand

Joined: Aug 31, 2002
Posts: 51
Hi, Eric,
to get the solution for your problem do the following steps:
  • go to the MySQL Homepage (
  • you will find a search field to the left. Enter 'dump' in it
  • you will get a result of your search
  • click on the first link of the result
  • locate the line "You can read this back into MySQL with..."

  • The MySQL Manual is a great source of information for problems of this kind. You will get it much quicker and more detailled, if you search there first, before you post here.
    good luck
    Eric Howell
    Ranch Hand

    Joined: Nov 26, 2000
    Posts: 63
    Thanks Hartmut
    Still having problems.
    I can't figure out where I have to put the dump. Do I place it in the bin directory ?
    I tried a few of the commands and couldn't seem to progress. At the sql prompt what command should I use ?
    The batch file is called backup.sql
    Thanks for your help in advance
    Eric Howell
    Ranch Hand

    Joined: Nov 26, 2000
    Posts: 63
    Thanks Hartmut
    Am now sorted. I used SOURCE command in the mySQL client and it worked.
    Found this out from a FAQ site:
    Check it out
    Thanks again for the help
    I agree. Here's the link:
    subject: simple mysql questoion
    It's not a secret anymore!