Getting Started with the CData ODBC Driver for WooCommerce
This guide walks you through everything you need to get started with the CData ODBC Driver for WooCommerce. You'll learn how to install and license the driver, configure your first connection, and explore next steps for working with WooCommerce data in your applications.
Installation & Licensing
System Requirements
- Windows: Windows 10/11 or Windows Server 2016+
- Linux: Most modern distributions with UnixODBC
Installing the Driver
Windows Installation
- Download the ODBC driver installer from your CData account or the evaluation download page.
- Run the installer and follow the installation wizard.
- The installer will guide you through the setup process and automatically register the driver with the system.
- As part of the installation process, you will be prompted to input the license key in order to activate your license. You should have received your license key via email from the CData Orders Team. The license key looks like this:
XXXX-XXXX-XXXX-XXXX-XXXX.
- Note: If you are running a trial, just select the Trial Key option.
- Both 32-bit and 64-bit drivers are included. Install both if you use applications with different architectures.
Linux Installation
- Ensure UnixODBC is installed: sudo apt-get install unixodbc unixodbc-dev (Debian/Ubuntu) sudo yum install unixODBC unixODBC-devel (RHEL/CentOS)
- Extract the driver package to /opt/cdata/
- The driver will be automatically registered in /etc/odbcinst.ini
Activating Your License
You should have received your license key via email from the CData Orders Team. The license key looks like this: XXXX-XXXX-XXXX-XXXX-XXXX
Windows License Activation
Your license would typically be activated during installation. However, there are cases where you may need to activate it manually. The steps below walk you through manual activation:
- Open the ODBC driver application from the Start menu.
- Navigate to Help > Licensing
- Enter your license key in the provided field.
- Click Activate
- You should see "Licensed" status confirming successful activation.
Linux License Activation
- Navigate to the installation directory where you extracted the driver package. (i.e.cd /opt/cdata/cdata-odbc-driver-for-acumatica/bin/)
- Create a license file by running the following command sudo ./install-license.sh
- Replace
with your actual license key. - To activate a trial, omit the
input.
Common Licensing Questions
Can I use my license on multiple machines?
Yes, depending on your subscription tier. Check your order confirmation or contact your account representative for details. If you are unsure of who your account representative is, contact [email protected].
I lost my license key. How do I retrieve it?
Email [email protected] with your order number, and we'll resend your license key.
Can I transfer my license to a different machine?
Yes. When transferring the license to a different machine, you will need to submit a License Transfer Request on our site linked below:
https://www.cdata.com/lic/transfer/
After the License Transfer Request is submitted and successfully processed, an activation will be added to your Product Key and you will be able to activate the full license on the other machine. Once this process is finished, the license on the previous machine will be invalid.
For additional licensing questions, contact [email protected]. Viewing and upgrading your license can now be done through our self-service portal at portal.cdata.com.
Connection Configuration
Once your driver is installed and licensed, you're ready to configure a connection to WooCommerce. The ODBC driver uses a DSN (Data Source Name) to store connection properties.
Creating a DSN
Windows: Using ODBC Data Source Administrator
- Open the ODBC Data Source Administrator (64-bit)
Note: Use the 64-bit version for 64-bit applications and the 32-bit version for 32-bit applications.- Search for "ODBC" in the Windows Start menu
- Or navigate to: Control Panel > Administrative Tools > ODBC Data Sources
- Click the System DSN or User DSN tab
- System DSN: Available to all users on the machine (recommended for services)
- User DSN: Available only to the current user
- Select CData ODBC Driver for WooCommerce from the list, or click Add to create a new data source.
- Click OK or Finish to open the connection configuration dialog.
Linux: Editing Config Files (odbcinst.ini & odbc.ini)
- Register the Driver by adding the section below to the odbcinst.ini file. [CData ODBC Driver for WooCommerce] Driver=/opt/cdata/cdata-odbc-driver-for-woocommerce/lib/libwoocommerceodbc.x64.so Description=CData ODBC Driver for WooCommerce
- Save the file.
- Create the DSN by adding the entry below to the odbc.ini file: [CData WooCommerce Source] Driver=/opt/cdata/cdata-odbc-driver-for-woocommerce/lib/libwoocommerceodbc.x64.so ConnectionProperty1=Value1 ConnectionProperty2=Value2 Url = https://example.com/ ConsumerKey = ck_ec52c76185c088ecaa3145287c8acba55a6f59ad ConsumerSecret = cs_9fde14bf57126156701a7563fc87575713c355e5 InitiateOAuth = GETANDREFRESH
- Save the file.
Configuring Connection Properties
WooCommerce supports the following authentication methods: one-legged OAuth1.0 Authentication and standard OAuth2.0 Authentication.
Connecting using one-legged OAuth 1.0 Authentication
Specify the following properties (NOTE: the below credentials are generated from WooCommerce settings page and should not be confused with the credentials generated by using WordPress OAuth2.0 plugin):
- ConsumerKey
- ConsumerSecret
Connecting using WordPress OAuth 2.0 Authentication
After having configured the plugin, you may connect to WooCommerce by providing the following connection properties:
In either case, set the Url property to the URL of the WooCommerce instance.
Solution: Verify your credentials are current. For OAuth applications, you may need to authorize CData in your application's security settings. Contact [email protected] for authorization assistance. Solution: Check firewall & proxy settings. Contact [email protected] for specific port requirements. Solution: Verify database and schema names. Use the Data Model tab in the DSN configuration to browse available tables. Solution: Verify the driver is correctly registered in odbcinst.ini. Contact [email protected] for further assistance. For additional connection troubleshooting, contact [email protected] with your specific error message. Now that you have installed, licensed, and configured the driver, here are some scenarios you can use to explore our ODBC Drivers: If you need assistance at any point: Be prepared to securely upload the log file upon request when reaching out to [email protected] for troubleshooting analysis. For questions not covered in this FAQ, contact [email protected].
Testing Your Connection
Common Connection Issues
Authentication Failed
Cannot Reach Server
Table Not Found
Driver Not Found (Linux)
What's Next
Get Support
FAQs
Installation & Licensing
Yes, administrator rights are required for system-wide installation on Windows and Linux.
Yes, both versions are installed by default.Connecting
System DSNs are available to all users on a machine and are required for services. User DSNs are only available to the user who created them.
Yes. Many applications support DSN-less connection strings. See the connection string example below:
Driver={CData ODBC Driver for WooCommerce};RequiredConnectionProperty1=Value1;RequiredConnectionProperty2=Value2;
Create separate DSNs for each account, each with its own authentication credentials.
Yes. Configure proxy settings in your DSN connection properties. Refer to the Firewall & Proxy section in the help documentation for proxy configuration.Performance & Troubleshooting
Check the following:
Add the following to your DSN:
This depends on your data source. Most cloud applications use HTTPS (port 443). Contact [email protected] for specific firewall requirements.
Yes. Install the driver in your container image and configure your DSN in the container's /etc/odbc.ini file.General
Refer to the SQL Compliance chapter in the help documentation for complete SQL reference.
CData releases major version updates for our drivers annually. Check your account portal or contact [email protected] for the latest version.
Check the Using ODBC section of the help documentation for language-specific examples (Python, PHP, C#, etc.).