You are not logged in.

#1 2009-11-24 21:19:38

ancide
Member
Registered: 2009-07-09
Posts: 40

pure-ftpd-mysql > socket error after latest mysql update [SOLVED]

As we know the socket path in mysql have been moved from /tmp/mysqld.sock to /var/run/mysqld/mysqld.sock.

The problem now with pure-ftpd-mysql is that it tries to use /tmp/mysqld.sock even though I have:

MYSQLSocket     /var/run/mysqld/mysqld.sock

Inside of my /etc/pure-ftpd/pure-ftpd-mysql.conf

I guess that either MYSQLSocket is the wrong keyword or that the path is hard coded into pure-ftpd-mysql.

Any ideas how to solve this?


EDIT:

The path for the mysql conf was changed during last update

from

MySQLConfigFile  /etc/pure-ftpd/pure-ftpd-mysql.conf

to

MySQLConfigFile /etc/pure-ftpd/auth/mysql.conf

Last edited by ancide (2009-11-25 10:23:24)

Offline

#2 2009-11-25 04:41:16

maksvlad
Member
Registered: 2009-04-03
Posts: 3

Re: pure-ftpd-mysql > socket error after latest mysql update [SOLVED]

I've edited /etc/rc.d/mysqld file and added "ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock" like this

          echo $(getPID) >/var/run/mysqld/mysqld.pid
          add_daemon mysqld
          ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock
      stat_done

It isn't  correct solution but it works...
On other hand you would try something like this http://bbs.archlinux.org/viewtopic.php?id=85441

Last edited by maksvlad (2009-11-25 04:45:29)

Offline

#3 2009-11-25 09:16:49

ancide
Member
Registered: 2009-07-09
Posts: 40

Re: pure-ftpd-mysql > socket error after latest mysql update [SOLVED]

maksvlad wrote:

I've edited /etc/rc.d/mysqld file and added "ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock" like this

          echo $(getPID) >/var/run/mysqld/mysqld.pid
          add_daemon mysqld
          ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock
      stat_done

It isn't  correct solution but it works...
On other hand you would try something like this http://bbs.archlinux.org/viewtopic.php?id=85441

Thanks for the reply. The problem is that all my other applications are using the new correct path. But I guess I can just make a symlink like you said for now until pure-ftpd-mysql is fixed. smile

Offline

Board footer

Powered by FluxBB