Press "Enter" to skip to content

How to Run Query in MySQL Workbench?

In MySQL Workbench, follow these steps to run a query.

Run/Execute a Query in MySQL Workbench

  1. Open MySQL Workbench and connect to the database and set a default database.
  2. Then open an SQL editor by clicking on the menu File > New Query Tab or by pressing the key Ctrl+T.
  3. Then in the SQL editor type your query, for example, select * from customer, then press Ctrl+Enter to run the current query in MySQL Workbench. To run the whole SQL script press Ctrl+Shift+Enter.
  4. You can also click the buttons highlighted below in the image. Button 1 to execute the whole script and button 2 to run the query under the cursor.

Run query in MySQL Workbench

 

Vinish Kapoor

Hi, I am a full stack developer and writing about development. I document everything I learn and help thousands of people. foxinfotech.in is created, written, and maintained by me; it is built on WordPress, and hosted by Bluehost. Connect with me on Facebook, Twitter, GitHub, and get notifications for new posts.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *