Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the cms is not installing on terminal #3156

Open
AlisherN opened this issue Jul 26, 2018 · 1 comment
Open

the cms is not installing on terminal #3156

AlisherN opened this issue Jul 26, 2018 · 1 comment

Comments

@AlisherN
Copy link

AlisherN commented Jul 26, 2018

Description

the cms is not installing when I try to install it through a terminal. The terminal shows following errors:

> craft setup                                                                                                                               
Which database driver are you using? [mysql,pgsql,?]: mysql                                                                                 
Database server name or IP address: [localhost]                                                                                             
Database port: [3306]                                                                                                                       
Database username: [root]                                                                                                                   
Database password:                                                                                                                          
Database name: craft                                                                                                                        
Database table prefix:                                                                                                                      
Testing database credentials... success!                                                                                                    
Saving database credentials to your .env file... done                                                                                       
                                                                                                                                            
Install Craft now? (yes|no) [yes]:yes                                                                                                       
                                                                                                                                            
Username: [admin] admin                                                                                                                     
Email: [email protected]                                                                                                                 
Password:                                                                                                                                   
Confirm:                                                                                                                                    
Site name: craft.loc                                                                                                                        
Site URL: [@web]                                                                                                                            
Site language: [en-US]                                                                                                                      
*** installing Craft                                                                                                                        
    > create table {{%assetindexdata}} ...Exception: Unsupported DB driver value:  (D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\
config\DbConfig.php:190)                                                                                                                    
#0 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\config\DbConfig->init()                              
#1 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\services\Config.php(109): yii\base\BaseObject->__construct(Array)                
#2 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\services\Config.php(154): craft\services\Config->getConfigSettings('db')         
#3 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\db\mysql\QueryBuilder.php(49): craft\services\Config->getDb()                    
#4 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\db\Command.php(638): craft\db\mysql\QueryBuilder->createTable('{{%assetindexda...', A
rray, 'ENGINE=InnoDb')                                                                                                                      
#5 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\db\Migration.php(323): yii\db\Command->createTable('{{%assetindexda...', Array, NULL)
                                                                                                                                            
#6 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\migrations\Install.php(127): yii\db\Migration->createTable('{{%assetindexda...', 
Array)                                                                                                                                      
#7 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\migrations\Install.php(60): craft\migrations\Install->createTables()             
#8 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\db\Migration.php(56): craft\migrations\Install->safeUp()                         
#9 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\db\MigrationManager.php(243): craft\db\Migration->up(true)                       
#10 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\console\controllers\InstallController.php(145): craft\db\MigrationManager->migra
teUp(Object(craft\migrations\Install))                                                                                                      
#11 [internal function]: craft\console\controllers\InstallController->actionCraft()                                                         
#12 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)                       
#13 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)               
#14 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)              
#15 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)                  
#16 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('install', Array)          
#17 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\console\controllers\SetupController.php(120): yii\console\Application->runAction
('install')                                                                                                                                 
#18 [internal function]: craft\console\controllers\SetupController->actionIndex()                                                           
#19 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)                       
#20 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)               
#21 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)              
#22 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)                  
#23 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('setup', Array)            
#24 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('setup', Array)    
#25 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Application.php(386): yii\console\Application->handleRequest(Object(craft\conso
le\Request))                                                                                                                                
#26 D:\OS\OSPanel\domains\craft.loc\craft(22): yii\base\Application->run()                                                                  
#27 {main}                                                                                                                                  
Exception 'craft\errors\MigrationException' with message 'An error occurred while executing the "craft\migrations\Install migration: Unsuppo
rted DB driver value: '                                                                                                                     
                                                                                                                                            
in D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\db\MigrationManager.php:260                                                      
                                                                                                                                            
Stack trace:                                                                                                                                
#0 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\console\controllers\InstallController.php(145): craft\db\MigrationManager->migrat
eUp(Object(craft\migrations\Install))                                                                                                       
#1 [internal function]: craft\console\controllers\InstallController->actionCraft()                                                          
#2 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)                        
#3 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)                
#4 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)               
#5 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)                   
#6 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('install', Array)           
#7 D:\OS\OSPanel\domains\craft.loc\vendor\craftcms\cms\src\console\controllers\SetupController.php(120): yii\console\Application->runAction(
'install')                                                                                                                                  
#8 [internal function]: craft\console\controllers\SetupController->actionIndex()                                                            
#9 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)                        
#10 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)               
#11 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)              
#12 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)                  
#13 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('setup', Array)            
#14 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('setup', Array)    
#15 D:\OS\OSPanel\domains\craft.loc\vendor\yiisoft\yii2\base\Application.php(386): yii\console\Application->handleRequest(Object(craft\conso
le\Request))                                                                                                                                
#16 D:\OS\OSPanel\domains\craft.loc\craft(22): yii\base\Application->run()                                                                  
#17 {main}                                                                                                                                  

Additional info

  • Craft version: 3
  • PHP version: 7
  • Database driver & version: 5.6
  • Plugins & versions:
@brandonkelly
Copy link
Member

What specific version of Craft are you trying to install? You can find it by checking the version key in vendor/craftcms/cms/src/config/app.php.

Also have you made any manual changes to either .env or config/db.php ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants