bwfront
bwfront

Reputation: 23

Connect DDEV database to TYPO3 project

Im new to TYPO3 v13, i use typo3 with ddev I created my database. I look arround i find nothing to connect te database or the docs are so old. ChatGPT say i can connect it in the install.php site in my typo projekt so i open the install backend and there is nothing with database.

I don't know how to use it, i need 2 min to fetch the data via python, and 4 hours of research the internet and dont get it. I want to use the data of my database in typo3 so i can add and remove data and show data on the page.

Upvotes: 0

Views: 217

Answers (2)

Thomas Löffler
Thomas Löffler

Reputation: 6174

For a basic TYPO3 setup with DDEV you should follow the official docs: https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/Installation/TutorialDdev.html#installation-ddev-tutorial

DDEV's docs also explain a basic TYPO3 install: https://ddev.readthedocs.io/en/latest/users/quickstart/#typo3

ddev describe will always show you how to access the database from inside the container. host=db, database=db, user=db, password=db.

The DDEV FAQ explains how to connect to the database.

And the Database Management article should help you as well.

Upvotes: 1

Michael Stein
Michael Stein

Reputation: 11

if you install the typo3 by hand (or better by composer), you can add the database connection in: config/system/settings.php

'DB' => [
    'Connections' => [
        'Default' => [
            'charset' => 'utf8mb4',
            'dbname' => 'db',
            'driver' => 'mysqli',
            'host' => 'db',
            'password' => 'db',
            'port' => 3306,
            'tableoptions' => [
                'charset' => 'utf8mb4',
                'collate' => 'utf8mb4_unicode_ci',
            ],
            'user' => 'db',
        ],
    ],
],

Upvotes: 1

Related Questions