Resolving PDOException fatal error?

Attempting to install MailPoet on a Local install to create a series of tutorial videos. Apparently, MailPoet uses PDO. I get the following fatal error:

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory'...

Found a similar issue on Stack Overflow, which recommends creating a symbolic link to mysql.sock:

But I can’t figure out where mysql.sock is for Local. I’m sure this is an easy fix, but it’s eluding me.

Has anyone else encountered this error? I’d be grateful for any suggestions.

Hey Shawn,

I just tested the following and the MailPoet beta activated for me:

  1. Right-click on the site in Local
  2. Go to “Open Site SSH”
  3. Run ln -s /run/mysqld/mysqld.sock /tmp/mysql.sock
  4. Activate MailPoet 3
1 Like

Perfect! You rock, Clay.

Thanks so much!

1 Like

Glad it works! Just realized the mkdir -p step wasn’t needed so I’ve edited that out.