```sql
apt-get install mysql-server

create database db;
create table db.test(a Int);

CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';
GRANT ALL ON *.* TO 'myuser'@'%';
FLUSH PRIVILEGES;
```

mysql client shows different error messages in case the wrong password/user VS host:port
```
# mysql -h 127.0.0.1 -u myuser --password=mypass1
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)

mysql -h 127.0.0.1 --port 9999 -u myuser --password=mypass
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:9999' (111)
```

clickhouse shows the same error message

```
select * from mysql('127.0.0.1', 'db', 'test', 'myuser1', 'mypass');
DB::Exception: Exception: Connections to all replicas failed: db@127.0.0.1:3306 as user myuser1. (POCO_EXCEPTION)


select * from mysql('127.0.0.1:9999', 'db', 'test', 'myuser', 'mypass');
DB::Exception: Exception: Connections to all replicas failed: db@127.0.0.1:9999 as user myuser. (POCO_EXCEPTION
```
return entry;
                    }
                }
                catch (const Poco::Exception & e)
                {
                    if (e.displayText().find("mysqlxx::Pool is full") != std::string::npos) 
                    {
                        full_pool = &pool;
                    }
                    app.logger().warning("Connection to " + pool->getDescription() + " failed: " + e.displayText());
                    continue;
                }
                app.logger().warning("Connection to " + pool->getDescription() + " failed.");
            }
        }
        app.logger().error("Connection to all replicas failed " + std::to_string(try_no + 1) + " times");
    }
    if (full_pool)
    {
        app.logger().error("All connections failed, trying to wait on a full pool " + (*full_pool)->getDescription());
        return (*full_pool)->get(wait_timeout);
    }
    DB::WriteBufferFromOwnString message;
    message << "Connections to all replicas failed: ";
    for (auto it = replicas_by_priority.begin(); it != replicas_by_priority.end(); ++it)
        for (auto jt = it->second.begin(); jt != it->second.end(); ++jt)
            message << (it == replicas_by_priority.begin() && jt == it->second.begin() ? "" : ", ") << (*jt)->getDescription();
    throw Poco::Exception(message.str());
}