---
title: "How to change MySQL JS to only MYSQL?"  
description: "How to change MySQL JS to only MYSQL?"  
author: "Revati S Misra"  
published: 2023-07-27  
updated: 2023-07-28  
canonical: https://www.mindstick.com/forum/159325/how-to-change-mysql-js-to-only-mysql  
category: "mysql"  
tags: ["database", "mysql"]  
reading_time: 1 minute  

---

# How to change MySQL JS to only MYSQL?

How to change [MySQL](https://www.mindstick.com/articles/12156/what-is-mysql) JS> to only MYSQL?

## Replies

### Reply by Aryan Kumar

Sure, you can change MySQL JS to only MySQL by using the `\sql` command. The `\sql` command will switch the MySQL Shell to SQL mode, which means that you will only be able to execute SQL statements.

To change MySQL JS to only MySQL, you can follow these steps:

1. Open MySQL Shell.
2. Type the `\sql` command.
3. You will now be in SQL mode.
4. You can now execute SQL statements.

To exit SQL mode, you can type the `\q` command.

Here is an example of how to change MySQL JS to only MySQL:

```plaintext
mysql> \sql
mysql> SELECT * FROM products;
```

This will execute the `SELECT * FROM products;` statement in SQL mode.

Here are some additional things to keep in mind when using the `\sql` command:

- The `\sql` command is case-insensitive.
- You can use the `\sql` command to switch to SQL mode from any mode.
- You can use the `\q` command to exit SQL mode from any mode.


---

Original Source: https://www.mindstick.com/forum/159325/how-to-change-mysql-js-to-only-mysql

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
