---
title: "database:import"
manual: "TYPO3 Console"
version: "main"
permalink: "https://docs.typo3.org/permalink/helhum/typo3-console:typo3-console-command-reference-database-import@main"
source: "CommandReference/DatabaseImport.rst"
rendered: "2026-11-30T08:45:29+00:00"
---

# database:import {#typo3-console-command-reference-database-import}

**Import mysql queries from stdin**

This means that this can not only be used to pass insert statements,
it but works as well to pass SELECT statements to it.
The mysql binary must be available in the path for this command to work.
This obviously only works when MySQL is used as DBMS.

**Example (import):**

```shell
ssh remote.server '/path/to/typo3 database:export' | typo3 database:import
```

**Example (select):**

```shell
echo 'SELECT username from be_users WHERE admin=1;' | typo3 database:import -- --skip-ssl
```

**Example (interactive):**

```shell
typo3 database:import --interactive
```

## Arguments {#arguments}

-   **`additionalMysqlArguments`**

    Pass one or more additional arguments to the mysql command; see examples

## Options {#options}

-   **`--interactive`**

    Open an interactive mysql shell using the TYPO3 connection settings.

-   Accept value: no
-   Is value required: no
-   Is multiple: no
-   Default: false

-   **`--connection`**

    TYPO3 database connection name

-   Accept value: yes
-   Is value required: yes
-   Is multiple: no
-   Default: 'Default'
