Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

Elly Post on "[Plugin: WP CSV] Issue: DB Cannot connect via UNIX socket (Fix included in post)"

$
0
0

I have a website which uses a socket to connect to MySQL. The format for this in DB_HOST looks a bit like 'localhost:\tmp\mysql5.sock'. Your plugin currently does not support sockets since it does not use WPDB.

I made a very small update to two files that call mysqli_connect to fix this. Note that this fix does not encompass mysql_connect. I don't know if you have a git repository that I can submit a pull request for, so instead I pasted the modified functions on pastebin. Links below:

http://pastebin.com/umpAnrAg
http://pastebin.com/zCii8fsF

https://wordpress.org/plugins/wp-csv/


Viewing all articles
Browse latest Browse all 5530

Trending Articles