Ubuntu 13.04灯和钻孔

时间:2014-01-17 19:24:11

标签: ubuntu drupal drupal-7 lamp drush

我在Ubuntu 13.04上运行Lamp堆栈,当我尝试使用drush时,例如cache-clear,我收到以下错误:enter image description here

我知道这是因为Lamp。例如,当我想连接到mysql时,我必须手动指定套接字文件,这很好(感谢别名)。但是我怎样才能为drush指定socket?有没有人找到解决方案除了拆除灯和安装适当的堆栈?

1 个答案:

答案 0 :(得分:0)

您是否尝试过将settings.php中的db host设置为127.0.0.1而不是localhost?