Files
weewx/docs_src/usersguide/weewx-config-file/databases.md
Tom Keffer 2fe42433fe Rename docs subdirectories.
docs -> docs_src
html_docs -> docs

This puts the names closer to the end product.
2023-04-04 07:27:42 -07:00

1.2 KiB

[Databases]

This section lists actual databases. The name of each database is given in double brackets, for example, [[archive_sqlite]]. Each database section contains the parameters necessary to create and manage the database. The number of parameters varies depending on the type of database.

archive_sqlite

This definition uses the SQLite database engine to store data. SQLite is open-source, simple, lightweight, highly portable, and memory efficient. For most purposes it serves nicely.

database_type

Set to SQLite to signal that this is a SQLite database. The definitions that go with type SQLite are defined in section [DatabaseTypes] / [[SQLite]].

database_name

The path to the SQLite file relative to SQLITE_ROOT. Default is weewx.sdb.

archive_mysql

This definition uses the MySQL database engine to store data. It is free, highly-scalable, but more complicated to administer.

database_type

Set to MySQL to signal that this is a MySQL database. The definitions that go with type MySQL are defined in section [DatabaseTypes] / [[MySQL]].

database_name

The name of the database. Default is weewx.