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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:31:30+00:00 2026-05-28T01:31:30+00:00

Suppose you’re typing a command line query into a MySQL database and you need

  • 0

Suppose you’re typing a command line query into a MySQL database and you need to cancel out and start over. From a bash shell you could just type ctrl-c and get a new prompt. In MySQL, ctrl-c would exit the client and return you to the shell.

For example, I have a long, complex SELECT statement typed in but I haven’t yet hit return. I realize that I don’t want to send the command but I want to have the command on-screen so I can use it as a reference. I’d like to bail out without quitting MySQL. Any ideas?

Key point: the command hasn’t yet been executed.

  • 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-28T01:31:31+00:00Added an answer on May 28, 2026 at 1:31 am

    Type \c.

    When you start up MySQL, you’ll likely see this message:

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    

    The “buffer” that it’s referring to is the command/query buffer.

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

Sidebar

Related Questions

Suppose I had a query select name from tbl where dept = 123 which
Suppose there is a MySQL user alice that is currently connected to the database.
Suppose you have a window with multiple buttons such as Ok/Cancel or Yes/No/Cancel. All
Suppose I need to create my own small DSL that would use Python to
Specifically, suppose I start with the string string =hello \'i am \' me And
Suppose , i have some x test-cases to be read from input, where each
Suppose i have an XML file, that i use as local database, like this):
Suppose we have a class A and class B and C inherit from it.
suppose we have three tables in the Database: tbl_companymaster(company_id(PK),company_name) tbl_papermaster(paper_id(PK),paper_name,rate) tbl_rate(rate_id(PK),company_id(FK ),paper_id(FK),rate) we have
Suppose a mysql 5.5 server uses the following configuration for storing innodb data innodb_data_file_path

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.