Good day.
Half a day I can not understand what the problem is. I have mysql-server installed on my server (CentOS6). And the other sulfur is still the same.
An SSH tunnel is raised to a remote server, which on port 3307 "hooks" the remote mysql.
I launch terminal localhost 3306 - it gives an invitation (there are krakozyabry, but there is a connection). I launch the terminal on port 3307 without a tunnel - I get an error, with a tunnel - the same cracker. I guess the tunnel is working correctly.
Neither perl nor the mysql console application can connect to the remote server.
from the mysql --host=localhost --port=3307 --user=dbuser --password=dbpassword dbname console mysql --host=localhost --port=3307 --user=dbuser --password=dbpassword dbname - returns an error
RROR 1045 (28000): Access denied for user 'dbuser'@'localhost' (using password: YES) There is no such mysql user on the local server.
I execute mysql --host=localhost --port=3307 - connects, but to the local server (there are other databases there)
I execute mysql --host=localhost --port=33071 - it connects, but to the local server (there are other databases there)
Similar effect on remote server. Completely ignore the --port parameter.
And from Perl - the same effect (actually it is necessary to work there).
Can anyone come across a similar situation?