Drupal 8 Installation Setup with Terminal or browser
To quickly get the installation setup process completed in Drupal, there's two options.
- The command-line using Drupal Console or Drush
- And the web browser by visiting http://mysitename
Create a database
In either case, the first thing that's needed is a database where the Drupal instance will store it's data.
When using a MySQL gui application like Sequel Pro or Querious, create a new database, 'MYDBNAME' and make sure the database user has proper access.
To use the Terminal, with the 'root' mysql user in this case:
mysqladmin -u root -p create MYDBNAME
Start the setup process
Using the Terminal
The site install task will display basic setup questions, most of which can be left at default, for now by hitting [enter]. The database user/password and the admin (superuser) user/password are required.
➜ MYSITENAME drupal site:install Select Drupal profile to be installed:  demo_umami  minimal  nightwatch_testing  standard > 1 Select language for your Drupal installation [English]: > Drupal Database type:  SQLite  MySQL, MariaDB, Percona Server, or equivalent  PostgreSQL > 1 Database Host [127.0.0.1]: > Database Name: > MYDBNAME Database User: > root Database Pass : > Database Port : > Database Prefix : > Provide your Drupal site name [My awesome site]: > Provide your Drupal site mail [firstname.lastname@example.org]: > Provide your Drupal administrator account name [admin]: > Provide your Drupal administrator account password: > Provide your Drupal administrator account mail [email@example.com]: > Starting Drupal 8 install process [OK] Your Drupal 8 installation was completed successfully
Or, even faster — this can be done with a single command:
drush site-install --db-url=mysql://someuser:somepass@localhost/somedatabase --account-pass=admin --existing-config -y -vvv.
Using a Web browser