Cannot find mysql.sock

前端 未结 14 1301
一向
一向 2020-12-04 11:20

I just had to re-install mysql and I am having a problem starting it up. It cannot find the socket (mysql.sock). The problem is that neither can I. In my Mac OS X 10.4 te

14条回答
  •  广开言路
    2020-12-04 11:29

    My problem was also the mysql.sock-file.

    During the drupal installation process, i had to say which database i want to use but my database wasn't found

    mkdir /var/mysql
    ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    

    the system is searching mysql.sock but it's in the wrong directory

    all you have to do is to link it ;)

    it took me a lot of time to google all important informations but it took me even hours to find out how to adapt , but now i can present the result :D

    ps: if you want to be exactly you have to link your /tmp/mysql.sock-file (if it is located in your system there too) to the directory given by the php.ini (or php.default.ini) where pdo_mysql.default_socket= ...

提交回复
热议问题