Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Yohimbe (Pilgrim)
on Apr 15, 2001 at 21:04 UTC ( [id://72675]=note: print w/replies, xml ) Need Help??


in reply to 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

/tmp/myslq.sock will be what the DBI::DBD was compiled with. Had this problem too. I just symlinked /tmp/mysql.sock to the other one.
--
Jay "Yohimbe" Thorne, alpha geek for UserFriendly
  • Comment on Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache

Replies are listed 'Best First'.
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
    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

      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
      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://72675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found