Take the 2-minute tour ×
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. It's 100% free, no registration required.

I installed MariaDB server in linux using tar file(mariadb-5.5.28a-linux-i686.tar.gz) followed by the instructions from this link : https://kb.askmonty.org/en/installing-mariadb-binary-tarballs/.

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? dbasquare.com/2012/04/01/how-to-find-mysql-configuration-file –  FreshPhilOfSO Jan 28 '13 at 10:34
    
Yes. It's only in /home/fedorauser/ path. –  Haseena Jan 28 '13 at 11:13
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.