Skip to content

Warnings when performing MySQL commands on mariadb:10.6 #23

@DanielKulbe

Description

@DanielKulbe

Steps to reproduce:

  • import database on mariadb 10.6.x in lando

Result:
I received a whole lot of: WARNING: Forcing protocol to TCP due to option specification. Please explicitly state intended protocol.

Cause:
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.

Solution:
Change the Host from localhost to 127.0.0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions