mysql command line do not accept host param

Bug #523131 reported by Daniele Cruciani
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

mysql -h myhost.com -u root -proot
ERROR 2005 (HY000): Unknown MySQL server host '' (2)

ProblemType: Bug
Architecture: amd64
Date: Wed Feb 17 11:33:18 2010
DistroRelease: Ubuntu 10.04
Logs.var.log.daemon.log:

Logs.var.log.kern.log:

MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: False
NonfreeKernelModules: nvidia
Package: mysql-client 5.1.41-3ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=it_IT.UTF-8
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
SourcePackage: mysql-dfsg-5.1
Uname: Linux 2.6.32-13-generic x86_64

Revision history for this message
Daniele Cruciani (daniele-smartango) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Daniele Cruciani (daniele-smartango) wrote :

in the orginal message, this:
mysql -h myhost.com -u root -proot
ERROR 2005 (HY000): Unknown MySQL server host '' (2)

represent command line, followed by return message, that means: specify anything else than localhost mysql client shell utility give the message:
ERROR 2005 (HY000): Unknown MySQL server host '' (2)

It appear that /usr/bin/mysql do not parse command line.
It is the same specifying --host=... or -hmyhost.com

1 step to reproduce: mysql command with host not equal to localhost

Revision history for this message
Daniele Cruciani (daniele-smartango) wrote :

solved after downgrade to 5.1.41-3ubuntu7

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Fix Committed
status: Fix Committed → Invalid
Revision history for this message
Arjan (iafilius) wrote :

Hello,

running lucid 64 bits (beta) ive got:

me@laptop:~$ mysql -hwww.xs4all.nl
ERROR 2005 (HY000): Unknown MySQL server host '' (2)
me@laptop:~$

the host is just an example, i seem to get it on any host.
i see it _does_ a dns lookup, but refuses to connect.

any idea's or workaround perhaps?

Revision history for this message
Daniele Cruciani (daniele-smartango) wrote :

It seems the one reported by me ...
does
> mysql --version
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1

is 5.1.41? or is 7...? if so downgrade mysql-client package

Revision history for this message
Arjan (iafilius) wrote :

Hello, yes it's exactly that version:

$ mysql --version
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1

however, lucid (beta) seems not to have a lower version, or i might overlook it.

$ apt-cache search mysql-client
mysql-client - MySQL database client (metapackage depending on the latest version)
mysql-client-5.1 - MySQL database client binaries
mysql-client-core-5.1 - MySQL database core client binaries
mysql-cluster-client - MySQL database client (metapackage depending on the latest version)
mysql-cluster-client-5.1 - MySQL database client binaries
torrentflux - web based, feature-rich BitTorrent download manager

Regards,

Revision history for this message
Sune Keller (sune-keller) wrote :

I was able to reproduce this issue in lucid final, whilst down-grading libmysql-client16 from 5.1.41-3ubuntu12.1 to 5.1.41-3ubuntu7 solves the issue for now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.