Клиент для подключения к mysql windows

To interact with MySQL databases, it’s common to employ MySQL GUI clients. They enable users to visually view, create and modify database objects such as tables, rows, and columns. Some familiar features of MySQL GUI clients include SQL generator and export data, which makes designing, creating, and administering MySQL databases easier and more convenient. Here, we gathered 5 best MySQL GUI Clients on the market right now.

The Official: MySQL Workbench#

MySQL Workbench is a free database design and model access tool for MySQL, meant for database architects, developers, and of course, DBAs. It is available on Windows, Linux, as well as MacOS. Since the official MySQL vendor offers it, it looks like it’s going to be free and maintained for the foreseeable future.

MySQL Workbench’s main features can be grouped threefold:

  1. Database design and modeling: you can create and edit your databases, tables, and their relationships visually. The ER diagram comes in handy for complex database architecture.

    mysql-workbench-erd

  2. SQL development: with the built-in SQL editor, you can build, edit, and run SQL queries against MySQL databases. It includes some useful mechanisms to aid in writing and debugging SQL statements, including color syntax highlighting, context-sensitive help, and auto-complete.

    mysql-workbench-sql-editor

  3. Server Administration: MySQL Workbench offers a centralized platform to manage user accounts, export/import data, backup/restore databases, monitor server performance, and more to ease admin work.

    mysql-workbench-dashboard

The Old School: phpMyAdmin#

phpMyAdmin is a web-based interface to MySQL and MariaDB written in PHP that was first released back in 1998. It’s open-source and free to use. For over 20 years, phpMyAdmin remains one of the most popular administration tools for MySQL databases, with a large community of users and contributors.

A range of features are available (managing databases, tables, users, permissions, etc) and can be performed via the user-friendly interface, you can also execute SQL queries directly. However, being web-based has pros and cons: phpMyAdmin is available on all the platforms with a web browser, yet it can be prone to security attacks such as SQL injection, so make sure to take proper precautionary measures.

phpmyadmin

BTW, Adminer, formerly called phpMinAdmin, as the name suggests, is a mini phpMyAdmin version.

The Power Couple: Navicat & DBeaver#

Navicat#

Navicat’s first release came in 2002 and back then, it was a simple application only available for MySQL on Windows. Now it’s available on macOS and Linux, with a long list of compatible databases, including Redis, PostgreSQL, SQL Server, Oracle, MariaDB, SQLite, MongoDB, and a handful of cloud databases.

It is not open-source, nor does it have a free offering, you can only choose between the premium and lite (with a compact list of features and database support as compared to the premium versions.

With Navicat, you can connect to multiple databases on a single GUI, which is convenient to manage and compare data across different platforms.

navicat

Other features Navicat offers include data modeling and design, data synchronization between databases, backup and restore, data import/export, and SQL Development (it has a built-in SQL editor for users to write and optimize SQL queries).

Overall, Navicat is a comprehensive database management tool for novice and experienced users.

DBeaver#

Unlike Navicat, which only offers commercial versions, DBeaver offers both open-source and commercial products. It started as a hobby project back in 2010 and was open-sourced for use in 2013. The OS version caters to most database management and administration needs, while the commercial version extends the capabilities with additional advanced features like reverse engineering, data modeling, collaboration tools, and tech support.

dbeaver

Currently, it supports 80+ databases (SQL, NoSQL, document-oriented, key-value, big data, cloud, you name it). DBeaver is a desktop client, if you prefer web-based tools, they also have CloudBeaver.

The Starlet: TablePlus#

Starting in 2017, TablePlus is the newbie on the list, and its modern and simple UI reflects it. It supports most relational databases and some NoSQL ones. When they just started, they only supported macOS, but it is now available on Windows, Linux, and iOS (!). It is not open-source, but the roadmap is open and anyone can open an issue on their GitHub Issue Tracker. TablePlus has two plans: a free tier (has no limit on trial time) and a paid subscription model (license) with extended features.

tableplus

It’s worth mentioning that DBngin, a tool to spin up a local database server (currently supports PostgreSQL, MySQL, and Redis) on your Mac, belongs to TablePlus and is open-source. You can connect it to TablePlus, meaning you can manage your local databases visually all in one go.

Final Thoughts#

MySQL GUI Clients can be used to help you manage databases with more confidence. However, choosing the right option for your organization is important.

Any of the aforementioned provides a UI for users to operate on databases, a SQL Editor, and the ability to export data. On the other hand, if your organization needs are beyond those and demands an extra layer of control over database queries, changes, and admin actions, you can try our Bytebase, an open-source Database DevOps and CI/CD tool for teams, designed to centralize the control and secure your organization’s most valuable asset, the database data.

bytebase-sql-editor

Further Readings#

  • Top MySQL Schema Compare Tool to Diff and Sync Database
  • Top Open Source SQL Clients
  • Top Database Schema Migration Tools
  • Top DBeaver Alternatives

Projects such as website building, data-driven application management, or data analytics frequently require access to databases. MySQL lets users connect to their databases via native and third-party command-line and GUI clients.

This article shows you how to connect to a MySQL database on Windows, macOS, and Linux.

How to connect to MySQL database.

Prerequisites

  • MySQL installed (learn how to install MySQL on Ubuntu or check out our Windows MySQL installation tutorial).
  • Access to a MySQL user with sufficient access privileges.

Connect to MySQL Database on Windows

During the installation of MySQL on Windows, you choose to perform additional installations of MySQL Workbench and the command-line client. These tools enable GUI and CLI access to MySQL and provide extensive database management features.

The following sections show how to connect to a MySQL database on Windows using MySQL Workbench and the command-line client.

Via MySQL Workbench

MySQL Workbench is the official MySQL GUI tool, available on Windows, macOS, and Linux. Follow the steps below to use MySQL workbench to connect to a database.

Note: The process for connecting to MySQL deployments on macOS and Linux using MySQL Workbench is the same as in Windows.

1. Open MySQL Workbench.

2. In the top menu, select Database, then click Connect to Database. Alternatively, select the plus sign next to the MySQL Connections section heading.

Opening the Setup New Connection dialog from the main page of MySQL Workbench.

The Setup New Connection dialog opens.

3. Fill out the necessary connection details, such as the name and method of the connection, hostname, port, and username.

4. Select the Store in Vault button to provide the password.

The location of the Store in Vault button for entering the user password.

5. Type the password in the dialog and press OK.

Entering password in MySQL Workbench.

6. Test the configuration parameters by selecting the Test Connection button located at the bottom-right corner of the dialog.

The location of the Test Button in the Setup New Connection dialog.

The pop-up window shows if the connection is successful.

7. Select OK to dismiss the window.

8. Select OK in the bottom-right corner of the Setup New Connection dialog. The application returns to the main screen.

9. Select the newly created connection in the MySQL Connections section.

Selecting the connection from the main screen of the MySQL Workbench.

A database management window opens.

10. Select the Schemas tab in the Navigator section on the left side of the screen.

The location of the Schemas tab in the Navigator menu in MySQL Workbench.

11. Choose a database schema.

Choosing a database schema in the Schemas tab in MySQL Workbench.

MySQL Workbench is now connected and ready to manage the database.

Via Command Line

Connecting via the MySQL Command-Line Client allows you to use the MySQL CLI tools to connect to and manage your database. Follow the steps below to establish a CLI connection with a MySQL database:

1. Open MySQL Command-Line Client.

Note: If you expect to use Unicode characters in working with the database, find and open MySQL Command-Line Client — Unicode, which offers the same CLI experience but provides Unicode support.

2. Enter the root password when prompted.

The welcome message appears, followed by the mysql prompt.

The welcome prompt after entering the root password in MySQL Command Line Client.

3. Switch to your user by typing:

SYSTEM mysql -u [username] -p

Another welcome message appears alongside the prompt for the new user.

The welcome prompt after changing a user in MySQL Command Line Client.

4. Change to a specific database by typing:

USE [database];

The output confirms the change.

Changing to a specific database in Windows.

You can now issue CLI commands to manipulate the database.

Connect to MySQL Database on Mac

The following sections provide steps for connecting to a MySQL database using Sequel Ace, a third-party MySQL management tool for Mac, and the macOS Terminal.

Via Sequel Ace

Sequel Ace is free for download on the macOS App Store. Follow the steps below to use Sequel Ace to connect to your MySQL database.

1. Open Sequel Ace.

The main window allows users to establish a previously configured database connection or to create a new one.

2. Type the parameters of your connection, such as connection name, hostname, and user credentials. Test the connection by selecting the Test Connection button in the bottom-right corner of the window.

3. Select Connect when you finish inputting the parameters.

The main screen of Sequel Ace, with example parameters for connecting to a MySQL database.

A Database window opens.

4. Select a specific database in the Choose Database dropdown menu at the top of the window.

The location of the Choose Database dropdown menu in the database window of Sequel Ace.

Via Terminal

Mac users can access MySQL CLI from the Terminal app. The steps below show you how to connect to a MySQL database via the macOS command line.

1. Open a terminal app.

2. Enter the following command:

sudo /usr/local/mysql/bin/mysql -u [username] -p

3. When prompted, enter your user password.

Note: The sudo command precedes the mysql command, so the system may first ask you for the sudo password.

The mysql prompt appears.

The welcome prompt after entering a MySQL user password in macOS.

4. Switch to a specific database:

USE [database];
Changing to a specific database in macOS.

Connect to MySQL Database on Linux

The MySQL installation available in many Linux repositories comes with the mysql command installed in the path, which means no further setup is needed. Use the following procedure to connect to a MySQL database in Linux.

1. Open a terminal app.

2. Enter the following command:

sudo mysql -u [username] -p

3. Enter the sudo password and the MySQL user password.

The mysql prompt appears.

The welcome prompt after entering a MySQL user password in Ubuntu.

4. Change to a specific database:

USE [database];
Changing to a specific database in Ubuntu.

The MySQL client is now configured to manage your database.

Conclusion

After reading this tutorial, you should know how to connect to a MySQL deployment on Windows, macOS, and Linux. The article included both GUI and CLI methods for accessing MySQL databases.

Next, if you are new to MySQL, learn more about MySQL data types.

Was this article helpful?

YesNo

MySQL is a widely used, open-source relational database management system (RDBMS). It uses Structured Query Language (SQL), a declarative language that enables you to communicate with a relational database and manipulate data. It allows you to store, retrieve, modify, and delete data. MySQL is known for its high performance, flexibility, ease of use, security, and speed.

The main key features of MySQL are as follows:

  1. Open-source: MySQL is free, open-source and available under the GNU General Public License.
  2. Cross-platform: MySQL is compatible with the most popular platforms, such as Windows, macOS, Linux, and Unix-like systems.
  3. Scalability: MySQL is highly scalable and can handle large data sets. It supports vertical & horizontal scaling and multi-threading.
  4. Security: MySQL offers robust security features, including data encryption, secure connections (SSL/TLS), and user privilege management. As a result, the data is protected from unauthorized access.
  5. Performance: MySQL is considered one of the most performant databases. It provides optimization techniques and indexing for fast query execution and efficient data retrieval.
  6. Extensibility: MySQL supports custom plugins, allowing developers to extend its functionality.
  7. Replication and backup: MySQL supports different replication methods, which enable increased data redundancy, load balancing, and backup. This helps maintain data integrity and availability in case of failures and other issues.
  8. Enormous user community and ecosystem: MySQL has a large, active community of users and developers who contribute to its ongoing development, share knowledge, and provide support.

What is a Graphical User Interface (GUI)? A GUI lets you interact with an application through visual elements such as buttons, windows, icons, and menus. Interacting with an application through a GUI rather than typing commands in a text-based interface like a command-line interface (CLI) is more intuitive and user-friendly. So, MySQL GUI clients enable you to communicate and manage your databases.

This article presents a carefully picked and reviewed list of the best MySQL GUI clients for macOS. You’ll likely find one or more MySQL clients to fit your needs and requirements.

1. SQLPro

SQLPro Image Example

Image Source: MySQLUI

SQL PRO is a powerful MySQL manager designed by the Microsoft SQL Management Studio. It supports Amazon or Azure relational database services, MySQL 5.0, and other cloud instances.

It costs $5 per month, $69.99 per year, and $129.99 for a one-time,  lifetime payment.

Pros

  • It is lightweight and allows quick access to MySQL servers
  • Execution of multiple queries at once with all the results displayed simultaneously
  • Simple to install

Cons

  • No free trial
  • Lack of integration into other devices or file storage services like Dropbox

2. TablePlus

Image Source: TablePlus

TablePlus is a solid database client that manages multiple relational databases like MySQL, Postgres, SQLite, and Redis. It stands out for its intuitive GUI and simple design. Powerful features like the ability to take database snapshots with multi-window views and tabs, keep track of changes, and an SQL editor that highlights syntax make it stand out easily.

TablePlus offers a limited free trial and has a basic plan of $79 per license, a standard plan of $99 per license, and a custom license of $49 per device.

Pros

  • Easy for formatting queries and data extraction
  • Differentiates between the production and test environments using colors in the toolbars

Cons

  • Limited free plan
  • Need a licensed version to open more tabs

3. Dbeaver

Dbeaver Screenshot

Image Source: Dbeaver

Dbeaver is a free multi-platform, open-source database tool. It’s based on an open-source framework that allows the writing of various extensions or plugins. These plugins enable you to extend the functionalities of Dbeaver or enhance it.

The community edition is free, while the enterprise edition has different plans starting at $99 per year.

Pros

  • It displays ER diagrams even when a database doesn’t have a schema
  • Ability to view multiple tables
  • Ability to auto-generate different queries

Cons

  • Take a lot of RAM space
  • Needs Java to be installed
  • The community edition has limited access, especially for importing from CSV or DDL

4. Querious

Image Source: Araelium

Querious is a MySQL client designed by Araelium, and it’s packed with convenient features to build, configure and monitor MySQL databases. It provides editors for everything, not just tables or query content.

It costs $25 for a one-time purchase.

Pros

  • It focuses strictly on MySQL and is tailored for macOS
  • It has a server dashboard that monitors running processes
  • It has high performance

Cons

  • The autosuggestion feature is limited

5. Navicat

Navicat Screenshot

Image Source: Navicat

Navicat describes itself as an ideal solution for MySQL administration and development. Its user interface has an Explorer-like appearance. It has full-fledged capabilities and supports multiple database connections for local and remote databases.

Navicat’s services are pretty broad. It isn’t for just database administrators. It caters to programmers and businesses, providing convenient features to efficiently share information with their clients. There is no free version. It costs $29.99 with a 14-day free trial.

Pros

  • It is compatible with cloud services like Amazon RDS, Amazon Aurora, Oracle Cloud, Google Cloud, and Microsoft Azure
  • It is available in 11 languages

Cons

  • It still has notable bugs for macOS
  • There are no pre-installed connectors

6. Sequel Ace

Sequel Ace Screenshot

Sequel Ace is a fast, easy-to-use MySQL client for Mac. It provides direct and easy access to MySQL databases from local or remote servers. It replaces a long-time macOS tool — Sequel Pro — and promises to be a better version of it. Sequel Ace is free.

Pros

  • Easy to install
  • Has a wide range of choices for preference settings

Cons

  • Has no support for multiple result tab for multiple queries
  • A slow query editor window

7. SQLPro Studio

SQLPro Studio Screenshot

Image Source: SQLPro Studio

SQLPro Studio provides stable and efficient support for other databases besides MySQL and supports different cloud providers for relational database services. The price is $99.99 per year.

Pros

  • Intuitive interface with easy access to tools
  • Native build with high performance

Cons

  • Lacks features for import/export and table functions

8. Datagrip

Datagrip Screenshot

Image Source: JetBrains

Datagrip is a powerful database management tool created by JetBrains that works on macOS and Windows. It supports MySQL 5.1 and newer versions. Part of its benefits to MySQL developers is that it saves time by automating routine tasks, and it uses an intelligent IDE.

Datagrip costs $199 per year, including a 30-day trial before purchase.

Pros

  • Easy configuration of the IDE features
  • Has refactoring support and automatically resolves all references

Cons

  • It consumes too many computer resources, making performance a bit slow.
  • It is not beginner-friendly

9. Beekeeper Studio

Image Source: Beekeeper Studio

Beekeeper Studio is an open-source minimalist MySQL GUI client designed to focus mainly on essential features which developers use frequently. It has a pleasing user interface, making it easy and pleasant to use.

Beekeeper Studio is not a free product. It costs $99 for a one-time payment.

**Pros **

  • Ability to share queries and connections with other teammates.
  • Very easy to build tables. It also has a pinned feature to save the most-used tables at the top of the sidebar.

Cons

  • Not interactive.
  • The capabilities are limited.

10. Adminer

Adminer Screenshot

Adminer has been around for a long time. More specifically, since 2007. It with an excellent user interface, high performance, and tight security. Adminer is free, which makes it even better.

Pros

  • Security is of utmost importance in Adminer, and it requires a username and password before connecting to any database server
  • Manages table partitions and events from MySQL 5.1 version upwards
  • It limits the number of connections (attempts) to protect against brute force attacks

Cons

  • It needs PHP to be installed on the machine
  • Requires the installation of a package manager like Homebrew
  • It needs a database driver installed

This SQL Bootcamp will take you from complete beginner to an expert in SQL, database management, and database design.

Those MySQL client GUI interface is easy software for windows to use for controlling database is warehoused, and front end for MySQL, a user interface for communicating with the data component.

This type of design is quite clever, as it parallels the two-tier programming model that separates the data layer from the user interface and allows the makers of the database software focus on their product’s strongest suit: data storage and management. MySQL Client GUI also available Mac and Windows as well.

HeidiSQL (Free License)

HeidiSQL is a lightweight, Windows based interface for MySQL databases. It enables you to browse and edit data, create and edit tables, views, procedures, triggers and scheduled events. Also, you can export structure and data either to SQL file, clipboard or to other servers.

MySQL Client - HeidiSQL

Download

Client for MySQL by EngInSite

This all-in-one tool will help you create, manage and edit MySQL databases. One intuitive interface for all tasks. Supports all releases of MySQL from 4.02 to 5.12 and all of the latest MySQL features including views, triggers, stored procedures and functions as well as InnoDB foreign keys.

Client for MySQL by EngInSite

Download

Navicat for MySQL

Navicat for MySQL is a powerful Database administration and development tool for MySQL. It works with any MySQL Database Server from version 3.21 or above, and supports most of the latest MySQL features including Trigger, Stored Procedure, Function, Event, View, and Manage User, etc.

MySQL Client - Navicat

Download

MySQL Workbench

MySQL Workbench enables a DBA, developer, or data architect to visually design, model, generate, and manage databases. It includes everything a data modeler needs for creating complex ER models, forward and reverse engineering, and also delivers key features for performing difficult change management and documentation tasks that normally require much time and effort.

MySQL Client - Workbench

Download

dbForge Studio

dbForge Studio is a powerful and comprehensive MySQL GUI tool that provides a complete set of instruments for server management and administration. It offers tools for database development, administration tools, and SQL query tools. Combination of the very best features of existing MySQL front ends and MySQL GUI tools makes dbForge Studio the perfect choice for a database developer and administrator as well as for a novice user.

MySQL Client - dbForgeStudio

Download

7. DBTools Manager

The DBManager is the most powerful application for data management. With builtin support for MySQL, PostgreSQL, Interbase/Firebird, SQLite, DBF tables, MSAccess, MSSQL Server, Sybase, Oracle and ODBC database engines, it also brings you new features which make it the most advance application. It comes in two editions so you can choose the one that will fit your needs: Standard and Enterprise. The Standard edition is totally functional and some features are not even available in any other free software for database management. The Enterprise Edition is a commercial product, although inexpensive, if compared with other commercial products available in the market.

MySQL Client - DBTools Manager

Download

xBaseView Database Explorer

Database Viewer-Editor is an advance database tool design for the beginners. It enables you to manage bases from an interface which looks like the Windows Explorer’. The data are displayed in a folder-tree which you can opened with the mouse. With xBaseView, you can carry out all the current operations such as search, filtering and document impression. The software is a shareware version which expires after 30 days of use.

MySQL Client - XbaseView Database Explorer

Download

SQL Examiner Suite

SQL Examiner Suite is a comprehensive solution performing fully automated comparison and synchronization of any two databases complete their structures and data. Databases in a variety of formats are supported, including all versions and editions of MS SQL Server from version 7.0 to 2008 R2, SQL Azure Database, as well as most basic structures and objects of Oracle and MySQL databases. SQL Examiner fully supports all types of database objects found in MS SQL databases, and correctly synchronizes between different versions of MS SQL

MySQL Client - SQL Examiner Suite

Download

Aqua Data Studio

Aqua Data Studio is a complete Integrated Development Environment (IDE) for database query, administration and development. It supports all major database vendors, works on multiple operating systems and is localized for over 20 languages. With version 9.0 of Aqua Data Studio, we’ve introduced Aqua Open APIs, offering developers access for the first time to all of Aqua Data Studio’s capabilities. The Aqua Open API library is accessible via AquaScript—a JavaScript-based programming language with a full-fledged JavaScript editor and debugger.

MySQL Client - Aqua Data Studio

Download

  • Introduction
  • Connect to MySQL
  • Setup libmysql
  • Making the MySQL Database Option Visible in Windows
  • Troubleshooting
  • More Information

Introduction

This article explains how to connect to MySQL databases for Windows, Linux and Mac.

It covers the following topics:

  1. How to connect to MySQL (with code samples).
  2. How to setup the libmysql shared library:
    • Install libmysql
    • Configure Iguana to use libmysql

If you are having trouble getting Windows to recognize MySQL you should look at the last section Making the MySQL Database Option Visible in Windows.

Note: If you are using a 64 bit Windows you should usually use a 64 bit version of MySQL. If you are using 32 bit Windows you will need to use an older 32 bit version of MySQL (5.7.24 or earlier).

Connect to MySQL [top]

We strongly recommend using connection objects to connect to databases, and this is what we demonstrate in the code samples. The code samples will work with all operating systems.

Follow these steps to connect:

  1. Create a new channel to try out the code:
    • Create a channel like this:
      • Name: DB MySQL Connection (or similar)
      • Source: From Translator
      • Destination: To Channel
    • Alternatively use an existing channel:

      Your channel will need a From/To Translator or a Filter component.

  2. Connect to a database using the libmysql shared library:
    • Paste this code into the Translator:

      If your script uses connection object methods conn:query{} or conn:execute{}to connect to a remote MySQL database, the location of the remote host is specified as part of the name parameter in the db.connect{ } command. If you use conn:merge{} to connect the remote host is specified as part of the name parameter in the conn:merge{} command itself.

      function main()
            local conn = db.connect{   
            api=db.MY_SQL, 
            name='mydatabase@server_name',
            user='your_login', 
            password='secret',
            use_unicode = true,
            live = true
         }
      
         conn:execute{sql='SELECT * FROM <your table>', live=true}
      end
    • The location (name) of the host can be specified as any of the following:
      • The machine name: mydatabase@server_name
      • The server name: mydatabase@server_name
      • The IP address: mydatabase@10.10.10.10
    • If the MySQL server is using a port other the standard port of 3306, you can specify it as part of the name parameter:
      • mydatabase@server_name:1111
  3. Adapt the code to your requirements.

Setup libmysql [top]

Note: Iguana may not always support the very latest version of MySQL, so you can simply download an earlier version if necessary. This is particularly true if you are not able to use the the latest version of Iguana.

If you need to know which versions of MySQL are supported by the version of Iguana you are using please contact us at support@interfaceware.com.

Windows:

The easiest way to install the drivers on Windows is to use an MSI installer rather than a ZIP archive, as the install process is simpler.

Note: The procedure and screenshots in this section are from Windows 10 — and may differ somewhat if you are using a different version of Windows.

  1. Download MySQL:
    • Go to the MySQL download site
    • Download the MSI install file for the latest version of MySQL for Windows
  2. Install the MySQL drivers:
    • Double click the MSI file to open it.
    • Click Yes to allow the installer to make changes on your machine.
    • Choose Client Only to install the client tools which includes the drivers:
      windows mysql install client

    • Click Next.
    • Ignore the two failed Check Requirements:
      ignore failed check items

      • Click Next to continue.
      • Click Yes to continue in the warning dialog box.
    • Follow the remaining steps to finish installing the MySQL client tools:
      • We strongly recommend accepting the default install values.
      • Note: Do not configure MySQL Router — just click Finish.
  3. In Iguana, click the Settings tab.
  4. Click IGUANA Setup > Database to view the available database APIs.
  5. Click the Edit button for MySQL Compliant:
    edit button MySQL

  6. Load the MySQL shared library for the version of MySQL you installed:

    We suggest various paths for the MySQL Library as this can change depending on the version of MySQL that you have installed. You should use the the latest driver which will normally be in the install directory that you use for MySQL.

    • Try these library paths:
      • C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.dll
      • C:\Program Files\MySQL\MySQL Workbench 8.0 CE\libmysql.dll
      • C:\Program Files\MySQL\MySQL Router 8.0 CE\libmysql.dll
      • Otherwise search for libmysql.dll in the MySQL install directory
    • Paste the path into the Preferred Version text box:
      preferred version

    • If you installed MySQL in a different location (than the default) then you can browse to find the libmysqlclient.dll driver file.

Linux:

  1. Download MySQL:
    • Go to the MySQL download site
    • Choose Linux – Generic from the Select Operating System dropdown.
    • Download the TAR archive file for the latest version of MySQL.
  2. Install the libmysql driver:
    1. Terminal Commands: Unpack the TAR archive:

      This assumes file is <home>/Downloads, otherwise change the source path to match.

      cd ~/Downloads
      tar xvf ~/Downloads/mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz
    2. Copy the driver to the drivers directory:

      This directory can differ on different versions of Linux. For Ubuntu (and other Debian based Linux) use /usr/local/lib, for CentOS (and other Red Hat based Linux) use /usr/lib.

      1. Terminal Command: To copy the drivers for Ubuntu:

        Replace <version> to match the path where you unpacked the TAR file.

        sudo cp ~/Downloads/mysql-<version>-linux-glibc2.12-x86_64/lib/libmysqlclient.so* /usr/local/lib
      2. Terminal Command: To copy the drivers for CentOS:

        Replace <version> to match the path where you unpacked the TAR file.

        sudo cp ~/Downloads/mysql-<version>-linux-glibc2.12-x86_64/lib/libmysqlclient.so* /usr/lib
  3. In Iguana, click the Settings tab.
  4. Click IGUANA Setup > Database to view the available database APIs.
  5. Click the Edit button for MySQL Compliant:
    edit button MySQL

  6. Load the MySQL shared library:
    •  Choose Automatically choose which OCI Oracle shared library to load.
    • Alternatively (if Iguana does not find the driver) you can Browse to find the Library you just installed and click Save Changes:
      find libmysql library

  7. Your installed library should look something like this:
    libmysql installed

Mac:

The easiest way to install the libmysql shared library on a Mac is to install the full MySQL database server. We recommend using a DMG archive rather than a TAR archive, as the install process is simpler.

But you may find it easier to use ODBC connections on the Mac instead.

Note: The procedure and screenshots in this section are from macOS Mojave — and may differ somewhat if you are using a different version of macOS.

Tip: When you install the MySQL on Windows the installer includes a “drivers only” option. There is no “drivers only” option for the MacOS installer — so you need to install the full database engine.

  1. Download MySQL:
    • Go to the MySQL download site
    • Download the DMG install file for the latest version of MySQL for the MacOS
  2. Install MySQL:
    • Double click the DMG file to open it.
    • Double click the package to run it:
    • Follow the steps to install MySQL:

      We strongly recommend accepting the default install values.

  3. In Iguana, click the Settings tab.
  4. Click IGUANA Setup > Database to view the available database APIs.
  5. Click the Edit button for MySQL Compliant:
    edit button MySQL

  6. Load the MySQL shared library:

    If you are using an older version of MySQL it may use libmysqlclient_r.dylib instead of libmysqlclient.dylib.

    • Use the default library path: /usr/local/mysql/lib/libmysqlclient.dylib
    • Paste the default path into the Preferred Version text box:
      MySQL preferred version

    • If you installed MySQL in a different location (than the default) you will need to browse to find the libmysqlclient.dylib driver file.

Making the MySQL Database Option Visible in Windows [top]

You must have MySQL installed and the system PATH must be set correctly to ensure that the MySQL database option is visible in the database API drop-down menu.

Note: The paths for the MySQL Library directory as this can change depending on the version of MySQL that you have installed. You should use the the latest driver which will normally be in the install directory that you use for MySQL.

The library path will be something like this:

  • C:\Program Files\MySQL\MySQL Server 8.0\lib
  • C:\Program Files\MySQL\MySQL Workbench 8.0 CE
  • C:\Program Files\MySQL\MySQL Router 8.0 CE
  • Otherwise use the path for the MySQL install directory (which contains the libmysql.dll)

API drop down menu

Note: The screenshots in this section are from Windows 10 — the screens will be different for other versions of Windows.

To make the MySQL database option visible:

  1. Search for “Environment” and choose Edit the system environment variables:
  2. The System Properties window will open on the Advanced page:
    system properties advanced

  3. Click the Environment Variables button near the bottom of the page:
    environment variables button

  4. Highlight the System Path variable and click Edit:
    highlight system path

  5. The Edit environment variable window appears.
  6. Add the location of your libmysql.dll file on the next line:
    add libmysql path

  7. Click OK to save your changes.
  8. Restart your computer for the changes to take effect.
  9. The MySQL database option should now be visible in the API drop-down menu:
    API drop down menu

Troubleshooting [top]

  • Problems with connection settings:

    Speak to your DBA (database administrator) for general connection issues like: User name and password, Database Server network name etc.

More Information

  • Using Database Connection Objects
  • Forum thread on Windows ODBC
  • Connect to MySQL from Windows with ODBC
  • Connect to MySQL from Linux or Mac with ODBC

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Можно ли установить windows 10 на arm
  • Canon pixma ip2500 драйвер windows 10
  • Как избавиться от системных прерываний windows 10
  • Программа для отключения windows defender в windows 10 навсегда
  • Jazmine sullivan i bust the windows out your car