![]() My local MySQL is not runnning, so I assume there is no chance of clashing. ![]() I have basically the same setup like here, except I'm running the cluster in minikube instead of GCP. This allows you to run a web server, game server or a service of your choosing from behind a router. The problem is I try to connect to the instance after port forwarding the MySQL port, following the instructions from here, but get an error: $ kubectl port-forward mysql-824284009-rpbpk 3306ĮRROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)Ĭonnecting to the server from the pod itself works: $ kubectl exec -it mysql-824284009-rpbpk - mysql -u root -p Port forwarding or port mapping allows remote computers to connect to a specific computer or service on a private network. ![]() I have the following deployment which puts up MySQL instance: kind: Deployment ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |