产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] PDOException

baitongda
铝牌会员
212.61 价值分

baitongda 发表于 2015-03-26 09:31:51

Executing: mysql --defaults-extra-file=/tmp/drush_ayinXf --database=dawa --host=localhost --silent < /tmp/drush_mb7vSt > /dev/null
Executing: mysql --defaults-extra-file=/tmp/drush_4Upx8N --database=information_schema --host=localhost --silent < /tmp/drush_SjUW21
Starting Drupal installation. This takes a while. Consider using the --notify global option. [ok]
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 no such table: languages' in [error]
/mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/sqlite/database.inc:238
Stack trace:
#0 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/sqlite/database.inc(238): PDO->prepare('INSERT INTO lan...', Array)
#1 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/sqlite/database.inc(456): DatabaseConnection_sqlite->PDOPrepare('INSERT INTO lan...')
#2 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/prefetch.inc(163): DatabaseStatement_sqlite->getStatement('INSERT INTO lan...', Array)
#3 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/sqlite/database.inc(461): DatabaseStatementPrefetch->execute(Array, Array)
#4 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/database.inc(683): DatabaseStatement_sqlite->execute(Array, Array)
#5 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/query.inc(644): DatabaseConnection->query('INSERT INTO {la...', Array, Array)
#6 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/database/sqlite/query.inc(27): InsertQuery->execute()
#7 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/locale.inc(584): InsertQuery_sqlite->execute()
#8 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/install.core.inc(1461): locale_add_language('zh-hans', NULL, NULL, NULL, '', '', true, true)
#9 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/install.core.inc(424): install_import_locales(Array)
#10 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/install.core.inc(339): install_run_task(Array, Array)
#11 /mnt/LAMP_PHP5/domain/dawa8.cn/web/includes/install.core.inc(77): install_run_tasks(Array)
#12 /root/.composer/vendor/drush/drush/includes/drush.inc(705): install_drupal(Array)
#13 /root/.composer/vendor/drush/drush/includes/drush.inc(691): drush_call_user_func_array('install_drupal', Array)
#14 /root/.composer/vendor/drush/drush/commands/core/drupal/site_install_7.inc(80): drush_op('install_drupal', Array)
#15 /root/.composer/vendor/drush/drush/commands/core/site_install.drush.inc(289): drush_core_site_install_version(NULL, Array)
#16 : drush_core_site_install()
#17 /root/.composer/vendor/drush/drush/includes/command.inc(368): call_user_func_array('drush_core_site...', Array)
#18 /root/.composer/vendor/drush/drush/includes/command.inc(219): _drush_invoke_hooks(Array, Array)
#19 : drush_command()
#20 /root/.composer/vendor/drush/drush/includes/command.inc(187): call_user_func_array('drush_command', Array)
#21 /root/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
#22 /root/.composer/vendor/drush/drush/drush.php(70): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#23 /root/.composer/vendor/drush/drush/drush.php(11): drush_main()
#24 {main}
Command dispatch complete

2015-03-26 09:31:51 1

baitongda
铝牌会员
212.61 价值分

1.我已有安装
curl -S https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
2.composer global require drush/drush:dev-master --prefer-source --profile
3.vim ~/.bash_profile
drush dl drupal -v
export PATH="$HOME/.composer/vendor/bin:$PATH"

4.drush site-install --db-url=mysql://ninghao:123456@localhost/ninghao --site-name=ninghao --locale=zh-hans -v
出现了上面的问题!
  支持 (0分)  反对 (0分)
回复  2015-03-26 09:36:05 2

amysql
创始人
16530.81 价值分

看是否是需要pdo模块。
  支持 (0分)  反对 (0分)
回复  2015-03-30 16:58:52 3

AMH面板 - 好用高效低占用、安全可靠极稳定

 1  (总1页)
AMH社区列表
用户服务中心