Bingo. Many thanks.
> Barley wrote:
>
> > If I run the script from a shell prompt as root, it outputs "Yes". If I
run
> > as any other user, it outputs "No." It also gives this error:
> > Warning: mysqli_connect(): Can't connect to local MySQL server through
> > socket '/var/lib/mysql/mysql.sock'
Barley wrote:
If I run the script from a shell prompt as root, it outputs "Yes". If I run
as any other user, it outputs "No." It also gives this error:
Warning: mysqli_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13)
Check permissions on /var/lib/mysql.
Try mysqli_connect("127.0.0.1", "user", "pass");
Then MySQLI will try to use TCP/IP as opposed to a local socket.
Jed
Barley wrote:
I am familiar with MySql, Linux and database programming in general, but I
have not used PHP very much.
On my server, I had an application running just fine under PHP
3 matches
Mail list logo