Recent from talks
Nothing was collected or created yet.
LibreOffice Base
View on WikipediaThis article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
| LibreOffice Base | |
|---|---|
LibreOffice Base 7.2.4 (released in December 2021, running on Linux and KDE Plasma 5 with the Breeze icon set) | |
| Developer | The Document Foundation |
| Stable release(s) | |
| Repository | |
| Operating system | Cross platform |
| Type | RDBMS |
| License | MPLv2.0 (secondary license GPL, LGPLv3+ or Apache License 2.0)[3] |
| Website | libreoffice |
LibreOffice Base is a free and open-source database development and administration tool for relational database management systems that is part of the LibreOffice suite. LibreOffice Base was built off of a fork of OpenOffice.org and was first released as version 3.4.0.1 on October 4, 2011.[4]
Similarly to the other packages in the LibreOffice suite, Base is supported across multiple platforms including Microsoft Windows, macOS, and Linux. Base is recognized for its cross-platform compatibility relative to Microsoft Access, which is developed exclusively for Windows.[5]
Features
[edit]LibreOffice Base is designed to allow users to easily create, access, modify, and view databases and their data. This is done by providing users with a graphical user interface that allows users to work with four main tools: Tables, queries, forms, and reports.[6][7] Base includes software wizards to assist users with various aspects of the program.[8][9] LibreOffice Base requires Java in order to create databases with forms, wizards, and more.[10]

Base is able to work with both embedded and external database files. Embedded databases are stored as a single file using C++ based Firebird and Java-based HSQLDB as its storage engine. When connecting to external databases, Base acts as a graphical user interface front-end to facilitate interactions with various database systems including Access Database Engine (ACE/JET), ODBC/JDBC data sources, MySQL, MariaDB, and PostgreSQL.[7]
Base has been described as an unusual project in the niche of database management system software which tends toward proprietary software designed for enterprise users.[6] Proprietary database management software costs have been described as a reason for the use of Base in small businesses.[11]
Migration from HSQLDB to Firebird
[edit]Work was started in 2014 to transition the embedded storage engine from HSQLDB to the Firebird SQL back-end. Firebird has been included in LibreOffice as an experimental option since LibreOffice 4.2.[12][13]
In August 2018, The Document Foundation announced the release of LibreOffice version 6.1. If the experimental mode is used, the embedded Firebird engine support is fully available, and the old HSQLDB engine is deprecated—although still available—and replaced by Firebird as the default option.[14][15]
In February 2019, The Document Foundation released LibreOffice version 6.2. The embedded Firebird engine support was moved from experimental mode to operational and the Firebird Migration Assistant can create a backup copy of content as an XML document for the migration process.[16] In February 2020, embedded Firebird was moved back to experimental mode, taking effect in version 6.4.1.[17]
References
[edit]- ^ Italo Vignoli (13 November 2025). "Announcement of LibreOffice 25.8.3". Retrieved 14 November 2025.
- ^ Italo Vignoli (30 October 2025). "[tdf-announce] The Document Foundation announces LibreOffice 25.2.7". Retrieved 30 October 2025.
- ^ "Licenses". The Document Foundation. Retrieved 12 August 2018.
- ^ "Index of /libreoffice/old". The Document Foundation. Retrieved 13 August 2018.
- ^ Klosowski, Thorin (15 August 2013). "Battle of the Office Suites: Microsoft Office and LibreOffice Compared". LifeHacker. Retrieved 13 August 2018.
- ^ a b Gaskin, James (5 August 2016). "LibreOffice 5 Review". Laptopmag. Retrieved 13 August 2018.
- ^ a b Elena, Opris (17 January 2014). "LibreOffice Base Review". Softpedia. Retrieved 13 August 2018.
- ^ "Microsoft Access alternatives: are there any free applications that achieve the same result?". 1&1. 6 November 2017. Retrieved 13 August 2018.
- ^ Wallen, Jack (20 February 2015). "Creating Forms for Easy LibreOffice Database Entry on Linux". Linux. Retrieved 13 August 2018.
- ^ "on firefox and have loaded java 32 [closed] – Ask LibreOffice". ask.libreoffice.org. 17 November 2017. Retrieved 2021-03-16.
- ^ Wallen, Jack (27 January 2012). "DIY: Create easy to use databases with LibreOffice Base". TechRepublic. Retrieved 13 August 2018.
- ^ "LibreOffice 4.2 released with new SQL preview feature: Firebird SQL backend". Firebird News. 30 January 2014. Retrieved 2 May 2015.
- ^ "HSQLDB to be replaced by Firebird". LibreOfficeForum.org. Archived from the original on 19 March 2015. Retrieved 2 May 2015.
- ^ "The Document Foundation announces LibreOffice 6.1, a major release which shows the power of a large and diverse community of contributors". The Document Foundation. LibreOffice. 8 August 2018. Retrieved 13 August 2018.
- ^ "LibreOffice 6.1: Release Notes". The Document Foundation's Wiki. Retrieved 26 August 2018.
- ^ "ReleaseNotes/6.2". The Document Foundation's Wiki. Retrieved 26 February 2019.
- ^ "Set Firebird creation option experimental". The Document Foundation. Retrieved 26 October 2020.
External links
[edit]LibreOffice Base
View on GrokipediaIntroduction
Overview
LibreOffice Base is a free and open-source relational database management system (RDBMS) front-end developed by The Document Foundation as part of the LibreOffice office suite.[1] It provides a graphical user interface for working with relational databases, supporting tasks such as data organization, input, and analysis through tools like tables, queries, forms, and reports.[7] Within the LibreOffice suite, Base serves as the dedicated component for creating, managing, and querying databases, functioning in a manner analogous to Microsoft Access in the Microsoft Office suite.[1] The application is cross-platform, running on Windows, macOS, and Linux operating systems, which enables consistent functionality across diverse environments.[8] LibreOffice Base is distributed under the Mozilla Public License version 2.0 (MPLv2.0), with code contributions allowable under secondary licenses including the GNU General Public License (GPL), GNU Lesser General Public License version 3 or later (LGPLv3+), and Apache License 2.0.[4] It was initially released as part of LibreOffice 3.3 on January 25, 2011. Certain features in LibreOffice Base, including forms, wizards, and operations with the embedded HSQLDB engine, require a Java Runtime Environment (JRE) to function fully.[9]History
LibreOffice Base originated as part of the LibreOffice suite, which was forked from OpenOffice.org in 2010 by The Document Foundation to foster a community-driven, independent development path for free office software.[3] The Base component, serving as the relational database management system, inherited its foundational structure from OpenOffice.org Base, including initial support for embedded databases and external connectivity.[10] In its early development, LibreOffice Base integrated HyperSQL Database (HSQLDB) version 1.8 as the default embedded engine starting with LibreOffice 3.3, released on January 25, 2011, to provide a lightweight, Java-based solution for standalone database files.[11] This integration enhanced Base's ability to handle forms, queries, and reports without requiring external servers, marking a key step in stabilizing the component for general use.[12] By LibreOffice 3.4 on June 3, 2011, Base achieved a more mature stable release, with refinements to its user interface and database wizards that improved accessibility for non-expert users.[13] A significant evolution occurred with the introduction of Firebird support as an experimental feature in LibreOffice 4.2, released on January 30, 2014, aiming to replace the aging HSQLDB with a more robust, non-Java embedded relational database engine.[14] This option required enabling experimental mode and was initially positioned as a preview to gather user feedback on performance and compatibility.[15] In LibreOffice 6.1, released on January 30, 2019, full support for the embedded Firebird engine became available in experimental mode, where it could be set as the default for new databases, reflecting years of testing and offering advantages like better multi-user support and SQL standards compliance over HSQLDB.[16] However, due to reported stability issues and bugs affecting reliability, Firebird support was reverted to experimental status in LibreOffice 6.4, released in August 2020, while maintaining backward compatibility for existing Firebird-based files.[17] Ongoing community efforts have focused on addressing these challenges, including bug fixes and performance optimizations, with recent updates emphasizing Firebird's role in embedded use cases as of March 2025.[18][15] As of 2025, Firebird version 3.0 remains integrated as the alternative embedded engine in LibreOffice Base, with continued improvements enhancing its performance for embedded use cases, though it still requires experimental mode activation for new databases in the latest releases.[2] Community-driven enhancements have been pivotal, with volunteers contributing to the refinement of database wizards, form builders, and report generation tools to better align with user needs.[18]Features and Capabilities
Core Components
LibreOffice Base provides a suite of integrated tools for designing, managing, and interacting with relational databases, enabling users to handle data through intuitive graphical interfaces and SQL commands. These core components include facilities for table creation, query building, form design, report generation, and supporting wizards, along with automation and data handling features.[19] Table creation and management in LibreOffice Base allow users to define database structures by specifying fields with names, data types such as Integer for whole numbers, Text (VARCHAR) for variable-length strings up to 32,767 bytes, and Date for temporal values, as well as setting properties like field lengths and formats. Primary keys can be designated as unique identifiers, often configured with auto-increment options to ensure sequential numbering without manual input. Relationships between tables, including one-to-one, one-to-many, and many-to-many types, are established and visualized using the Diagram View accessed via Tools > Relationships, facilitating referential integrity and normalized data design.[19] The query builder supports SQL-based data retrieval, filtering, and sorting through both graphical Design View and direct SQL editing modes, allowing construction of complex statements like SELECT with JOINs, WHERE clauses for conditions such as IS EMPTY or LIKE patterns, and aggregate functions including COUNT and SUM. Graphical mode provides drag-and-drop interfaces for adding tables, fields, and criteria, while direct SQL mode enables advanced syntax like subqueries and CASE statements without GUI validation, accommodating functions such as YEAR(NOW()) for date calculations or ORDER BY for sorting results. This dual approach ensures accessibility for beginners and precision for experienced users.[19] Form design tools enable the creation of user interfaces for data entry and viewing, incorporating controls such as text boxes for direct input, dropdown lists and combo boxes for predefined selections, and subforms for embedding related data sets linked via master-slave fields to display hierarchical information like parent-child records. These forms can be built using a drag-and-drop layout in Design View, supporting validation rules and event handlers to enhance usability and data accuracy in scenarios involving many-to-many relationships.[19] Report generation leverages built-in wizards for step-by-step creation of printable outputs, including grouping and sorting data by fields like category or date, and integration of tables or charts for summarized views. For more advanced needs, the LibreOffice Report Builder extension extends functionality to produce form letters and customized layouts, ensuring reports are formatted for export to PDF or printing directly from the database environment.[19] Wizards streamline the setup of core elements by guiding users through predefined templates for common applications, such as customer contact databases or inventory trackers, covering table structures, basic queries for filtering records, simple forms with essential controls, and reports with standard groupings. These templates incorporate pre-configured fields and relationships, reducing setup time while allowing customization post-creation.[19] Additional tools enhance automation and flexibility: macros written in LibreOffice Basic or Python via extensions like Access2Base automate repetitive tasks such as data validation or batch updates; views serve as virtual, read-only presentations of query results for simplified data access without altering underlying tables; and import/export capabilities handle data transfer through formats like CSV, spreadsheets, or clipboard operations, supporting operations such as splitting large files for incremental imports.[19]Database Support
LibreOffice Base provides native support for flat-file database formats, including the dBase (.dbf) format, allowing users to create and manage simple, non-relational databases stored directly in files.[20] This capability enables quick setup for basic data storage without requiring a separate database server.[21] For embedded relational databases, Base integrates HSQLDB (HyperSQL DataBase) version 1.8.0, which offers lightweight, file-based storage suitable for single-user applications with minimal overhead.[21] Additionally, Firebird version 3.0.7 serves as an embedded engine providing more robust SQL compliance, better performance for larger datasets, and potential for multi-user access in embedded mode, available as an alternative since LibreOffice 7.2 which requires enabling experimental features to use.[21][16] As of 2025, Firebird integration has been enhanced to support embedded, standalone file-based, and server modes for improved flexibility.[18] Base includes direct drivers for connecting to several external relational databases, such as MySQL and MariaDB for scalable web and enterprise applications, PostgreSQL for advanced object-relational features, and Microsoft Access files (.mdb and .accdb) via JDBC or ODBC interfaces.[21][22] These connections allow Base to query, edit, and manage data from remote or local servers without embedding the database engine.[1] Beyond relational systems, Base can connect to non-relational data sources, including spreadsheets like LibreOffice Calc or Microsoft Excel files (treating each sheet or range as a table), delimited text or CSV files for importing bulk data, LDAP directories for directory services, and various address book formats for contact management.[21][1] These integrations are typically read-only for structure and support dragging records into other LibreOffice applications, though editing is limited to supported formats.[23] To facilitate business applications, Base offers pre-defined table structures for common scenarios, such as tracking assets, managing customer records, handling sales orders, and generating invoices, which streamline database setup for typical organizational needs.[1] Despite its versatility, Base has limitations in database support; it lacks built-in drivers for Oracle or Microsoft SQL Server, requiring third-party ODBC or JDBC connectors for connectivity to these systems.[21][24]Technical Implementation
Embedded Engines
LibreOffice Base supports embedded database engines to enable standalone database functionality within a single file, allowing users to create and manage relational databases without requiring external database servers. The primary embedded engine is HSQLDB version 1.8.0, a pure Java-based relational database system designed for embedded use. This engine operates in embedded mode within Base, providing basic SQL compliance for operations such as table creation, querying, and data manipulation, but it is inherently limited to single-user access, meaning only one instance can modify the database at a time. Additionally, HSQLDB 1.8 imposes a practical file size cap of approximately 2 GB for embedded databases, making it suitable primarily for small-scale applications.[21][25] In more recent versions of LibreOffice, Firebird version 3.0.7 has been integrated as an experimental embedded engine, intended as a replacement for HSQLDB to address its limitations. Firebird is a multi-threaded, open-source relational database that adheres closely to SQL standards, offering enhanced features such as advanced indexing, full support for stored procedures and triggers, and improved concurrency handling even in embedded scenarios. Unlike HSQLDB, Firebird provides robust ACID (Atomicity, Consistency, Isolation, Durability) compliance, ensuring reliable transaction processing and data integrity for more demanding workloads. This shift to Firebird began experimentally around LibreOffice 6.2 but has not become the default; as of 2025, HSQLDB remains the primary embedded engine, with Firebird available experimentally via enabling optional features. As of 2025, the embedded HSQLDB engine is deprecated, and users are prompted to migrate to alternatives like Firebird or external databases for better reliability. Firebird remains experimental and is not recommended for critical applications due to ongoing stability issues.[21][26][27] Databases created with these embedded engines are stored in the OpenDocument Database (.odb) file format, which serves as a self-contained package including the database schema, data tables, queries, forms, and reports. In embedded mode, all components remain within the single .odb file, promoting portability across systems without needing separate data files or server installations. This design facilitates easy sharing and backup but reinforces the single-user constraint, as concurrent modifications from multiple users are not supported.[21][28] Performance-wise, HSQLDB performs adequately for small datasets and simple queries, leveraging its lightweight Java implementation for quick startup and low resource usage in personal or prototyping scenarios. However, it can experience slowdowns with larger tables or intensive operations due to its single-threaded nature and limited optimization for embedded use. Firebird, by contrast, excels with larger datasets and complex queries, benefiting from its multi-threaded architecture and superior indexing capabilities, which enable faster execution and better scalability within the embedded constraints. For optimal performance with either engine, LibreOffice Base requires a compatible Java runtime environment, with recent versions of OpenJDK (such as Eclipse Temurin) recommended for stable support of the embedded modes.[29][8][9]Connectivity Options
LibreOffice Base supports multiple connectivity protocols to link with external databases, enabling users to access and manage data from various SQL-based systems without embedding the database engine directly into the .odb file. These options leverage the Star Database Connectivity (SDBC) API, LibreOffice's platform-independent interface for database interactions, which abstracts underlying drivers for seamless integration across operating systems.[30] JDBC (Java Database Connectivity) provides a standard method for connecting to Java-compatible databases, such as Oracle, MySQL, or PostgreSQL, using drivers supplied by the database vendors. To establish a JDBC connection, users must first install a compatible Java Runtime Environment (JRE) and add the JDBC driver class to LibreOffice's classpath via Tools > Options > LibreOffice > Advanced > Class Path, followed by restarting the application. The connection URL follows a database-specific format, such asjdbc:mysql://[hostname](/page/Hostname):3306/database_name for MySQL (default port 3306) or jdbc:oracle:thin:@[hostname](/page/Hostname):[port](/page/Port):database_name for Oracle, with authentication details like username and password entered separately. This approach allows Base to interface with most SQL databases that offer JDBC drivers, supporting read-write operations where the driver permits.[31]
ODBC (Open Database Connectivity) facilitates connections to databases on Windows natively, using system-registered data sources, while on Linux and macOS, it relies on bridges like unixODBC for compatibility. Configuration involves selecting an existing ODBC data source name (DSN) from the system's ODBC administrator or browsing to create one, adhering to the ODBC 3.0 standard supported by LibreOffice. This method is particularly useful for Microsoft Access or other Windows-centric databases, though it requires installing ODBC drivers from the database provider and may introduce overhead on non-Windows platforms due to the bridging layer. Editing and adding records necessitate a unique index field in the database tables.[32]
In addition to JDBC and ODBC, LibreOffice Base includes native SDBC drivers for select databases, eliminating the need for intermediary layers. For MySQL and MariaDB, the built-in connector utilizes the libmysqlclient library to enable direct connections, supporting server-based deployments with options for hostname, port (default 3306), and database selection during setup. PostgreSQL connectivity employs the libpq library via a dedicated SDBC driver package (libreoffice-sdbc-postgresql), allowing URL formats like sdbc:postgresql://hostname:5432/database_name. dBase files (.dbf) are supported through an integrated native driver, suitable for legacy flat-file databases without requiring external servers. These native options prioritize performance for commonly used open-source databases.[1][33]
To configure any data source, users navigate to Tools > Options > LibreOffice Base > Databases, click New to register a connection, and specify details such as the driver type, server hostname or path, port number, database name, and credentials. The Database Wizard guides initial setup, testing the connection before finalizing, and registered sources become available across the LibreOffice suite for reuse.[34]
Advanced features enhance security and efficiency in connections. SSL/TLS encryption is configurable for supported drivers like MySQL/MariaDB and PostgreSQL by appending parameters to the connection URL (e.g., ?useSSL=true for JDBC MySQL) or enabling it in server settings, ensuring data transmission over secure channels. Connection pooling, available in multi-user scenarios via certain native and JDBC drivers, reuses persistent connections to reduce overhead, with configurable delay times for pooling maintenance. Read-only modes can be enforced through connection properties or URL flags (e.g., ?readOnly=true), restricting modifications to prevent accidental data changes in shared environments.[35][36][30]
Despite these capabilities, LibreOffice Base's external connectivity has limitations: all options require separate installation and configuration of the target database servers or drivers, as Base does not bundle them. Direct support is confined to SQL databases, with no built-in interfaces for NoSQL systems like MongoDB or Cassandra, necessitating third-party extensions or alternative tools for such integrations.[1]