Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed MariaDB server in linux using tar file(mariadb-5.5.28a-linux-i686.tar.gz) followed by the instructions from this link :

After installation, I tried to connect MariaDB server using client program. Its working fine.

From my application, I tried to connect MariaDB server via ODBC connector. At that time it shows an error like this :

ODBC error: [08S01] (2002) [unixODBC] [MySQL] [ODBC 5.1 Driver] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)!

Both in my.cnf and ODBC configuration file have same socket path : /var/run/mysqld/mysqld.sock

my.cnf file is created in /home/fedorauser/.

I have no idea about why this error comes?

Please anybody help me on this regard...

Thanks in Advance

share|improve this question
Are you sure that's the correct my.cnf? – Phil Jan 28 '13 at 10:34
Yes. It's only in /home/fedorauser/ path. – Haseena Jan 28 '13 at 11:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.