K2Bridge / Guide
Prepare source database access for a Joomla migration
K2Bridge and Bridge35 run inside the new Joomla 5 site and read the old Joomla 3 database. They need four things from it: a host they can reach, the database name, an account that may read it, and the table prefix. This guide shows what to ask your host for, and what each preflight message means when one of the four is wrong. Every name, address and prefix below is a placeholder.
Online version: https://sidecarsoft.com/guides/joomla-migration-database-access/
Size before access
Link to sectionBefore preparing database access, record the six planning fields below. Unknown is acceptable; ask your host to confirm missing limits. Keep this record locally: it is a checklist, not a submission form.
Historical synthetic fixtures recorded in our 9 November 2026 sizing brief; original final logs rechecked on 23 November 2026. These are functional checks, not benchmarks or capacity guarantees.
| Fixture | Observed | Not established |
|---|---|---|
| Bridge35 1.0.0 | 2,077 articles; 44 checks passed, 0 failed. | Maximum site size, speed or RAM. |
| K2Bridge 1.0.2 | 3 items; 24 checks passed, 0 failed. | Large K2 migration capacity. |
| Execution route | Docker CLI; Joomla 5.4.10, PHP 8.3.36, MariaDB 11.4.13. | Browser, shared-host or MySQL performance. |
Content counts: core articles or K2 items; categories, users, tags/links, fields/values, attachments and comments. Identify core, K2 or both.
Database footprint: relevant data/index bytes and largest text/field payload; measurement date and method.
Media footprint: file count, total bytes and largest file. Plan media transfer separately.
Versions and route: source/target Joomla, PHP and database engine/version; CLI or browser; same-host or remote. Omit addresses.
Effective limits: PHP memory/time limits, host request/process ceilings, database packet/connection limits, free disk and quota. Use actual values, not defaults.
Recovery window: permitted freeze/downtime, fresh isolated target, verified backup/restore and count/content/media/login acceptance checks.
PHP memory_limit is not an article rating; CLI and browser time limits differ. MySQL packet limits apply to individual statements/rows and to both client and server. Confirm your actual engine and host settings; MySQL documentation is not a MariaDB host test.
Stop rule: no rehearsal until scope, effective limits, isolated fresh target and restore are confirmed. During an authorized rehearsal, stop on a host/resource limit, lost connection or failed validation; preserve logs, repair and validate recovery before retrying. Review measured time/resources and results before a separate production decision.
Neither fixture establishes throughput, peak RAM, elapsed time, temporary disk needs, media completeness or full-site parity. Do not extrapolate 2,077 core articles to K2 or larger sites. Record aggregates only: no credentials, dumps, content samples or customer data.
The source is read, the destination is written
Link to sectionBoth tools have two database connections. The destination is the Joomla 5 site the tool is installed in. It writes there through Joomla's own connection, in one transaction. The source is the old Joomla 3 database. The tool only reads it.
So the account you prepare for the source needs to read, nothing more. It never needs to create, change or delete anything in the old database. Keep the old site's own database account (the one in its configuration.php) for the old site; it usually has more rights than a migration needs.
| Question | K2Bridge (K2 to Joomla 5) | Bridge35 (Joomla 3 to Joomla 5) |
|---|---|---|
| Source access in the specification | "SELECT access to the legacy K2 and Joomla users tables." "A database account with SELECT access is sufficient; the source is never modified." | "Read access from the Joomla 5 server to the Joomla 3 database. A read-only database user is enough." "The Joomla 3 database is only read." |
| Tables the preflight must find | k2_items, k2_categories, k2_tags and k2_tags_xref (with your prefix in front). It also reads k2_extra_fields, k2_extra_fields_groups, k2_comments, k2_attachments and users when they exist. | content, categories, users, usergroups, viewlevels and assets (with your prefix in front). It also reads the extensions table to confirm the source is Joomla 3, and tags and fields when they exist. |
| Where it writes | Only the Joomla 5 site it is installed in, in one transaction. | Only the Joomla 5 site it is installed in, in one transaction. |
| Connection details you enter | Host, database, user, password and table prefix. The command line takes the password from K2BRIDGE_SOURCE_PASSWORD. | Host, database name, user, password and table prefix. "They are all in the Joomla 3 configuration.php." The command line takes the password from BRIDGE35_SOURCE_PASSWORD or asks for it. |
| Port | No port setting. K2Bridge 1.0.2 connects to port 3306. | Write the port after the host, for example db.example.net:3307. Bridge35 uses Joomla's own MySQL connection, which reads it there. |
| Password storage | Not stated in the specification. | "The password is used for this one request and is never saved." |
Requirements in full: K2Bridge and Bridge35, or both on one page in the setup docs.
Step 1: collect the four values
Link to sectionWrite the four values on one sheet before you open either tool. The table uses placeholders; replace each one with your own value. Do not put the password on the sheet.
| Value | Placeholder | Where it comes from |
|---|---|---|
| Host | localhost (same server) or db.example.net (another server) | Your host. The old site's configuration.php shows the host the old site uses, which is not always the one the new server can reach. |
| Database | legacy_j3 | The old site's configuration.php or your hosting panel. |
| User | migrate_reader | A new, read-only account that your host admin creates for the migration (Step 3). |
| Table prefix | jos_ | The old site's configuration.php. Copy it exactly, including the trailing underscore. |
| Address of the new Joomla 5 server | 203.0.113.10 | Your host. The database server sees connections from this address, so the account must allow it. |
Step 2: confirm the table prefix
Link to sectionJoomla adds the same prefix to every table name. Both tools add the prefix you type to every table they look for. With the prefix jos_, K2Bridge looks for jos_k2_items and Bridge35 looks for jos_content.
Older sites often use jos_. Newer installs use a random prefix such as x7k2q_. One database can hold two Joomla installs with two prefixes, so check which one belongs to the site you are migrating.
- Type the prefix exactly as it is in configuration.php. jos without the underscore makes the tool look for josk2_items, which does not exist.
- Bridge35 accepts only letters, digits and the underscore in the prefix. Anything else (for example a space) stops it with "Invalid table prefix."
- To see the tables, ask your host admin or use your database tool with the migration account: SHOW TABLES LIKE 'jos%'; The MySQL and MariaDB manuals both say a table you have no privileges for does not show up in SHOW TABLES. An empty list can mean a wrong prefix or a missing grant.
Step 3: what to ask your host admin for
Link to sectionSend this request to whoever manages the old database server. You do not run it yourself, and you never need administrator rights for the migration.
- One new account for the migration only, for example migrate_reader. Its host part is the address of the new Joomla 5 server (203.0.113.10 in the example), or localhost if both sites are on the same server. MySQL account names have the form 'user_name'@'host_name', and the host part decides where the account may connect from.
- SELECT on the one source database, nothing else. In MySQL and MariaDB, a database-level privilege is written db_name.*, so the request is: GRANT SELECT ON legacy_j3.* TO 'migrate_reader'@'203.0.113.10';
- No global privileges. In GRANT, *.* means every database on the server. Do not ask for *.*, ALL, GRANT OPTION, FILE, PROCESS or SUPER. A migration needs none of them.
- No wildcard host if a fixed address works. If you leave out the host part, MySQL uses '%', which matches any host. Prefer the real address of the new server.
- A date to remove it. After the migration is checked, the admin removes the account: DROP USER 'migrate_reader'@'203.0.113.10';
If your host uses a control panel, the same request is a new database user added to one database with only the SELECT privilege selected. Receive the password through the panel or a password manager, not in an email or a support ticket.
Step 4: make sure the new server can reach the old database
Link to sectionOn the same server, use localhost or 127.0.0.1 as the host. The K2Bridge admin form starts with 127.0.0.1 in the host field. This is the simplest case: nothing has to listen on the network.
On a different server, three things must be true. The database server listens on a network address, not only on 127.0.0.1. No firewall blocks the port (3306 by default) from the new server. And an account exists whose host part matches the new server's address.
MySQL listens on all addresses by default (bind_address is *). The MariaDB documentation says many MariaDB packages bind to 127.0.0.1 by default, and then remote connections fail. If skip_networking is on, the server accepts no TCP/IP connections at all. Only your host admin can change these settings.
- If remote access is not allowed, ask for an export of the source database and import it into a new, empty database on the new server. Then connect to that copy with host localhost. The tools only read it, so a copy works as well as the original.
- K2Bridge 1.0.2 always connects to port 3306. If the old database listens on another port, use the copy described above. For Bridge35, write the port after the host (db.example.net:3307).
- Test from the new server, not from your own computer. The database server checks the address the connection comes from.
Step 5: read the preflight messages
Link to sectionRun the check before every real run: "Check" in K2Bridge or "Check (no changes)" in Bridge35. On the command line, Bridge35's --dry-run runs only the checks. K2Bridge's --dry-run runs the whole import in one transaction and then rolls it back. K2Bridge prefixes connection problems with "Failed connecting to legacy database:". Bridge35 shows "Error: Could not connect to database:". The text after that comes from the database server or from PHP. The examples use the placeholders from Step 1.
| Message (example) | What it means | What to check |
|---|---|---|
| Access denied for user 'migrate_reader'@'203.0.113.10' (error 1045) | The server rejected the user name and password from this address. | Retype the password. Ask the admin whether the account exists with exactly this host part. The address in the message is the one the database server sees. |
| Host '203.0.113.10' is not allowed to connect to this MySQL server (error 1130) | No account allows connections from this address. | Ask the admin to set the account's host part to this address. |
| Can't connect to MySQL server on 'db.example.net:3306', Connection refused or Connection timed out (error 2002 or 2003) | The new server got no database connection: wrong host or port, the server listens only on 127.0.0.1, skip_networking is on, or a firewall blocks the port. | Check the host and port. Ask the admin about bind_address, skip_networking and the firewall, or use a copy on the new server (Step 4). |
| Unknown MySQL server host 'db.example.net', or a getaddrinfo message (error 2005) | The new server cannot resolve the host name. | Check the spelling. Ask the host which name or address the new server should use. |
| Access denied for user 'migrate_reader'@'203.0.113.10' to database 'legacy_j3' (error 1044) | The account logs in but has no privilege on this database. | Check the database name. Ask for SELECT ON legacy_j3.*. |
| Unknown database 'legacy_j3' (error 1049) | No database with this name exists on that server. | Check the spelling, and that the host is the right server. |
| K2Bridge: Required K2 tables not found in legacy database: jos_k2_items, jos_k2_categories, jos_k2_tags, jos_k2_tags_xref | The tool connected but cannot see these tables. | Three causes: a wrong prefix, the wrong database, or no SELECT on these tables. K2Bridge looks the tables up in information_schema, and an account sees only the tables it has a privilege on. |
| Bridge35: Source database has no #__content table. Check the source prefix. | The tool connected but cannot see the table (#__ stands for your prefix). | The same three causes: prefix, database, or missing SELECT. Bridge35 lists tables with a SHOW TABLES query, which hides tables without a privilege. |
| SELECT command denied to user 'migrate_reader'@'203.0.113.10' for table 'jos_users' (error 1142) | The account can read some tables but not this one. | Ask for SELECT on the whole source database (legacy_j3.*) instead of single tables. |
| Bridge35: Source site is Joomla 4, not Joomla 3. | The database belongs to a newer site. | Check the database name and prefix. Bridge35 reads only Joomla 3 sources. |
| Bridge35: Invalid table prefix. | The prefix has a character other than a letter, digit or underscore. | Copy the prefix from configuration.php again, without spaces or quotes. |
| Target Joomla 5 site already contains 12 article(s) (K2Bridge), or Target site already has articles (Bridge35) | A destination check, not a source problem. Both tools want a fresh Joomla 5 site. | Do not change the source account. Read the requirements on the K2Bridge or Bridge35 page. |
The exact words after an access or connection message depend on the database server and PHP's MySQL client. Read the words, not only the number. Keep a copy of a passing check with your migration notes.
Step 6: after the migration
Link to sectionKeep the source database unchanged and available until the new site is checked. Then ask the host admin to remove the migration account, and delete any export copy you made on the new server. Neither tool needs the source again once you have accepted the result.
Sources
- PHP: memory_limit (23 November 2026)
- PHP: max_execution_time (23 November 2026)
- MySQL 8.4: Packet Too Large (23 November 2026)
- K2Bridge product page: requirements
- K2Bridge guide: scope, limits and command line
- Bridge35 product page: requirements
- Bridge35 guide: requirements, admin screen, command line and safety
- MySQL 8.4: GRANT statement (privilege levels, default host '%')
- MySQL 8.4: Privileges provided by MySQL
- MySQL 8.4: Specifying account names
- MySQL 8.4: SHOW TABLES (tables without privileges are not shown)
- MySQL 8.4: INFORMATION_SCHEMA introduction (rows only for objects you have privileges on)
- MySQL 8.4: Troubleshooting problems connecting to MySQL
- MySQL 8.4: Server system variables (bind_address)
- MySQL 8.4: Server error message reference (1044, 1045, 1049, 1130, 1142)
- MySQL 8.4: Client error message reference (2002, 2003, 2005)
- MariaDB: GRANT
- MariaDB: Configuring MariaDB for remote client access
- MariaDB: SHOW TABLES
Original database-access sources read on 20 November 2026; sizing sources read on 23 November 2026. Product facts come from the published product pages and guides; the preflight messages, table lists, the K2Bridge port and the Bridge35 host:port handling come from the K2Bridge 1.0.2 and Bridge35 release code. Every value in the examples is a placeholder: the address 203.0.113.10 is from a range reserved for documentation, and no real database was connected.