Random Quote
A fear of weapons is a sign of retarded sexual and emotional maturity.
Sigmund Freud -- General Introduction to Psychoanalysis
"I remember the day in January I told Osama, 'If George steals the election, make those rich conservatives pay' " - Glenn Reynolds.

Post details: Seems like the night

01/07/07

Permalink 10:20:35 pm, Categories: Database, Software, 196 words   English (US)

Seems like the night

Funny that in one day, I will be posting on two different errors that do not seem to be covered.

When you are installing unixodbc 2.2 and myODBC 3.51 (mySQL product), be aware that the environment needs to have an ODBCINI value with the path to your ODBC.ini file.

The unixodbc will find the file okay without this but mySQL seems to have left this precious little hint out of their documentation.

If you do not do this, you will get the following error:

[08S01][unixODBC][MySQL][ODBC 3.51 Driver]Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

You do this by running the following command and then editing your /etc/profile to fix it permanently:

EXPORT ODBCINI="/usr/local/etc/odbc.ini"

Then, when you actually create a DSN for mySQL, don't listen to unixodbc when they tell you that the host should be host={name/IP}, myODBC requires this parameter to be server={name/IP}.

Oh, did I mention that this only occurs when you are trying to connect to a mySQL server at a remote location. If you are connecting to localhost, this all works just fine without these changes.

Comments:

Comment from: puhsvkhn [Visitor] · http://ymhzarhc.com
ajcvjamw [URL=http://qameyahb.com]cadgalbk[/URL] hlcvxcpt http://cnvyyqmi.com hpyromtp zqnzlysp
Permalink 03/14/07 @ 23:55

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>

authimage

Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

PLACK.NET

Dying daily to live forever.

Welcome, my attempt to post some personal thoughts on interesting topics.

May 2008
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Syndicate this blog XML

What is RSS?

powered by
b2evolution

14371 visits to this site