Just curious, this has been a pet peeve of mine since I started using linux.
And it's not just about linux it's about programmers. I'm a programmer so I
think I can bellyache about this matter:
Why can't programmers put informational error messages in there code. For
example, this mysql problem, why couldn't they have made the error something
like:
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)
(please check that the mysql daemon is running)
or even better:
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)
(it doesn't appear that the mysql daemon is running)
Why wouldn't you be kind to the user this way. As the programmer you have
to think about the current pyschological state of the user. He is probably
frustrated beyond all hell that the ten other applications he has been
trying to configure (or run) didn't work as intuitively as he would have
thought and has been translating and looking up error messages for 3 days
now. By the time he has to go through this with application #11 he is
probably about to go postal.
I just had this problem here at work. I was running a program written by one
to the developers here. When I went to run it, it just said "Got an error"
and died. I searched through configuration files tried to figure out what
the problem was could not for the life of me figure it out. The problem was
that I had accidently pressed a , instead of a . (damn vi!) when entering in
the ip address.
If he had just said: "Got an error: invalid ip addres 10.1.1,89" it would
have saved me 15 minutes and much adrenaline...
sheesh!
Anybody have similar a position?
(ps: or how about this:
[mjohnson@ripley mjohnson] mysql --errorlookup 2002
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)
Possible causes:
+ mysql daemon not running
+ blah, blah, blah...
+ blah, blah, blah...
+ blah, blah, blah...
Since the internet is getting to be so ubiquitous why not create an online
error database on the internet and have your applications test to see if an
internet connection is available. You could write a standard error lookup
library for all (linux) application with a standard protocol (HTTP possibly)
so that you could just drop it into any of your application whether it was
mysql or xmms.)
(pps: that CPAN mechanism is quite possibly the greatest invention in recent
internet history....!!!!)
> -----Original Message-----
> From: Mark Johnson
> Sent: Thursday, August 16, 2001 1:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [newbie] ERROR 2002: Can't connect to local MySQL server
> thro ugh socket '/ var/lib/mysql/mysql.sock' (111)
>
>
> Duh... sorry brain fried, the daemon wasn't runnning.
>
> FYI, if you are looking through the newbie archives you can
> start the daemon
> by doing:
> /usr/share/mysql/mysql.server start
>
> And check here for more info:
>
> http://www.mysql.com/doc/manual.php?search_query=ERROR+2002&depth=0
> and
> http://www.mysql.com/doc/A/u/Automatic_start.html
>
> cheers!
>
> > -----Original Message-----
> > From: Mark Johnson
> > Sent: Thursday, August 16, 2001 1:12 PM
> > To: LinuxNewbie (E-mail)
> > Subject: [newbie] ERROR 2002: Can't connect to local MySQL server
> > through socket '/ var/lib/mysql/mysql.sock' (111)
> >
> >
> > Can someone help me with this error? It seems like every
> > installation of
> > linux is unique. I've got 4 machines with MySQL and each one
> > has it's own
> > special MySQL problems.... all machines were installed from
> > the Mandrake 8.0
> > cd.... arrrgh!!!!
> >
> > [mjohnson@ripley mjohnson]$ su
> > Password:
> > [root@ripley mjohnson]# mysql -u root mysql -p
> > Enter password:
> > ERROR 2002: Can't connect to local MySQL server through socket
> > '/var/lib/mysql/mysql.sock' (111)> > [root@ripley mjohnson]#
> >
> >
> > ps: I wish you could save your configuration settings to
> > floppy during the
> > initial install and then use the floopy to install setup the
> > other machines
> > without having to do it all by hand again...
> >
> >
> >
>
>
Want to buy your Pack or Services from MandrakeSoft?
Go to http://wwww.mandrakestore.com