<
Neerav Mehta
Founder & CEO
Simply use the option "-u 1" in the drush statement. So "drush cc all" will become "drush -u 1 cc all". With this argument, drush will load user 1 instead of user 0. This is a pretty easy quick-and-dirty workaround. You will have to use this argument every time you run drush.
This is a better and permanent fix. You can add user 0 to the "users" table. Execute the following MySQL query
insert into users (name, pass, mail, theme, signature, language, init,
timezone) values ('', '', '', '', '', '', '', '');
update users set uid = 0 where name = '';
The first query inserts an empty row in the MySQL database. The second query sets the uid of the empty row to be 0. Now, when you execute any drush command, you should not get the error "Could not login with user ID #0".
Neerav Mehta
Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.
Let’s get you started!