wtatsuru's blog

id:wtatsuru のメモ

mysql client での localhost

  • 特別扱いされてる。へぇ。

localhost is a synonym for your local host name, and is also the default host to which clients try to connect if you specify no host explicitly.
To avoid this problem on such systems, you can use a --host= option to name the server host explicitly. This will make a TCP/IP connection to the local mysqld server. You can also use TCP/IP by specifying a --host option that uses the actual host name of the local host. In this case, the host name must be specified in a user table row on the server host, even though you are running the client program on the same host as the server.

  • mysqld_multi で複数立てたときなんかに困った