Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: mysql dump

  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Posts
    131
    Thanks
    5
    Thanked 0 Times in 0 Posts

    mysql dump

    hello,

    I'm using MYSQL dump to back-up my database. What if i don't want the data inside the tables? How can i have it back up the tables but not the data?

    currently i'm using:
    Code:
    mysqldump -h localhost -u tony -p test > test.sql
    Thanks in advance

    Tony
    ---------
    Client / Server Side Programmer II

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Use --no-data. For a handy command reference, check out the manual:

    http://dev.mysql.com/doc/refman/4.1/en/mysqldump.html


  •  

    Posting Permissions

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