Check Mysql Version Mac

  1. Check Mysql Version Windows
  2. Mysql

The latest version of MySQL is 8.0.19, released on 13 January 2020. However, there is still support of version 5.6.45, but it will end soon. Using the outdated version of MySQl that does not have any support is not smart. Do update your MySQL version to the more advanced and quick versions. Ways to Check MySQL Version. Check MySQL Version with V Command. The easiest way to find the MySQL version is with the command: mysql -V. The command mysql –V is not OS specific. This command works on Windows, OS X, and Linux distributions including Ubuntu. Dec 03, 2020 How can I check (step-by-step ) the version of mySQL installed on my Mac 10.8.5? I tried using command prompt, but couldn’t figure out. How to solve this problem? 1: Every time you used the mysql console, the version is shown. Mysql -u user Successful console login shows the following which includes the mysql server version.

The first step in setting up a MySQL database server on your Mac is to download the MySQL installer. MySQL offers a free edition called the MySQL Community Server. Click the link below to be taken to the download page for the MySQL Community Server. In the 'Select Operating System' box, select macOS.
MySQL Community Server Download
Click the Download button next to the first option, the DMG archive download. At the time of this writing, version 8 of the community server is the default download.


Once the DMG file is downloaded, double-click the DMG file to open the disk image. Once the disk image is opened, a new Finder window will appear with a .pkg file named something like the following:


To install MySQL, do the following steps:

  • 1. Double-click the .pkg file. This will launch the MySQL installer

  • 2. Continue with the default options. At one point during the installation, the installer will ask whether to use strong password encryption or legacy password encryption. Some MySQL tools do not yet support strong password encryption. If the tools you are using to connect to MySQL do not support strong password encryption, select the legacy password encryption option. Note that RazorSQL supports strong password encryption.

  • 3. Make sure to enter a password for the root MySQL user when prompted, and select the 'Start MySQL Server once the installation is complete' option as well.

When the installer completes your MySQL server will be installed and running on your Mac. Once you have gotten to this point, you have a running MySQL server with one user - the root user - and the default database named mysql. Now it is time to connect to your MySQL database, create a user, and create a database.

Check Mysql Version Mac

To get connected to your MySQL database, you can use a tool like RazorSQL. RazorSQL can be downloaded from the Download link on the header at the top of this page. Once RazorSQL is downloaded and installed, do the following to connect to your MySQL database:

  • 1. Select the Connections -> Add Connection Profile menu option

  • 2. Select MySQL as the database type and click 'Continue'

  • 3. Enter any name you wish for the connection profile name and enter a name for the profile folder if desired

  • 4. For the Login, enter root. For the password, enter the root password you gave to the MySQL installer

  • 5. For the Host or IP Address, enter localhost

  • 6. For the database name, enter mysql

  • 7. Click Connect

At this point, you should be connected to your local MySQL database in RazorSQL.

After connecting, you can create a new database by doing the following:

Check Mysql Version Windows

  • 1. Select the DB Tools - Create -> Create Database menu option

  • 2. Enter a database name and then click 'Generate SQL'

  • 3. Click the Execute SQL button to create the database.

If you would like to manually create the MySQL database, execute the following command. This creates a new database named sample with UTF8 support:

create database sample character set 'utf8mb4'

Below is a screen shot of the create database window.

After creating the sample database, we can then create a new user. This will allow us to connect to the MySQL database without using the root user.

To create a new user, select the DB Tools -> Create -> Create User menu option. If you installed MySQL version 8, make sure the 'Use MySQL 8 Syntax' box is selected.

If you want the user to be able to access your MySQL instance from other machines, make sure to check the 'All Domains' option, or else click the 'Select Domains' button to add specific ip addresses / hosts.

You will need to give the new user access to the sample database. To do this, either click the 'Select Databases' button and add the sample database, or click the 'All Databases' box to give the new user access to all databases.


Click the Generate SQL button to preview the commands for creating the user. Click the Execute SQL button to create the user. Below are example commands generated by the create user tool. These can be manually executed to create the user if not using RazorSQL or the create user tool:

CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testpass';CREATE USER 'testuser'@'%' IDENTIFIED BY 'testpass';GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'localhost';GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'%';flush privileges;


Below is a screen shot of the RazorSQL MySQL Create User tool.

After creating the new user, you can set up a new RazorSQL connection to the database using the new user instead of the root user. Once you are connected with your new user, below are some sample commands to create a new table, insert data into the table, and query data in the table.

CREATE TABLE department ( dnumber INT NOT NULL, dname VARCHAR(25) NOT NULL, PRIMARY KEY (dnumber));insert into department values (1, 'Headquarters');insert into department values (4, 'Administration');insert into department values (5, 'Research');select * from department;

The above commands can be executed manually, or you can use the following tools in RazorSQL to create the table and insert the data using visual tools:
RazorSQL MySQL Create Table Tool
RazorSQL MySQL Table Editor

MySQL Community Edition is the freely downloadable version of the world's most popular open source database. It is available under the GPL license and is supported by a huge and active community of open source developers.

The MySQL Community Edition includes:

  • SQL and NoSQL for developing both relational and NoSQL applications
  • MySQL Document Store including X Protocol, XDev API and MySQL Shell
  • Transactional Data Dictionary with Atomic DDL statements for improved reliability
  • Pluggable Storage Engine Architecture (InnoDB, NDB, MyISAM, etc)
  • MySQL Replication to improve application performance and scalability
  • MySQL Group Replication for replicating data while providing fault tolerance, automated failover, and elasticity
  • MySQL InnoDB Cluster to deliver an integrated, native, high availability solution for MySQL
  • MySQL Router for transparent routing between your application and any backend MySQL Servers
  • MySQL Partitioning to improve performance and management of large database applications
  • Stored Procedures to improve developer productivity
  • Triggers to enforce complex business rules at the database level
  • Views to ensure sensitive information is not compromised
  • Performance Schema for user/application level monitoring of resource consumption
  • Information Schema to provide easy access to metadata
  • MySQL Connectors (ODBC, JDBC, .NET, etc) for building applications in multiple languages
  • MySQL Workbench for visual modeling, SQL development and administration

Available on over 20 platforms and operating systems including Linux, Unix, Mac and Windows.