Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache

by gary kuipers (Beadle)
on Apr 15, 2001 at 21:33 UTC ( [id://72680]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache
in thread Perl Script connecting to Mysql works from command prompt, not from Apache

Dear Jay:

Thanks! I was going nuts trying to figure out where that /tmp/mysql.sock was coming from. One small piece of further help please: How do I create the symlink? I've done this before and my recollection is that it is a simple command 2-4 characters long but that its name is not intuitive. My documentation shows that words with *link* in them tend to be include files for C programs. My RH 6.1 Bible does not mention symlink nor symbolik link nor alias, etc. for about a dozen different words I thought of.

Do you know if the people in charge of DBI/DBD have any plans to make this a parameter? My recollection is that both MySQL and DBI use /tmp/mysql.sock. I had to go throiugh this process before just to het mysql to work from the command prompt. I have no idea where the /var/... socket came from.

Regards,
Gary

  • Comment on Re: Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache
by bjelli (Pilgrim) on Apr 15, 2001 at 21:48 UTC

    The UNIX command you're looking for is ln -s ..... But you have to delete the existing socket first to replace it with a symlink, or use the additional option -f

    <per>-- Brigitte 'I never met a chocolate I didnt like' Jellinek http://www.horus.com/~bjelli/ http://perlwelt.horus.at
Re: Re: Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache
by eejack (Hermit) on Apr 15, 2001 at 21:53 UTC
    Cool beans...:)

    I feel better now.

    the command you are looking for would be ln
    Snipped from the man page..

    NAME ln - make links SYNOPSIS ln [-fs] file [link_name] ln [-fs] file ... [directory] DESCRIPTION The ln utility creates a new directory entry, i.e. a new name in +the filesystem. There are two types of links: hard links and symboli +c links. ....
    EEjack

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://72680]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found