[support] 2002 error

Tony Budak TonyBudak at CLNews.org
Mon May 22 18:24:58 UTC 2006


Hi AjK,

I named my database "drupal". 

So in the first example, the command would be
mysql -u xclnews -p xclnews-drupal -D drupal< \
/big/dom/xclnews/www/drupal/database/database.4.0.mysql

Is this what you suggest?

What does the -D signify?

thanks,
Tony

----- Original Message ----- 
From: "AjK" <drupal at f2s.com>
To: <support at drupal.org>
Sent: Monday, May 22, 2006 3:35 AM
Subject: RE: [support] 2002 error




> mysql -u xclnews -p xclnews-drupal <
> /big/dom/xclnews/www/drupal/database/database4.0.mysql
>
> Then I get a request for password, enter password and then I get a "2002
> error, can't connect to local mysql server through socket 
> '/tmp/mysql.sock'
> "
> 
> Any help PLEASE

Missing database name: try this for unix sockets:-
[Replace "xclnews_db" with your database name]

mysql -u xclnews -p xclnews-drupal -D xclnews_db < \
/big/dom/xclnews/www/drupal/database/database4.0.mysql

or this for TCP connect:-

mysql -u xclnews -p xclnews-drupal -h 127.0.0.1 -P 3306 -D xclnews_db < \
/big/dom/xclnews/www/drupal/database/database4.0.mysql

regards
--AjK
-- 
[ Drupal support list | http://lists.drupal.org/ ]




More information about the support mailing list