Bash
Hosting
Web Development
MythTV
Cron
Email
Firefox
Exch
XUL
Linux
Windows
Wireless
Culture
VOIP
MP3
Telephony
XML
RSS
Games
Networking
DRM
Google
Microsoft
OpenOffice
PHP
Yahoo
Apple
Java
Photography
Hardware
Video
Wordpress
Javascript
Backups
Adobe
Python
Connecting MySQL with OpenOffice Base
OpenOffice Base makes it incredibly easy to hook up to a MySQL database. Once this is accomplished you can easily create a front end to browse through your data, edit it, report on it, etc. Below are a few steps I took to create a functional setup:
What I did was:
- Have OpenOffice installed
- Access to a database (for this example I used my wp_posts table from Wordpress) from the workstation running OpenOffice
- Downloaded MySQL® Connector/J and installed
- Within OpenOffice clicked, “Tools > Options > OpenOffice.org > Java > Class Path… > Add Archive…”
- Selected “mysql-connector-java-5.1.5-bin.jar” or current version
- Restarted OpenOffice (had to make sure the process was fully “killed”)
- Created a new database within OpenOffice
- Within OpenOffice, clicked “File > New > Database”
- clicked the “Connect to an existing database” radio button
- selected “MySQL” from the drop down list
- clicked the “Next >>” button
- selected the “Connect using JDBC (Java Database Connectivity)” radio button
- clicked the “Next >>” button
- entered the “Name of the database” into the text field
- entered the MySQL “Server URL” into the text field
- clicked the “Test Class” button and received “The JDBC driver was loaded successfully”
- clicked the “Next >>” button
- entered as “User name” into the text field
- checked the “Password required” checkbox
- clicked the “Finish” button and save
- Made a form based on wp_posts:
- This screenshot is of the form I made to browse the raw data of my Wordpress posts from my Thoughts and Notions weblog and is showing data from this post in particular:
