kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never -- /bin/bash
mysql -h mysql-service -uroot -proot_password -e 'SHOW databases;'
OR
mysql -h mysql-service -uroot -proot_password
then use your mysql queries and commands as usual.
kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never -- /bin/bash
mysql -h mysql-service -uroot -proot_password -e 'SHOW databases;'
OR
mysql -h mysql-service -uroot -proot_password
then use your mysql queries and commands as usual.
sounds good, but how to run a mariadb pod with mysql client in it?