简体   繁体   English

TYPO3 数据库导入

[英]TYPO3 Database import

How can I import a database at my TYPO3 Backend?如何在我的 TYPO3 后端导入数据库? I use Visual Studio Code with composer as a SSH for the server where I write the code for backend.我使用带有 Composer 的 Visual Studio Code 作为我为后端编写代码的服务器的 SSH。 I also have an extension "external import" but im not sure if I can import a database with this extension.我还有一个扩展“外部导入”,但我不确定是否可以使用此扩展导入数据库。

I have a sample database which I want to try to import.我有一个我想尝试导入的示例数据库。 I already tried with the following command which I entered at the terminal of Visual Studio Code:我已经尝试使用在 Visual Studio Code 终端输入的以下命令:

mysql -h 127.0.0.3 -u db12345_678 -p db12345_678 < dateiname.sql

It requires a password which I don't know what password it can be.它需要一个密码,我不知道它可以是什么密码。 I'm not even sure if this command will work and will show the imported database at TYPO3 frontend then.我什至不确定这个命令是否有效,然后会在 TYPO3 前端显示导入的数据库。

If you don't know the database password of your TYPO3 installation you can try to look it up in typo3conf/LocalConfiguration.php or typo3conf/AdditionalConfiguration.php .如果您不知道 TYPO3 安装的数据库密码,您可以尝试在typo3conf/LocalConfiguration.phptypo3conf/AdditionalConfiguration.php

Please note that AdditionalConfiguration.php (if present) always takes precedence over LocalConfiguration.php .请注意AdditionalConfiguration.php (如果存在)始终优先于LocalConfiguration.php

Regardless of the database credentials maybe your hosting provider has a PhpMyadmin installation.无论数据库凭据如何,您的托管服务提供商都可能安装了 PhpMyadmin。 Otherwise there are TYPO3 extensions like phpmyadmin or t3adminer in the TYPO3 Extension Repository but be very careful when using these extensions in production!否则,TYPO3 扩展存储库中有 phpmyadmin 或 t3adminer 等 TYPO3 扩展,但在生产中使用这些扩展时要非常小心!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM