By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

DBD::mysql installation error.

P: 1
HI
when i am trying to execute command perl makefile.pl after extracting DBD-mysql-4.019.tar.gaz ,i am getting error


Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'Varun' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'abc'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

please help.
Jul 5 '11 #1
Share this Question
Share on Google+
1 Reply


numberwhun
Expert Mod 2.5K+
P: 3,503
Why are you trying to install this by hand? It would be a lot simpler if you did it through the CPAN prompt instead. When you initially setup CPAN make sure you set it to "follow" that way it auto installs dependencies as it needs them.

Its cool to know how to build a package by hand, but believe me, save yourself the headache and make more time for your coding. Use CPAN.

Regards,

Jeff
Jul 13 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.