Problem installing Drupal 6.22 with Drush I'm trying to install Drupal 6.22 with Drush 4.4 on my CentOS 5.6 box, but am having problems getting it to work.

I run the following command:

drush dl drupal-6.22 --drupal-project-rename=drupal1


Then I run:

drush status


and get:

 Drupal version         :  6.22                  
 Default theme          :  garland               
 Administration theme   :  garland               
 PHP configuration      :  /etc/php.ini          
 Drush version          :  4.4                   
 Drush configuration    :                        
 Drush alias files      :                        
 Drupal root            :  /var/www/html/drupal1 


Which seems to suggest that all was downloaded properly.

Then I run the following command to start setting it up:

drush site-install standard --account-name=admin --account-pass=REMOVED --db-url=mysql://admin:REMOVED@localhost/drupal1db


It asks me if I want to continue and I choose 'yes'. After a second or two, it returns me to the command line prompt.

Then I run 'drush status' again, which returns the following error:

Table &#039;drupal1db.access&#039; doesn&#039;t exist                [warning]
query: SELECT 1 FROM access WHERE type = &#039;host&#039; AND
LOWER(&#039;127.0.0.1&#039;) LIKE LOWER(mask) AND status = 0 LIMIT 0,
1 database.mysql.inc:135
Table &#039;drupal1db.cache&#039; doesn&#039;t exist                 [warning]
query: SELECT data, created, headers, expire, serialized FROM cache
WHERE cid = &#039;variables&#039; database.mysql.inc:135
Table &#039;drupal1db.variable&#039; doesn&#039;t exist              [warning]
query: SELECT * FROM variable database.mysql.inc:135
Table &#039;drupal1db.cache&#039; doesn&#039;t exist                 [warning]
query: UPDATE cache SET data = &#039;&#039;, created = 1309816902,
expire = 0, headers = &#039;&#039;, serialized = 0 WHERE cid =
&#039;variables&#039; database.mysql.inc:135
Table &#039;drupal1db.system&#039; doesn&#039;t exist                [warning]
query: SELECT name, filename, throttle FROM system WHERE type =
&#039;module&#039; AND status = 1 AND bootstrap = 1 ORDER BY weight
ASC, filename ASC database.mysql.inc:135
Table &#039;drupal1db.url_alias&#039; doesn&#039;t exist             [warning]
query: SELECT COUNT(pid) FROM url_alias database.mysql.inc:135
PHP Fatal error:  Call to undefined function filter_xss() in /var/www/html/drupal1/includes/common.inc on line 655
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Call to undefined function filter_xss() in
/var/www/html/drupal1/includes/common.inc, line 655

I go to the Drupal directory in my browser and it just shows a blank white page.

Any ideas?
I had a similar problem when trying to install Drupal 6.26 with drush 4.5 and 5.0 (I tried both).

You do not have to create the database.  You can but drush will drop it and re-create it.

I fixed my problem by doing :

drush site-install default --db-url=mysql://drupaldbuser:REMOVED@localhost/drupal-6-25


I used the profile default rather than standard since drupal 6.x uses default as the default profile.  The standard profile is the new default name in Drupal 7.


http://drupal.org/node/1410242#comment-5795114
http://knol.google.com/k/how-to-install-drupal-with-drush