データベース管理ツールのRazorSQL からGUI でウィザードとクエリからWooCommerce データに連携する。.
CData JDBC Driver for WooCommerce を使って、各種ツールからWooCommerce データにアクセスすることが可能になります。本記事では、WooCommerce データにRazorSQL のウィザードから連携利用する方法を紹介します。
WooCommerce JDBC Data Source の設定
- RazorSQL アプリケーションを開いて、Connections メニューから、Add Connection Profile -> Other -> JDBC にナビゲートします。
- Connection Wizard で、以下を設定します:
- Driver Location:JDBC Driver のインストールディレクトリのlib サブフォルダに設定します。
- Driver Class: ドライバークラスを cdata.jdbc.woocommerce.WooCommerceDriver に設定します。
- Username:ユーザー名。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
- Password:パスワード。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
JDBC URL:接続パラメータを入力します:jdbc:woocommerce: から始まるJDBC URL を入力します。接続プロパティをカンマ区切りで書きます。
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
-
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

WooCommerce からテーブルを選択してクエリを実行
接続を確立後、Wizard が閉じ、接続はコネクションパネルで接続が利用可能になります。テーブルをクエリしてみます。
