JDBC 連線

指定存取 JDBC 資料庫的選項。

JDBC 範例

可使用 JDBC 驅動程式類別與 LibreOffice 內的 JDBC 資料庫連接。驅動程式類別由資料庫製造商提供。Oracle 和 MySQL 即為 JDBC 資料庫的兩個範例。

評註圖示 The driver classes must be added to LibreOffice in - LibreOffice - Advanced.

Oracle 資料庫

可使用 JDBC 驅動程式存取 Solaris 或 Linux 中的 Oracle 資料庫。若要存取 Windows 內的資料庫,必須使用 ODBC 驅動程式。

[資料來源 URL] 方塊中,輸入 Oracle 資料庫伺服器的位置。該 URL 的語法取決於資料庫的類型。請參閱 JDBC 驅動程式隨附的文件,以取得更多資訊。

對於 Oracle 資料庫,URL 的語法是:

oracle:thin:@hostname:port:database_name

MySQL 資料庫

MySQL 網站上提供 MySQL 資料庫的驅動程式。

MySQL 資料庫的語法是:

mysql://hostname:port/database_name

資料來源 URL

Enter the URL for the database. For example, for the MySQL JDBC driver, enter "jdbc:mysql://<Servername>/<name of the database>". For more information on the JDBC driver, consult the documentation that came with the driver.

JDBC 驅動程式類別

Enter the name of the JDBC driver.

警告圖示 Before you can use a JDBC driver, you need to add its class path. Choose - LibreOffice- Advanced, and click the Class Path button. After you add the path information, restart LibreOffice.

測試類別

使用目前的設定測試連接。

認證

資料庫精靈