Professional Web Applications Themes

Mac OS X keeps deleting my /tmp files (mysql.sock) - MySQL

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?...

  1. #1

    Default Mac OS X keeps deleting my /tmp files (mysql.sock)

    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?

    DC Guest

  2. #2

    Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock)


    DC wrote: 

    Edit the /etc/my.cnf file

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

    Cheers,
    Mark Addinall.

    addinall Guest

  3. #3

    Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock)

    addinall <org> wrote:
     
    >
    > Edit the /etc/my.cnf file
    >
    > [mysqld]
    > socket=/var/mysql/mysql.sock
    > [client]
    > socket=/var/mysql/mysql.sock[/ref]

    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
    Richard Guest

  4. #4

    Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock)

    ["Followup-To:" header set to comp.sys.mac.system.] [/ref]

    No need to do this.

     

    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.
    D Guest

  5. #5

    Default Re: Mac OS X keeps deleting my /tmp files (mysql.sock)


    Richard Maine wrote: 
    > >
    > > Edit the /etc/my.cnf file
    > >
    > > [mysqld]
    > > socket=/var/mysql/mysql.sock
    > > [client]
    > > socket=/var/mysql/mysql.sock[/ref]
    >
    > After all, files in /tmp are *SUPPOSED* to get deleted on restart. It is
    > called tmp for a reason - it is temporary.[/ref]

    NO ! 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.

     

    addinall Guest

Similar Threads

  1. Where should I put the mysql.sock ?
    By howachen@gmail.com in forum MySQL
    Replies: 2
    Last Post: August 18th, 04:30 PM
  2. Replies: 0
    Last Post: January 29th, 02:03 PM
  3. Replies: 7
    Last Post: June 12th, 07:43 AM
  4. Replies: 1
    Last Post: January 27th, 02:49 AM
  5. Replies: 0
    Last Post: January 24th, 10:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139