Anyway, in the end I had to provide the full path to .my.cnf since mysqld was running as root, and most likely was trying to read /usr/home/root/.my.cnf or some such nonsense. Also, I've type in the .cnf verbose=1 where all I needed was verbose, since it's a standalone switch. I also head some key=value pairs which were not valid switches, like compression, and username(which i knew wasn't an option). Besides that, I also "learned" that you have to prepare before you execute. I am really ashamed that I made this type of mistake (i've done plenty of work with DBI to know how to use it, but *sigh* I regress), but I'm even more *disturbed* that nobody called me on it ( until I really really bugged dkubb). I've considered considering this node for deletion, or just /tell'ing my buddy the NodeReaper to do me a favor, but then I remembered who I was, and figured nobody will hold it against me, and somebody, or at least I, will benefit from this reminder.
update: July 28,2001sh-2.05$ perl test.pl DBI->connect(;mysql_read_default_file=~/.my.cnf;mysql_read_default_gro +up=perlgroup;) failed: Access denied for user: 'crazyinsomniac_r@loca +lhost' (Using password: NO) at test.pl line 36
bash-2.05$ my_print_defaults client --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 bash-2.05$ my_print_defaults perlgroup --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 bash-2.05$ my_print_defaults perlgroup client --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 bash-2.05$ my_print_defaults --config-file=~/.my.cnf client perlgroup --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 bash-2.05$ my_print_defaults --defaults-file=~/.my.cnf client perlgrou +p --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1 --host=localhost --user=crazyinsomniac_r --username=crazyinsomniac_r --password=elpaseo_r --mysql_compression=1 --verbose=1
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"
In reply to (crazyinsomniac: D'OH!)Re: DBI:mysql and mysql_read_default_file trouble
by crazyinsomniac
in thread DBI:mysql and mysql_read_default_file trouble
by crazyinsomniac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |