```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
```
{
    Poco::Util::Application & app = Poco::Util::Application::instance();
    std::lock_guard<std::mutex> locker(mutex);
    
    PoolPtr * full_pool = nullptr;
    for (size_t try_no = 0; try_no < max_tries; ++try_no)
    {
        full_pool = nullptr;
        for (auto & priority_replicas : replicas_by_priority)
        {
            Replicas & replicas = priority_replicas.second;
            for (size_t i = 0, size = replicas.size(); i < size; ++i)
            {
                PoolPtr & pool = replicas[i];
                try
                {
                    Entry entry = shareable ? pool->get(wait_timeout) : pool->tryGet();
                    if (!entry.isNull())
                    {
                        
                        
                        std::rotate(replicas.begin(), replicas.begin() + i + 1, replicas.end());