Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:34:13+00:00 2026-05-30T06:34:13+00:00

I have a folder with full of dump files as dumpA.sql, dumpB.sql, etc. I

  • 0

I have a folder with full of dump files as dumpA.sql, dumpB.sql, etc.

I use mysql command to run each dump individually. I’m planning to whole collection at once.

I’m using Windows.

Here is what i do:

C:\> cd c:\xampp\mysql\bin

C:\xampp\mysql\bin>mysql -u root -h 127.0.0.1;

Once i login, i do the following:

mysql> use databaseName;
mysql> source folder/dumpA.sql;

I repeat this process for each file:

mysql> source folder/dumpB.sql;

Time consumig…

Is there a way to run all dumps within the folder at once?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:34:16+00:00Added an answer on May 30, 2026 at 6:34 am
    FOR %s IN (*.sql) DO mysql -u root -h0 databaseName < %s
    

    on the batch file you will need to use %%s instead of %s

    enjoy 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder full of script files. When I run them, a program
I have a folder full of *.command files on my OS X workstation. (For
I have a folder full of SWF files. Each SWF is its own animation.
I have a folder full of 100-odd Access97 files. I need to update them
I have a folder full of files and I want to search some string
I have a folder full of zipped files (about 200). I would like to
I have a folder full of Windows .URL files. I'd like to translate them
So I have a huge folder full subfolders with tons of files, and I
I have a folder full of mp3 files. They are named consecutively 01.mp3 through
I have a folder full of text files. I need to append the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.