F
flugopa
Den Abschnitt "Setup MySQL" unter http://docs.moodle.org/en/RedHat_Linux_installation
möchte ich gern in ein Skript packen.
Wie löst ihr das?
möchte ich gern in ein Skript packen.
Code:
#
* mysql -u root -p
o (at the password prompt, enter the password from above)
# At the '>' MySQL prompt, enter the following commands (MySQL commands are ended with a ';')
* CREATE DATABASE mymoodle;
o (the name 'mymoodle' is the same name as the database from Step 4)
* GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON mymoodle.*
o (as above, 'mymoodle' is from Step 4)
* TO moodleuser@localhost IDENTIFIED BY 'moodlepass';
o ('moodleuser' and 'moodlepass' are from Step 4)
* flush privileges;
* quit