trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] kbarcode - mysql db connect error using TQMYSQL3 driver

From: Serghei Amelian <serghei@...>
Date: Fri, 30 Mar 2012 03:04:06 +0300
On Friday 30 March 2012 02:59:22 David C. Rankin wrote:
> On 03/29/2012 06:36 PM, Serghei Amelian wrote:
> > On Friday 30 March 2012 02:32:00 David C. Rankin wrote:
> >> On 03/29/2012 06:20 PM, Serghei Amelian wrote:
> >>> If the connection is refused, then the database daemon is not running
> >>> or don't listen on tcp port.
> >>
> >> No it's kbardcode this time -- it's broken. I can type 'mysql -uuser -p'
> >> in konsole and I log right into the database. But running kbarcode, it
> >> fails to connect -- at all.
> >
> > Try mysql -h 127.0.0.1 -uuser -p
>
> localhost works fine, but 127.0.0.1 doesn't:
>
> http://www.3111skyline.com/dl/dt/trinity/ss/kbarcode-mysql.jpg
>
> What gives??

Your mysql is not listening on tcp port. Open /etc/my.conf and 
comment "skip-networking". Also, check if you have "bind-address = 127.0.0.1"

-- 
Serghei