[LON-CAPA-cvs] cvs: doc /install/linux install.pl

raeburn raeburn at source.lon-capa.org
Sun Mar 28 17:51:22 EDT 2021


raeburn		Sun Mar 28 21:51:22 2021 EDT

  Modified files:              
    /doc/install/linux	install.pl 
  Log:
  - Add Flush privileges call between INSERT call and ALTER USER call to eliminate
    error seen with MySQL 8.
  
  
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.75 doc/install/linux/install.pl:1.76
--- doc/install/linux/install.pl:1.75	Fri Mar 26 18:38:03 2021
+++ doc/install/linux/install.pl	Sun Mar 28 21:51:22 2021
@@ -78,7 +78,7 @@
           &mt('Stopping execution.')."\n";
     exit;
 } else {
-    print LOG '$Id: install.pl,v 1.75 2021/03/26 18:38:03 raeburn Exp $'."\n";
+    print LOG '$Id: install.pl,v 1.76 2021/03/28 21:51:22 raeburn Exp $'."\n";
 }
 
 #
@@ -2577,7 +2577,8 @@
     if ($usescreate) {
         @mysql_commands = ("CREATE USER 'www'\@'localhost' IDENTIFIED BY 'localhostkey'");
     } elsif ($usesauth) {
-        @mysql_commands = ("INSERT user (Host, User, ssl_cipher, x509_issuer, x509_subject, authentication_string) VALUES('localhost','www','','','','')");
+        @mysql_commands = ("INSERT user (Host, User, ssl_cipher, x509_issuer, x509_subject, authentication_string) VALUES('localhost','www','','','','')",
+                           "FLUSH PRIVILEGES");
         if ($is_mariadb) {
             push(@mysql_commands,"ALTER USER 'www'\@'localhost' IDENTIFIED BY 'localhostkey'");
         } else {




More information about the LON-CAPA-cvs mailing list