Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Forcing protocol to TCP due to option specification. Please explicitly state intended protocol. #56

Open
rwyarbrough opened this issue Aug 15, 2021 · 2 comments

Comments

@rwyarbrough
Copy link

I just started getting this warning message since upgrading slackware current. I ran bash -x and bash -v and can't find why this is triggered.

@filipnet
Copy link

filipnet commented Oct 26, 2021

The warning message does not appear if you use the value "127.0.0.1" instead of "localhost" inside the configuration file:

# Host name (or IP address) of MySQL server e.g localhost
CONFIG_mysql_dump_host='127.0.0.1'

Read here: https://mariadb.com/kb/en/mysql-command-line-client/

Chapter: Linux/Unix
If hostname is not specified or hostname is localhost, then Unix sockets are used.
In other cases (hostname is given and it's not localhost) then a TCP/IP connection through the port option is used.
Note that localhost is a special value. Using 127.0.0.1 is not the same thing. The latter will connect to the mysqld server through TCP/IP.

@romanstech
Copy link

The warning message does not appear if you use the value "127.0.0.1" instead of "localhost" inside the configuration file:

# Host name (or IP address) of MySQL server e.g localhost
CONFIG_mysql_dump_host='127.0.0.1'

Read here: https://mariadb.com/kb/en/mysql-command-line-client/

Chapter: Linux/Unix If hostname is not specified or hostname is localhost, then Unix sockets are used. In other cases (hostname is given and it's not localhost) then a TCP/IP connection through the port option is used. Note that localhost is a special value. Using 127.0.0.1 is not the same thing. The latter will connect to the mysqld server through TCP/IP.

Thanks. Helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants