Using mysql file import does not grant the root user access:
mysql -uroot < sql/create_mysql.sql
While the execution as root user works as expected:
mysql -uroot -e 'SHOW DATABASES;'
The problem is illustrated in the following repository:
https://travis-ci.org/github/damaex/travis-test
I’m not quite sure if this has anything to do with the different mysql version on arm64, but on amd64 everything works as desired.
Furthermore the output of the mysql command is different.
amd64:
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| test_mysql |
| travis |
+--------------------+
arm64:
Database
information_schema
mysql
performance_schema
sys
test_mysql