|
@@ -1558,7 +1558,7 @@ crearDBMoodle() {
|
|
|
dbFile=$dbDir"/moodle.sql"
|
|
|
echo -en "CREATE DATABASE IF NOT EXISTS $nombreDBMo DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\n" > $dbFile
|
|
|
echo -en "GRANT ALL PRIVILEGES ON $nombreDBMo.* TO '$userDBMo'@'localhost' IDENTIFIED BY '$sqlPasswd';\n" >> $dbFile
|
|
|
- mysql -u root --password=$sqlPasswd < $dbFile
|
|
|
+ mysql -u root --password=$sqlPasswd < $dbFile > /dev/null 2>&1
|
|
|
control=$?
|
|
|
rm -f $dbFile 2>/dev/null
|
|
|
comprobarError $? 503
|