在linux上安裝會出錯。。新安裝和升級都提示錯誤
錯誤位置
FILE: /web/ThinkPHP/Library/Think/Db/Driver.class.php LINE: 105
TRACE
#0 /web/ThinkPHP/Library/Think/Db/Driver.class.php(105): E('could not find ...')
#1 /web/ThinkPHP/Library/Think/Db/Driver.class.php(1039): Think\Db\Driver->connect()
#2 /web/ThinkPHP/Library/Think/Db/Driver.class.php(181): Think\Db\Driver->initConnect(true)
#3 /web/Application/Install/Controller/InstallController.class.php(77): Think\Db\Driver->execute('CREATE DATABASE...')
#4 [internal function]: Install\Controller\InstallController->step2(Array, Array)
#5 /web/ThinkPHP/Library/Think/App.class.php(154): ReflectionMethod->invokeArgs(Object(Install\Controller\InstallController), Array)
#6 /web/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#7 /web/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#8 /web/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#9 /web/install.php(34): require('/web/ThinkPHP/T...')
#10 {main}
錯誤位置
FILE: /web/ThinkPHP/Library/Think/Db/Driver.class.php LINE: 105
TRACE
#0 /web/ThinkPHP/Library/Think/Db/Driver.class.php(105): E('could not find ...')
#1 /web/ThinkPHP/Library/Think/Db/Driver.class.php(1039): Think\Db\Driver->connect()
#2 /web/ThinkPHP/Library/Think/Db/Driver.class.php(181): Think\Db\Driver->initConnect(true)
#3 /web/Application/Install/Controller/InstallController.class.php(77): Think\Db\Driver->execute('CREATE DATABASE...')
#4 [internal function]: Install\Controller\InstallController->step2(Array, Array)
#5 /web/ThinkPHP/Library/Think/App.class.php(154): ReflectionMethod->invokeArgs(Object(Install\Controller\InstallController), Array)
#6 /web/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#7 /web/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#8 /web/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#9 /web/install.php(34): require('/web/ThinkPHP/T...')
#10 {main}
回覆
要麼就是資料夾許可權問題,要麼就是資料庫mysql的連結問題