{"id":14471,"date":"2022-01-28T05:47:19","date_gmt":"2022-01-28T05:47:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=14471"},"modified":"2022-01-28T05:47:19","modified_gmt":"2022-01-28T05:47:19","slug":"ways-to-check-mysql-version-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/ways-to-check-mysql-version-in-linux\/","title":{"rendered":"Ways to Check MySQL Version in Linux"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>MySql is a relational database management system that permits users to organize data in the database. Knowing which MySQL version is running on your server may be useful in some cases due to certain differences between MySQL versions. If you&#8217;re installing an application that requires a specific MySQL version, for example, you&#8217;ll need to know what version of MySQL your MySQL server is before you start.<\/p>\n<p>In this article, I will provide you with different ways to check the MySQL version in Linux.<\/p>\n<h2>How to check the MYSQL version<\/h2>\n<h3>Using the command line, you can check the MYSQL version<\/h3>\n<p>Enter the following command into your terminal:<\/p>\n<pre>kusal@linuxways:~$ mysql -V<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1834\" height=\"113\" class=\"wp-image-14472\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640.png 1834w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640-1024x63.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640-768x47.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-640-1536x95.png 1536w\" sizes=\"auto, (max-width: 1834px) 100vw, 1834px\" \/><\/p>\n<p>To ascertain the server version, run the binary with the \u2013version or -V lines as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1833\" height=\"111\" class=\"wp-image-14473\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641.png 1833w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641-1024x62.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641-768x47.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-641-1536x93.png 1536w\" sizes=\"auto, (max-width: 1833px) 100vw, 1833px\" \/><\/p>\n<p>Note: Before quitting, the command above will indicate the version of MySQL installed.<\/p>\n<p>To determine the installed MySQL version, use the following command with the mysqladmin program:<\/p>\n<pre>kusal@linuxways:~$ mysqladmin -V<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1834\" height=\"105\" class=\"wp-image-14474\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642.png 1834w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642-300x17.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642-1024x59.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642-768x44.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-642-1536x88.png 1536w\" sizes=\"auto, (max-width: 1834px) 100vw, 1834px\" \/><\/p>\n<h2>Using the MYSQL shell, you can check the MYSQL version<\/h2>\n<p>The MySQL utility command client is used to find out what version of MySQL your operating system has installed. On the MySQL shell, use the following command to connect to the MySQL server.<\/p>\n<pre>kusal@linuxways:~$ sudo mysql<\/pre>\n<p>Once the server has been connected to the MySQL shell, the MySQL version will be displayed on the screen, as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1837\" height=\"672\" class=\"wp-image-14475\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643.png 1837w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643-300x110.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643-1024x375.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643-768x281.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-643-1536x562.png 1536w\" sizes=\"auto, (max-width: 1837px) 100vw, 1837px\" \/><\/p>\n<p>The status command displays the current status of the server, as well as the MySQL version.<\/p>\n<p>To use the status command, run the following command:<\/p>\n<pre>mysql&gt;status<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1830\" height=\"959\" class=\"wp-image-14476\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644.png 1830w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644-300x157.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644-1024x537.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644-768x402.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-644-1536x805.png 1536w\" sizes=\"auto, (max-width: 1830px) 100vw, 1830px\" \/><\/p>\n<p>Use the query version variables as suggested to acquire more information about the MySQL installed version and all of its related components:<\/p>\n<pre>mysql&gt; SHOW VARIABLES LIKE \"%version%\";<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1826\" height=\"884\" class=\"wp-image-14477\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645.png 1826w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645-300x145.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645-1024x496.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645-768x372.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-645-1536x744.png 1536w\" sizes=\"auto, (max-width: 1826px) 100vw, 1826px\" \/><\/p>\n<h2>Using MySQL Workbench, you can check the version of MySQL.<\/h2>\n<p>Another way to check the version of MySQL installed on your machine is to use MySQL Workbench. Connect to the server using MySQL Workbench and then proceed as follows:<\/p>\n<p>On the MySQL workbench main menu, select the server. Select &#8220;Server Status&#8221; from the drop-down menu. Both the server information and the MySQL version will be displayed in the server status.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1837\" height=\"506\" class=\"wp-image-14478\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646.png 1837w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646-1024x282.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646-768x212.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-646-1536x423.png 1536w\" sizes=\"auto, (max-width: 1837px) 100vw, 1837px\" \/><\/p>\n<h2>Using PHP, you can check the version of MySQL<\/h2>\n<p>If you&#8217;re on a shared hosting account and don&#8217;t have access to a command line or a MySQL client like PhpMyAdmin, you can use PHP to find out what MySQL server version you&#8217;re running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1420\" height=\"536\" class=\"wp-image-14479\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-647.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-647.png 1420w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-647-300x113.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-647-1024x387.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-647-768x290.png 768w\" sizes=\"auto, (max-width: 1420px) 100vw, 1420px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>The article gives you an idea on what are the ways to check the MySQL version in Linux. Thank you for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction MySql is a relational database management system that permits users to organize data in the database. Knowing which MySQL version is running on your server may be&hellip;<\/p>","protected":false},"author":1,"featured_media":14536,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[35,27],"class_list":["post-14471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-linux","tag-mysql"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=14471"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14471\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/14536"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=14471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=14471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=14471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}