Drush启用错误 [英] Drush enable error

查看:206
本文介绍了Drush启用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用drush启用模块时,我收到这个错误



我使用mamp pro 3和php 5.5.10

 < h1>处理异常时抛出的其他未捕获的异常。< / h1 
< h2>原始< / h2>
< p> PDOException:SQLSTATE [HY000] [2002]在drupal_is_denied()中的非套接字
上的套接字操作(/ Users / edinpuzic / desktop / projekti / studiotnt
/包括/ bootstrap.inc文件)LT; / p为H.
< h2>附加< / h2>
< p> PDOException:SQLSTATE [HY000] [2002]在_registry_check_code()中的非套接字
上的套接字操作(/ Users / edinpuzic / desktop / projekti / studiotnt
/包括/ bootstrap.inc文件)LT; / p为H.
< hr /> Drush命令由于不可恢复的错误而异常终止。 [错误]


解决方案

我有同样的问题,周围我已经弄清楚了te sock文件是:

  /private/tmp/mysql.sock 

  / var /mysql/mysql.sock 

在这种情况下,我做了:

  cd / var 
sudo mkdir mysql
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock


when i what to enable module using drush I'm getting this error

Im using mamp pro 3 and php 5.5.10

<h1>Additional uncaught exception thrown while handling exception.</h1
<h2>Original</h2>
<p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket 
in drupal_is_denied() (line 1933 of /Users/edinpuzic/desktop/projekti/studiotnt
/includes/bootstrap.inc).</p>
<h2>Additional</h2>
<p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket 
in _registry_check_code() (line 3185 of /Users/edinpuzic/desktop/projekti/studiotnt
/includes/bootstrap.inc).</p>
<hr />Drush command terminated abnormally due to an unrecoverable error.   [error]

解决方案

I had the same issue, after poking around I've figured out that te sock files was:

/private/tmp/mysql.sock

not

/var/mysql/mysql.sock

In this case I did:

cd /var
sudo mkdir mysql 
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock

这篇关于Drush启用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆