annotate core/INSTALL.mysql.txt @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1
Chris@0 2 CREATE THE MySQL DATABASE
Chris@0 3 --------------------------
Chris@0 4
Chris@0 5 This step is only necessary if you don't already have a database set up (e.g.,
Chris@0 6 by your host). In the following examples, 'username' is an example MySQL user
Chris@0 7 which has the CREATE and GRANT privileges. Use the appropriate user name for
Chris@0 8 your system.
Chris@0 9
Chris@0 10 First, you must create a new database for your Drupal site (here, 'databasename'
Chris@0 11 is the name of the new database):
Chris@0 12
Chris@0 13 mysqladmin -u username -p create databasename
Chris@0 14
Chris@0 15 MySQL will prompt for the 'username' database password and then create the
Chris@0 16 initial database files. Next you must log in and set the access database rights:
Chris@0 17
Chris@0 18 mysql -u username -p
Chris@0 19
Chris@0 20 Again, you will be asked for the 'username' database password. At the MySQL
Chris@0 21 prompt, enter the following command:
Chris@0 22
Chris@0 23 GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER,
Chris@0 24 CREATE TEMPORARY TABLES ON databasename.*
Chris@0 25 TO 'username'@'localhost' IDENTIFIED BY 'password';
Chris@0 26
Chris@0 27 where:
Chris@0 28
Chris@0 29 'databasename' is the name of your database
Chris@0 30 'username' is the username of your MySQL account
Chris@0 31 'localhost' is the web server host where Drupal is installed
Chris@0 32 'password' is the password required for that username
Chris@0 33
Chris@0 34 Note: Unless the database user/host combination for your Drupal installation
Chris@0 35 has all of the privileges listed above (except possibly CREATE TEMPORARY TABLES,
Chris@0 36 which is currently only used by Drupal core automated tests and some
Chris@0 37 contributed modules), you will not be able to install or run Drupal.
Chris@0 38
Chris@0 39 If successful, MySQL will reply with:
Chris@0 40
Chris@0 41 Query OK, 0 rows affected
Chris@0 42
Chris@0 43 If the InnoDB storage engine is available, it will be used for all database
Chris@0 44 tables. InnoDB provides features over MyISAM such as transaction support,
Chris@0 45 row-level locks, and consistent non-locking reads.