Gitlab & Mysql

Hello guys i 'm trying to use gitlab with my application.
I use MySQL like bdd in my project and i want configure it with the gitlab-ci.yml file.
i read a lot of tutorials, documentacion and some article of this forum but i don’t know how to fix it.

with this config i get this error :

and when i change the line 2 to :
image: node:latest

Gitlab will recognize apt-get command but i will find a problem with mysql host.

If you have some advice with gitlab-ci configuration with mysql

thank for your time and your help !