You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
614 B

#!/bin/sh
##
## drupal-setup
##
# determine MySQL root password
password=`grep "^password" @l_prefix@/etc/mysql/my.pwd |\
sed -e 's;^password[^=]*= *;;' -e 's; *$;;'`
# create the MySQL database for Drupal
@l_prefix@/bin/mysqladmin --user=root --password=$password create drupal
@l_prefix@/bin/mysql --user=root --password=$password mysql <<EOF
GRANT ALL ON drupal.* TO drupal@localhost IDENTIFIED BY 'drupal';
FLUSH PRIVILEGES;
EOF
# create the default Drupal database schema
@l_prefix@/bin/mysql --user=root --password=$password drupal \
<@l_prefix@/share/drupal/database/database.mysql