如何将旧的magento(2.1.5)数据库迁移到新的magento2.3.3 [英] how do I migrate my old magento(2.1.5) database to my new magento2.3.3
问题描述
如何将旧的magento(2.1.5)数据库迁移到新的magento2.3.3? 我的网站运行环境是: centos 6.9 阿帕奇2.4 的PHP 7.2.24 mysql 5.7.28
How how do I migrate my old magento(2.1.5) database to my new magento2.3.3 ? my website run environment is : centos 6.9 apache 2.4 php 7.2.24 mysql 5.7.28
我的新magento 2.3.3是一个干净的项目.没有数据,没有主题,没有扩展名.
my new magento 2.3.3 is a clean project. no data ,no theme,no extension.
推荐答案
迁移到Magento 2.1.5至2.3.3(通过作曲家)
您需要了解迁移2.3.3的服务器要求 Magento 2.3.3的服务器/系统要求
Migrate to Magento 2.1.5 to 2.3.3 (via composer)
You need to know your server requirement for migrating 2.3.3 Server/System Requirement for Magento 2.3.3
然后,您需要从服务器上备份数据库和文件的第二件事
Then, the second thing that you need to take the backup of database and your files from the server
php bin/magento maintenance:enable
安装magento 2.3.3版本
composer require magento/product-community-edition=2.3.3 --no-update
更新自动加载
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Magento\\": "app/code/Magento/",
"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
},}
您需要如上所述添加"Zend \ Mvc \ Controller \":"setup/src/Zend/Mvc/Controller/"这一行.
You need to add "Zend\Mvc\Controller\": "setup/src/Zend/Mvc/Controller/" this line as mentioned above.
composer update
清理缓存
php bin/magento cache:clean
执行设置和架构升级
php bin/magento setup:upgrade
禁用维护模式
php bin/magento maintenance:disable
检查Magento版本
php bin/magento --version
You can check detail information for migrating and upgrading Magento2 Official Website for Command-Line Upgrade
这篇关于如何将旧的magento(2.1.5)数据库迁移到新的magento2.3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!