[LON-CAPA-cvs] cvs: loncom /debugging_tools modify_config_files.pl rat lonuserstate.pm

raeburn raeburn at source.lon-capa.org
Sat Aug 8 21:35:28 EDT 2026


raeburn		Sun Aug  9 01:35:28 2026 EDT

  Modified files:              
    /loncom/debugging_tools	modify_config_files.pl 
  Log:
  - Support Ubuntu 26 for which MySQL 8.4 is the default, and for which use of
    the old mysql_native_password authentication method is disabled by default.
  
  
Index: loncom/debugging_tools/modify_config_files.pl
diff -u loncom/debugging_tools/modify_config_files.pl:1.29 loncom/debugging_tools/modify_config_files.pl:1.30
--- loncom/debugging_tools/modify_config_files.pl:1.29	Wed Jul 31 03:39:20 2024
+++ loncom/debugging_tools/modify_config_files.pl	Sun Aug  9 01:35:28 2026
@@ -2,7 +2,7 @@
 #
 # The LearningOnline Network
 #
-# $Id: modify_config_files.pl,v 1.29 2024/07/31 03:39:20 raeburn Exp $
+# $Id: modify_config_files.pl,v 1.30 2026/08/09 01:35:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -338,6 +338,13 @@
                  {section =>'mysqld',
                   key     =>'sql_mode=',
                   value   =>'"STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"'});
+            if ($version >= 26) {
+                push(@{$mysqlconf},
+                     {section =>'mysqld',
+                      key     =>'mysql_native_password=',
+                      value   =>'ON',
+                     });
+            }
         }
     }
 } elsif ($dist =~ /^debian(\d+)$/) {




More information about the LON-CAPA-cvs mailing list