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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:35:20+00:00 2026-06-04T05:35:20+00:00

I have around 200 database all managed under cpanel phpmyadmin. I need to make

  • 0

I have around 200 database all managed under cpanel phpmyadmin. I need to make similar edits to each of this operation. (2 SQL statements)

I would like to know how do i execute the queries so that it can alter the tables all in all the 200 database. (is there a feature to alter all dbs )

Have no issue executing the queries, however i feel it is inefficient as what i am doing now is to click into each db and execute the sql for that db -> have to do 200+ times.

  • 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-04T05:35:21+00:00Added an answer on June 4, 2026 at 5:35 am

    Good question, you can do following:

    // Connect to your mysql server
    mysql_connect(...);
    
    // Execute command which gets you list of all database from mysql server
    $rs = mysql_query("SHOW DATABASES");
    
    // Loop through all of them and execute your sql statements;
    while ( $ds = mysql_fetch_assoc($rs) )
    {
    
        mysql_select_db( $ds['Database'] );
        $sql = "some sql";
        mysql_query($sql);
    }
    

    I think something like above should serve the purpose.

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

Sidebar

Related Questions

I have an array which contains around 50-200 hyperlinks. How can I pass this
I have around 200 jpg images. I need to stack them so that i
we have a database table which has around 200,000 records. which includes 3 ntext
I have a PHP script that connects to an API and grabs around 200
I have around 4000 entities that I need to insert into a Java App
I have around 9 web parts and 3 pages to be deployed. Each page
I have a small mysql database (200 MB) running on a server. The application
I have two types of custom handhelds which are similar, but slightly different, each
In a database I have less than 200,000 records in a table, and in
I need to query a table in an SQLite database to return all the

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.