Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL: check what version : 32 bit or 64 bit?

Can I tell what version (32 bit or 64 bit) of MySQL I am running by using Terminal?

like image 200
redconservatory Avatar asked Aug 12 '11 19:08

redconservatory


People also ask

Is there a 64-bit version of MySQL?

MySQL is available for Microsoft Windows, for both 32-bit and 64-bit versions. For supported Windows platform information, see https://www.mysql.com/support/supportedplatforms/database.html.

Can I use 32-bit MySQL on 64-bit Windows?

Although MySQL Installer is a 32-bit application, it can install both 32-bit and 64-bit binaries.

What version of MySQL is current?

The current latest stable version of MySQL is 8.0. To ensure that your database is running on the latest MySQL version, you can follow the MSQL community, where you can download the new version from the latest version list.


2 Answers

$ mysql --version mysql  Ver 14.14 Distrib 5.1.45, for apple-darwin10.2.0 (i386) using readline 6.2   $ echo '\s' | mysql -------------- mysql  Ver 14.14 Distrib 5.1.45, for apple-darwin10.2.0 (i386) using readline 6.2  Connection id:      105730 [...] Server version:     5.1.41 MySQL Community Server (GPL) [...] Uptime:         11 days 4 hours 2 min 6 sec  Threads: 2  Questions: 1141270  Slow queries: 0  Opens: 6137  Flush tables: 1  Open tables: 56  Queries per second avg: 1.182 -------------- 
like image 145
dossy Avatar answered Oct 04 '22 04:10

dossy


run this command in command line:

mysql> show variables like 'version_compile_machine'; 

then you get something like this:

+-------------------------+-------+ | Variable_name           | Value | +-------------------------+-------+ | version_compile_machine | i386  | +-------------------------+-------+ 1 row in set (0.00 sec) 

and then please check this: http://www.redhat.com/archives/rhl-list/2006-October/msg03684.html

you'll see that i386/i686 are 32 bit, and x86_64 is 64 bit.

Hope this helps.

like image 34
JohnnyHuo Avatar answered Oct 04 '22 02:10

JohnnyHuo