Go Back   Forum Care Forums > Development Reference Area > MySQL Discussion

Reply
 
LinkBack Thread Tools Display Modes
Mac OS X keeps deleting my /tmp files (mysql.sock)
Old
  (#1)
DC
Guest
 
Posts: n/a
Default Mac OS X keeps deleting my /tmp files (mysql.sock) - 06-04-2007, 07:48 AM

So I've been trying to install MySQL 5 on Mac OS X 10.4.8 (using the
5.0 x686 installer) and everytime I exit out of the shell (or it might
be after I restart my computer), mysql.sock from /tmp keeps getting
deleted, which requires reinstalling mysql...How do I prevent this from
happening?

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Mac OS X keeps deleting my /tmp files (mysql.sock)
Old
  (#2)
addinall
Guest
 
Posts: n/a
Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock) - 06-04-2007, 07:48 AM


DC wrote:
> So I've been trying to install MySQL 5 on Mac OS X 10.4.8 (using the
> 5.0 x686 installer) and everytime I exit out of the shell (or it might
> be after I restart my computer), mysql.sock from /tmp keeps getting
> deleted, which requires reinstalling mysql...How do I prevent this from
> happening?


Edit the /etc/my.cnf file

[mysqld]
socket=/var/mysql/mysql.sock
[client]
socket=/var/mysql/mysql.sock

Cheers,
Mark Addinall.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Mac OS X keeps deleting my /tmp files (mysql.sock)
Old
  (#3)
Richard Maine
Guest
 
Posts: n/a
Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock) - 06-04-2007, 07:48 AM

addinall <EMAIL REMOVED> wrote:

> DC wrote:
> > So I've been trying to install MySQL 5 on Mac OS X 10.4.8 (using the
> > 5.0 x686 installer) and everytime I exit out of the shell (or it might
> > be after I restart my computer), mysql.sock from /tmp keeps getting
> > deleted, which requires reinstalling mysql...How do I prevent this from
> > happening?

>
> Edit the /etc/my.cnf file
>
> [mysqld]
> socket=/var/mysql/mysql.sock
> [client]
> socket=/var/mysql/mysql.sock


After all, files in /tmp are *SUPPOSED* to get deleted on restart. It is
called tmp for a reason - it is temporary. There have been operating
systems where /tmp wasn't even on physical disk, but was in ram.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Mac OS X keeps deleting my /tmp files (mysql.sock)
Old
  (#4)
D P Schreber
Guest
 
Posts: n/a
Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock) - 06-04-2007, 07:48 AM

["Followup-To:" header set to comp.sys.mac.system.]
>> Edit the /etc/my.cnf file


No need to do this.


> After all, files in /tmp are *SUPPOSED* to get deleted on restart.


The OP's premiss is wrong: it's perfectly normal for mysql.sock to go
away, like any other unix socket. Its disappearance on reboot causes no
problems and for sure doesn't require reinstalling MySQL.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Mac OS X keeps deleting my /tmp files (mysql.sock)
Old
  (#5)
addinall
Guest
 
Posts: n/a
Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock) - 06-04-2007, 07:48 AM


Richard Maine wrote:
> addinall <EMAIL REMOVED> wrote:
>
> > DC wrote:
> > > So I've been trying to install MySQL 5 on Mac OS X 10.4.8 (using the
> > > 5.0 x686 installer) and everytime I exit out of the shell (or it might
> > > be after I restart my computer), mysql.sock from /tmp keeps getting
> > > deleted, which requires reinstalling mysql...How do I prevent this from
> > > happening?

> >
> > Edit the /etc/my.cnf file
> >
> > [mysqld]
> > socket=/var/mysql/mysql.sock
> > [client]
> > socket=/var/mysql/mysql.sock

>
> After all, files in /tmp are *SUPPOSED* to get deleted on restart. It is
> called tmp for a reason - it is temporary.


NO SHIT! Hell, I must have missed that in the last 25 years
or so.

MySQL on BSD does some strange things, the socket is
one of them.

Mark Addinall.


> There have been operating
> systems where /tmp wasn't even on physical disk, but was in ram.
>
> --
> Richard Maine | Good judgement comes from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle | -- Mark Twain


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top