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

  • SEARCH
  • Home
  • 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 7738639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:19:07+00:00 2026-06-01T08:19:07+00:00

I have all my tables, views, triggers in different files (Table1.sql, Table2.sql, View1.sql,…), and

  • 0

I have all my tables, views, triggers in different files (Table1.sql, Table2.sql, View1.sql,…), and I need to combine all my model scripts to create a allinone.sql script (e.g. to a deliverable for deploy). Right now I can combine all using “type” command like this:

type *.sql > allinone.sql (or cat in bash)

But, as I have referential integrity, I need to stablish the order to merge the files. (otherwise the allinone.sql script will fail by referential integrity)

Do you know any software or method to do that?

  • 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-06-01T08:19:09+00:00Added an answer on June 1, 2026 at 8:19 am

    disable fkey check before running your script

    SET FOREIGN_KEY_CHECKS = 0;
    

    at the end, type

    SET FOREIGN_KEY_CHECKS = 1;
    

    to enable your fkey check

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

Sidebar

Related Questions

In my database I have some tables and views. How can I export all
I have a simple table view which is editable. All I need the user
I have some tables. These tables all have one column in common called 'classified_id':
I have the following query (all tables are innoDB) INSERT INTO busy_machines(machine) SELECT machine
All tables in my database always have an id (autoincrement), at column 0 regardless
I have a 5GB database, all tables are MyISAM. It runs into heavy load
I have a load of tables all with the same 2 datetime columns (lastModDate,
I have 3 similar tables, that would all have the same enum type field.
I've got the following tables: magazine_tags news_tags page_tags content_tags faq_tags They all have exactly
I need to write some sql that will allow me to query all objects

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.