To allow older client library to authenticate against newer server.
MySQL and MariaDB have different one line syntaxes for this - the version
implemented here works with both.
if: ${{ inputs.use_docker == 'true' }}
shell: bash
run: |
- mysql -h ${{ inputs.sql_mysql_test_server }} -u root -e "CREATE USER 'radius'@'%' IDENTIFIED BY 'radpass';"
+ mysql -h ${{ inputs.sql_mysql_test_server }} -u root -e "CREATE USER 'radius'@'%' IDENTIFIED WITH mysql_native_password; ALTER USER 'radius'@'%' IDENTIFIED BY 'radpass';"
mysql -h ${{ inputs.sql_mysql_test_server }} -u root -e "GRANT ALL ON radius.* TO 'radius'; FLUSH PRIVILEGES;"
- name: Setup databases
--
-- Create default administrator for RADIUS
--
-CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radpass';
+CREATE USER 'radius'@'localhost' IDENTIFIED WITH mysql_native_password;
+ALTER USER 'radius'@'localhost' IDENTIFIED BY 'radpass';
--
-- The server can read the authorisation data