HomeLinuxThe right way to Test MySQL Model Utilizing Home windows Terminal?

The right way to Test MySQL Model Utilizing Home windows Terminal?


Generally, customers encounter conditions the place they should know the present MySQL model. Likewise, it may be potential that specific options will not be suitable with their system, otherwise you need to improve the present system to new options and higher functionality for his or her system. In such a state of affairs, verification of the put in MySQL model.

This put up will talk about the other ways to verify the MySQL model utilizing a Home windows terminal.

The right way to Test MySQL Model Utilizing Home windows Terminal?

To verify the MySQL model utilizing the Home windows terminal named “Command Immediate”, there are a number of statements and instructions which might be used for these corresponding functions. These statements are listed under:

Let’s take a look in any respect of them one after the other!

Methodology 1: Test MySQL Model Utilizing the “SELECT VERSION” Assertion

The “SELECT” command can be utilized together with the “@@model” variable or the “model()” operate to point out the present standing of MySQL. To take action, observe the supplied steps.

Step 1: Redirect to Home windows Terminal

At first, swap to the “Command Immediate” by looking from the Startup menu:

Step 2: Join With MySQL Database

Run the next command to log in and join together with your MySQL server domestically:

Within the above-stated command:

  • -u” possibility denotes the consumer.
  • root” is the default username supplied whereas putting in MySQL.
  • -p” possibility represents the password.

Consequently, you can be requested to enter the consumer password:

Step 3: Run the “SELECT” Command

Now, execute the “SELECT” command with the “model()” operate to view the present model of our MySQL database:

Based on the next output, our MySQL database has an “8.0.32” model:

We will additionally exchange the “model()” with the “@@model” variable for checking the present model of our MySQL database:

Methodology 2: Test MySQL Model Utilizing “SHOW VARIABLES LIKE” Assertion

One other strategy to show the details about the MySQL model is by executing the “SHOW GLOBAL VARIABLES LIKE ‘<%variable-name%>’” assertion:

SHOW GLOBAL VARIABLES LIKE ‘%model%’;

Right here:

  • SHOW” command is a particular question used to show the schema’s info of desired information saved on the database.
  • GLOBAL VARIABLES” assertion is used to view the worldwide system variable values.
  • LIKE ‘<%variable-name%>’” clause signifies which variable names must match.

When the above-stated assertion is executed, all variables having names beginning with “model” are displayed:

Methodology 3: Test MySQL Model Utilizing “STATUS” Command

The “STATUS” command can be utilized to get the present MySQL database model. When it’s executed, the related output shows the uptime info together with the element about how lengthy the MySQL server has been executing, threads particulars, and different helpful info

That’s it! You’ve discovered totally different strategies for checking the MySQL model utilizing the Home windows terminal.

Conclusion

To verify the MySQL model by using the Home windows terminal, totally different instructions and statements are used, such because the “SELECT VERSION” assertion, the “SHOW VARIABLES LIKE” assertion, and the “STATUS” command. The “SHOW VARIABLES LIKE” assertion will show the actual variable values. The output of the “STATUS” command comprises uptime info and particulars about how lengthy the MySQL server has been executing, thread particulars, and different helpful particulars. This put up described the strategies of checking the MySQL model utilizing a Home windows terminal.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments