ニュース

-d: running the mysql in a background process; -p: publishing or say exposing docker port to the external. connecting to mySql database commands in a bash by docker exec -it mysql bash; login my sql ...
1.The MySQL connection in your code might not have been adjusted to the proxy's address. Please double-check and try stopping the proxy service to see if your code can connect to the database.