• Marek Kulik's avatar
    MDEV-26474: Fix mysql_setpermission hostname logic · bd3eb528
    Marek Kulik authored
    Changes:
    - Don't include port in connection parameters with 'localhost' hostname
    
    More info:
    
    The hostname, if not specified or specified as '' or 'localhost', will default
    to a MySQL server running on the local machine using the default for the UNIX socket.
    To connect to a MySQL server on the local machine via TCP, you must specify the
    loopback IP address (127.0.0.1) as the host.
    
    To comply with what the perl module expects, we omit the port for a
    host=localhost connection.
    
    Reported issue: https://bugzilla.redhat.com/show_bug.cgi?id=1976224
    bd3eb528
mysql_setpermission.sh 17.6 KB