Ready to get started?

Learn more or sign up for a free trial:

CData Connect Server

Query Sybase Data in MySQL Workbench



Create a virtual MySQL database for Sybase data in CData Connect (or Connect Server) and work with live Sybase data in MySQL Workbench.

MySQL Workbench allows users to administer MySQL environments and gain better visibility into databases. When paired with CData Connect (on-premise or Connect Server), you get live access to Sybase data as if it were a MySQL database. This article shows how to create a virtual database for Sybase in Connect and work with live Sybase data in MySQL Workbench.

Create a Virtual MySQL Database for Sybase Data

CData Connect uses a straightforward, point-and-click interface to connect to data sources and generate APIs.

  1. Login to Connect and click Connections.
  2. Select "Sybase" from Available Data Sources.
  3. Enter the necessary authentication properties to connect to Sybase.

    To connect to Sybase, specify the following connection properties:

    • Server: Set this to the name or network address of the Sybase database instance.
    • Database: Set this to the name of the Sybase database running on the specified Server.

    Optionally, you can also secure your connections with TLS/SSL by setting UseSSL to true.

    Sybase supports several methods for authentication including Password and Kerberos.

    Connect Using Password Authentication

    Set the AuthScheme to Password and set the following connection properties to use Sybase authentication.

    • User: Set this to the username of the authenticating Sybase user.
    • Password: Set this to the username of the authenticating Sybase user.

    Connect using LDAP Authentication

    To connect with LDAP authentication, you will need to configure Sybase server-side to use the LDAP authentication mechanism.

    After configuring Sybase for LDAP, you can connect using the same credentials as Password authentication.

    Connect Using Kerberos Authentication

    To leverage Kerberos authentication, begin by enabling it setting AuthScheme to Kerberos. See the Using Kerberos section in the Help documentation for more information on using Kerberos authentication.

    You can find an example connection string below: Server=MyServer;Port=MyPort;User=SampleUser;Password=SamplePassword;Database=MyDB;Kerberos=true;KerberosKDC=MyKDC;KerberosRealm=MYREALM.COM;KerberosSPN=server-name

  4. Click Save Changes
  5. Click Privileges -> Add and add the new user (or an existing user) with the appropriate permissions.

With the virtual database created, you are ready to connect to Sybase from MySQL Workbench.

Query Sybase from MySQL Workbench

The steps below outline connecting to the virtual Sybase database in Connect from MySQL Workbench and issuing basic queries to work with live Sybase data.

Connect to Sybase through Connect

  1. In MySQL Workbench, click to add a new MySQL connection.
  2. Name the connection (CData Connect).
  3. Set the Hostname, Port, and Username parameters to connect to the SQL Gateway.
  4. Click Store in Vault to set and store the password.
  5. Click Test Connection to ensure the connection is configured properly and click OK.

Query Sybase Data

  1. Open the connection you just created (CData Connect).
  2. Click File -> New Query Tab.
  3. Write a SQL query to retrieve Sybase data, like SELECT * FROM sybasedb.Products;

With access to live Sybase data from MySQL Workbench, you can easily query and update Sybase, just like you would a MySQL database. Request a demo of the CData Connect and start working with Sybase just like a MySQL database today.