C. T. Sollars

The life and times of some guy

Category: Development

Problems connecting locally to Docker MySql?

Here’s another simple “Gotcha” to look out for. Let’s say you’ve started your local MySql docker container. Now you’re having trouble connecting to it, even though you know you’re forwarding the proper port to your Docker container and your mysql user is set up to accept connections from the host machine. Yet for some reason, you keep getting this error while attempting to log in:

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Look familiar? You’ll notice it’s attempting to connect to MySql via a socket, when what you really want it to do is treat it like a normal remote host. This is where the --protocol flag comes in. Try this command, and likely you’ll be in like Flynn:

$ mysql -u <username> -p<password> -P <port number> --protocol TCP

MySql Gotcha: Job failed to start

I don’t know why, but errors arising from a full storage device always get me. If you can’t log in to MySql or you can’t start the MySql process, try df -h. It’s a quick thing to check and often times you’ll find that the disk is full and MySql can’t do it’s thing.

Basic Git Svn Workflow

You are a Git user. Unfortunately for you, your team’s codebase is stored in a Subversion repository. Much of the deploy code and all of the team’s workflow depends on this Svn based repository. If a conversion to a Git repository ever happens, it could be quite some time away. What do you do? Continue reading

© 2020 C. T. Sollars

Theme by Anders NorenUp ↑