checking which mysql dbd is installed on linux


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting checking which mysql dbd is installed on linux
# 1  
Old 04-24-2009
checking which mysql dbd is installed on linux

Hi,

I am new to linux, and i want to know which mysql dbd is installed on linux,

what is the command to check this.

bash-2.05$ uname -a
Linux SURINT01 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown

Thanks

Prakash GR
# 2  
Old 04-24-2009
Code:
mysql -version

# 3  
Old 04-24-2009
Hi neo,

thx for reply i am not looking for mysql version but i am looking mysql dbd(database driver) installed on linux server, how to check what version of DBD is installed.


thanks

Prakash
# 4  
Old 04-24-2009
DBD::mysql - MySQL driver for the Perl5 Database Interface (DBI)

Do you mean the PERL DBD for MySQL?
# 5  
Old 04-25-2009
Hi,

ys right i need to know mysql dbd version installed in that server.


thanks

Prakash GR
# 6  
Old 04-25-2009
Quote:
Originally Posted by prakash.gr
Hi,

ys right i need to know mysql dbd version installed in that server.
Hi,

The DBI->available_drivers() method shows all available drivers in your system. The script is present in Tim Bunce's classic book on Perl DBI.

Code:
$
$ cat connect_test.pl
#!/usr/bin/perl -w
# connect_test.pl
# Chapter 2
# Listing 1

use strict;
use DBI;

print "Available database drivers:\n";
print "*" x 40, "\n";
print join("\n", DBI->available_drivers()), "\n\n";

$
$ perl connect_test.pl
Available database drivers:
****************************************
CSV
DBM
ExampleP
File
Gofer
Oracle
Proxy
Sponge
mysql

$

I have mysql and Oracle drivers in my system, for example.

Hope that helps,
tyler_durden
# 7  
Old 04-26-2009
Code:
perl -MDBD::mysql -e 'print $DBD::mysql::VERSION'

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

See installed drivers in Linux

Hello everyone from Tenerife, Canary Islands. How can i see in Debian or similar operating system the installed drivers or controllers ? Best Regards https://image.ibb.co/kC5C87/winkho2.gif (1 Reply)
Discussion started by: JohnFissburyn
1 Replies

2. UNIX for Advanced & Expert Users

PERL DBD make test on Linux failing

I am installing Oracle DBD to PERL 5.16.3 and during make test , I am running into this error :rm -f blib/arch/auto/DBD/Oracle/Oracle.so LD_RUN_PATH="/opt/oracle/product/11.2.0/racdb11204/lib" gcc -m32 -shared -O2 -L/usr/local/lib -fstack-protector Oracle.o dbdimp.o oci8.o -o... (3 Replies)
Discussion started by: talashil
3 Replies

3. UNIX for Dummies Questions & Answers

How to know if PGP has been installed on the Linux server?

Hi Guys I am working on a project where is looking after the infrastructure and they have delivered RHEL servers. I need to confirm if PGP has been installed on the newly delivered linux servers. Is there any command I can run or directory I can go in to find that out. Any help will be... (5 Replies)
Discussion started by: sachinksl
5 Replies

4. Windows & DOS: Issues & Discussions

Installing MySql DBD in dtrawberry perl

Hi Guys, I am trying to install DBI and DBD-MYSQL for strawberry perl. But i am not able to install. :wall: DBD-MYSQL >> makefile.pl gives error as 'Access denied for user 'ODBC'@'localhost' (using password: NO)'. (7 Replies)
Discussion started by: vasanth.vadalur
7 Replies

5. UNIX for Advanced & Expert Users

command to find when Linux OS is installed?

hey , Anyone knows command to find when Linux OS is installed? Date and time? (2 Replies)
Discussion started by: crackthehit007
2 Replies

6. Shell Programming and Scripting

Checking whether program is installed

I currently use this construction to check whether a certain program is installed: if ; then cd /usr/ports/databases/sqlite3 && make install clean else echo "sqlite already installed" fi Is this method recommended? Is this an effective method, ie sufficiently robust for... (3 Replies)
Discussion started by: figaro
3 Replies

7. UNIX for Dummies Questions & Answers

Checking which databases are installed

I want to check which databases are installed on my FreeBSD installation. This is what I did: pkg_info | grep mysql How do I check all in one go whether also sqlite, postgresql, firebird is installed? Thanks in advance (3 Replies)
Discussion started by: figaro
3 Replies

8. UNIX for Advanced & Expert Users

Error during installing DBD-mysql-4.005

Hi, Iam not able to install DBD-mysql-4.005 into my Sun machine as the error comes - perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config I will use the following settings for compiling and testing: cflags (mysql_config ) = -I/usr/local/mysql/include/mysql ... (2 Replies)
Discussion started by: aditya.ece1985
2 Replies

9. UNIX and Linux Applications

help: error in installing perl module DBD::mysql

Hi, I am trying to install perl module DBD::mysql and don't know how to resolve the following: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.............ok 3/5install_driver(mysql) failed: Can't load... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies

10. Linux

Linux Pre-Installed on Laptop

I performed a search and did not really find what I was looking for so here goes. I am looking to buy a laptop in the next 30 days. I really want a laptop with Linux already installed. I am not picky about the flavor of Linux as long as it is a current release. I also do not need a super,... (1 Reply)
Discussion started by: hiroprotagonist
1 Replies
Login or Register to Ask a Question