remote connection to mysql

2005-02-21 Thread Matt
Hi, I'm trying to connect remotely to my database server. It is MySQL 4.1.7 which I install from ports. I created a user with permissions to connect from any remote location. I'm using Perl DBI, like this: use DBI; my $dbh = DBI-connect( 'dbi:mysql:[EMAIL PROTECTED]:3306', 'user',

Re: remote connection to mysql

2005-02-21 Thread ALeine
[EMAIL PROTECTED] wrote: use DBI; my $dbh = DBI-connect( 'dbi:mysql:[EMAIL PROTECTED]:3306', 'user', 'passwd', { RaiseError = 1, AutoCommit = 1 } ); Yet I continue to receive connection errors. Can't connect to the MySQL server on 3306 (10061). I'v verified

Re: remote connection to mysql

2005-02-21 Thread Mike Silbersack
On Mon, 21 Feb 2005, Matt wrote: Hi, I'm trying to connect remotely to my database server. It is MySQL 4.1.7 which I install from ports. I created a user with permissions to connect from any remote location. I'm using Perl DBI, like this: Are you sure that you set up MySQL to accept TCP

Re: Error in my C programming

2005-02-21 Thread Kathy Quinlan
Peter Jeremy wrote: OK it was all to do with the comments it did not like the //comments ARRGG the rest of the errors were bogus as soon as I changed EVERY comment over to the ANSI C /*comments*/ it now works (oh and removed the #pragma directives from a c compiler for the AVR uC I will

Re: Error in my C programming

2005-02-21 Thread ALeine
[EMAIL PROTECTED] wrote: If anyone can recomend online resources for Makefiles I would apreciate it :) How about a source which is already on your disk? :-) zcat /usr/share/doc/psd/12.make/paper.ascii.gz | less You may also want to study the first chapter of the FreeBSD System Programming

Re: vn_fullpath()

2005-02-21 Thread Robert Watson
On Sun, 20 Feb 2005, Igor Shmukler wrote: I was wondering if anyone has figured a way to make vn_fullpath() reliable? It depends a lot on the requirements. There are some nasty edge cases where the process of determining a name for an object can be quite expensive. Here's one of them:

Re: vn_fullpath()

2005-02-21 Thread Deomid Ryabkov
This is an interesting discussion. As far as I understand, a function for performing reverse (object - filename) lookup is being discussed. Having such a function would help me with implementation of my custom changes-tracking filesystem (I once started a discussion of such a thing on this

4M page size

2005-02-21 Thread Petri Helenius
Is there a way currently to utilize 4M page size with FreeBSD for large data set programs (to optimize TLB misses)? Pete ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

Re: 4M page size

2005-02-21 Thread Scott
Petri Helenius wrote: Is there a way currently to utilize 4M page size with FreeBSD for large data set programs (to optimize TLB misses)? Pete FreeBSD/i386 uses 4MB pages to hold the kernel text and data, but there is no way (to my knowledge) to ask the pmap layer for a 4MB page after that

Re[2]: vn_fullpath()

2005-02-21 Thread Igor Shmukler
Robert and David, Thank you for your help. It depends a lot on the requirements. There are some nasty edge cases where the process of determining a name for an object can be quite expensive. Here's one of them: ln /usr/local/etc/apache/httpd.conf /usr/local/etc/apache.old/httpd.conf

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Robert Watson
On Mon, 21 Feb 2005, Igor Shmukler wrote: So the first thing to do is to decied what your requirements are: are you willing to fail in the edge cases like the above? If so, life is a lot easier :-). I guess I am willing to fail :). Perhaps in some distant future, we will look into

Re: remote connection to mysql

2005-02-21 Thread Matt
Mike Silbersack wrote: On Mon, 21 Feb 2005, Matt wrote: Hi, I'm trying to connect remotely to my database server. It is MySQL 4.1.7 which I install from ports. I created a user with permissions to connect from any remote location. I'm using Perl DBI, like this: Are you sure that you set up

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Don Lewis
On 21 Feb, Robert Watson wrote: On Mon, 21 Feb 2005, Igor Shmukler wrote: So the first thing to do is to decied what your requirements are: are you willing to fail in the edge cases like the above? If so, life is a lot easier :-). I guess I am willing to fail :). Perhaps in some

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Matthew Dillon
: tree if elements are missing, either directly, or by asking the file : system using the above call. It's the last step from the file back to a : parent directory that is the hardest. Alternatively, we can back off : dropping the intermediate nodes and see to what extent that hurts vs. : helps.

[PATCH] Dangerous jail()-ioctl interactions.

2005-02-21 Thread Wojciech A. Koszek
Hello hackers, I would like to let you know I've been doing [partial] audit of ioctl() code. There are some places, which may interest you. These are: sys/cam/cam_xpt.c sys/contrib/ipfilter/netinet/ip_fil.c sys/contrib/pf/net/pf_ioctl.c sys/dev/ata/ata-all.c sys/dev/md/md.c sys/geom/geom_ctl.c

Kernel threads libc

2005-02-21 Thread Dmitry Agaphonov
Hello all, I'm forced to implement kernel threads in application not via LinuxThreads library (because it doesn't compile on FreeBSD 4.10 with gcc-3.4.4, too much errors while processing /usr/src code), but using rfork_thread(3). And the main question I currently stuck on is which libc functions