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 7815611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:34:27+00:00 2026-06-02T05:34:27+00:00

I have a question regarding how to set up local and production versions of

  • 0

I have a question regarding how to set up local and production versions of a WordPress website that uses, PHP an MySQL.

I want to have these two versions (local and production) use different databases because we can test.

I will be using git to push my changes up to the server.

I have MySQL installed locally, and a webserver set up locally, but I don’t know of a way to push mysql changes to the server and keep it connected with with git.

I will be working with several others so it needs to be using git for the database.

How would I go about doing this?

Thank you for any help!

  • 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-02T05:34:28+00:00Added an answer on June 2, 2026 at 5:34 am

    You can dump the scheme and/or the data to a file and then check that file into git.

    For example, this will dump the table schema and data to a file named [table_name].sql

    mysqldump --user=[user_name] -p --opt [local_database_name] [table_name] > [table_name].sql
    

    To load this data in production, you would do something like this:

    mysql --user=[user_name] -p [server_database_name] < [table_name].sql
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question regarding the meta property in php. I have set and
I have a question regarding the proper way to modify a php DateTime object.
i have a question regarding some complex data-binding. I want to be able to
I have a question regarding PHP and it's memory limit. I have an index.php
I have a question regarding CSS in Firefox. If i set a width of
I have a question regarding an SQL syntax. I have a mysql table like
I have a question regarding regarding the permissions. I believe that the 3 marks
I have a question regarding updating a MySQL database. I have three tables: Match,
I have question regarding the particular Naive Bayse algorithm that is used in document
I have a question regarding to the following lines: set list1 1 2 3

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.