Deploy MySQL on an Arm-based Linux server
Introduction
Install MySQL with Docker on an Arm-based Linux server
Connect to MySQL and verify the database
Next Steps
Deploy MySQL on an Arm-based Linux server
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Run
uname -m and confirm that it prints aarch64. Then run docker info to check that your Docker client can reach Docker Engine. If it can’t, use the linked Docker install guide.Create the
mysql-data Docker volume and mount it at /var/lib/mysql, as shown in the docker run command. Your database files then remain in the volume when you replace the container.Run
docker ps --filter name=mysql-arm to check that the container is running. Check docker logs mysql-arm and wait for MySQL to report that it’s ready for connections. Use the container name that you chose if it differs from mysql-arm.Run
docker exec -it mysql-arm mysql -uroot -p and enter your root password. At the mysql> prompt, run CREATE DATABASE arm_test;. You can confirm its creation with SHOW DATABASES;.Select
arm_test, create the book table, and insert the seven sample rows. Run SELECT * FROM book; and confirm that the query returns seven rows.