|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-03-15 16:28 UTC] jfha73 at gmail dot com
Description: ------------ All it gets is this: SQLSTATE[HY000] [2002] No such file or directory MySQL can be accessed via console, just not using PHP with phpMyAdmin or a WebApp that uses MySQL. Any idea what I can do about this? Thanks. Test script: --------------- phpMyAdmin Expected result: ---------------- Connect to mySQL database server Actual result: -------------- Error saying No such file or directory. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
More info: I just created a script to test socket access to /tmp/mysql.sock and it tested successfully, so if PHP can open a socket file in the place where it's supposed to be, why can't it open it using mysqli_connect("localhost", "user", "password", "database"); Thanks.