Setup
Configuration
The table is auto-created on first use with schema:
(namespace VARCHAR(255), key VARCHAR(255), value JSON, PRIMARY KEY(namespace, key)).Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Agentium 4.0.0 · Upgrade from 3.x.
MySQL-backed storage driver for sessions and memory
npm install mysql2
import { MySQLStorage } from "@agentium/core";
const storage = new MySQLStorage({
host: "localhost",
port: 3306,
user: "root",
password: "password",
database: "agentium",
});
// Or use a connection string
const storage = new MySQLStorage({
connectionString: "mysql://root:password@localhost:3306/agentium",
});
| Option | Type | Default | Description |
|---|---|---|---|
host | string | "localhost" | MySQL host |
port | number | 3306 | MySQL port |
user | string | "root" | Username |
password | string | "" | Password |
database | string | "agentium" | Database name |
connectionString | string | — | Full connection string |
tableName | string | "kv_store" | Table name |
(namespace VARCHAR(255), key VARCHAR(255), value JSON, PRIMARY KEY(namespace, key)).