[support] 2002 error

AjK drupal at f2s.com
Mon May 22 07:35:47 UTC 2006



> 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


More information about the support mailing list