Hi i have problem with database

mysqli_real_connect(): (HY000/2002): Permission denied

and in ssh E: Sub-process /usr/bin/dpkg returned an error code (1)

mysqli_real_connect(): (HY000/2002): No such file or directory

Hi @sahiti,
Can you explain more about how you got that error?

1 Like

i can’t connect to database i dont know why?

this is problem “mysqli_real_connect(): (HY000/2002): No such file or directory” missing mysql.sock

you are getting some database connection errors, but we don’t know what are you trying to do.
Are you trying to install a program?
Running a program?
What kind of program?
Are you coding a database connection?

What are you actually doing to get this error?


It is not related to Linux.

Here’s some working solutions discussed: