Results 1 to 5 of 5

Thread: Can mySQL generate scripts for me?

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Can mySQL generate scripts for me?

    Currently, I've got mySQL on my laptop, and I have one particular table in which I have pre-determined values.

    Now, I want to be able to enter these values onto the mySQL database on my web server.

    I don't want to have to manually enter the values, as that would take forever, since there are about 110 fields I want to enter.

    Can mySQL generate a SQL script for me to do this? Or is there some other method for accomplishing this?

    TIA

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    *FROGBUMP*

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    use phpmyadmin to make a backup in a sql file. or you can use mysqldump() at the command prompt or you can go into mysql/bin/winmysqladmin.exe and do it there.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by phpman
    use phpmyadmin to make a backup in a sql file. or you can use mysqldump() at the command prompt or you can go into mysql/bin/winmysqladmin.exe and do it there.
    I spent about 20 minutes trying various combinations with mysqldump at the mysql> command prompt. :aargh:

    Finally, I had the brains to go back to c:/mysql/bin> and try it


    mysqldump -u username -p password datbasename > "anyfile.sql"

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    40

    LOOKS LIKE

    someone just copy and paste the code

Posting Permissions

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



Click Here to Expand Forum to Full Width