Pages

Monday, 27 April 2015

Drupal install by drush command

E:\xampp\htdocs\drupal>cd\

E:\>cd xampp

E:\xampp>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
O)

E:\xampp>mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.1.41 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database newdrupal;
Query OK, 1 row affected (0.00 sec)

mysql> ;
ERROR:
No query specified

mysql> exit;
Bye

E:\xampp>cd htdocs

E:\xampp\htdocs>cd drupal

E:\xampp\htdocs\drupal>drush si standard --account-name=admin --account-pass=adm
in --db-url=mysql://root:@localhost/newdrupal


You are about to create a sites/default/files directory and create a sites/defau
lt/settings.php file and DROP all tables in your 'newdrupal' database. Do you wa
nt to continue? (y/n): y
No tables to drop.                                                          [ok]

Starting Drupal installation. This takes a few seconds ...                  [ok]

Installation complete.  User name: admin  User password: admin              [ok]


E:\xampp\htdocs\drupal>


si = SITE-INSTALL
standard = INSTALLATION mode (second is manual)
account-name=admin
account-pass=admin
db-url=mysql://root:@localhost/newdrupal
 

No comments:

Post a Comment