Hello i'm new, when I installed magento I got this error
Module 'Magento_DownloadableSampleData':
[ERROR] Exception: Rolled back transaction has not been completed correctly. in /var/www/html/tn1/mgt-test/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:307
Stack trace:
#0 /var/www/html/tn1/mgt-test/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\DB\Adapter\Pdo\Mysql->commit()
#1 /var/www/html/tn1/mgt-test/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->___callParent('commit', Array)
#2 /var/www/html/tn1/mgt-test/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->Magento\Framework\Interception\{closure}()
#3 /var/www/html/tn1/mgt-test/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(39): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->___callPlugins('commit', Array, Array)
#4 /var/www/html/tn1/mgt-test/vendor/magento/framework/Setup/Patch/PatchApplier.php(167): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->commit()
#5 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(1010): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Downloa...')
#6 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(879): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array)
#7 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array)
#8 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(368): call_user_func_array(Array, Array)
#9 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#10 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#11 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#15 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#16 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#17 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#18 /var/www/html/tn1/mgt-test/setup/index.php(39): Zend\Mvc\Application->run()
#19 {main}
Next Magento\Framework\Setup\Exception: Unable to apply data patch Magento\DownloadableSampleData\Setup\Patch\Data\InstallDownloadableSampleData for module Magento_DownloadableSampleData. Original exception message: Rolled back transaction has not been completed correctly. in /var/www/html/tn1/mgt-test/vendor/magento/framework/Setup/Patch/PatchApplier.php:170
Stack trace:
#0 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(1010): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Downloa...')
#1 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(879): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array)
#2 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array)
#3 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Model/Installer.php(368): call_user_func_array(Array, Array)
#4 /var/www/html/tn1/mgt-test/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#5 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#6 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/tn1/mgt-test/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /var/www/html/tn1/mgt-test/setup/index.php(39): Zend\Mvc\Application->run()
#14 {main}
Please help me
Please try to switch off persistent cart from below configuration in admin:
Store > Configuration > Customer > Persistent Shopping Cart
& flush cache.
It may help you!