Everytime I execute mysql this error always pop up (
Errror 2002 (HY000): Can't connect to local MySQL server through socket '/data/data/com.termux/files/usr/tmp/mysqld.sock' (2))
I tried using the recommended solution from a github user by creating my.cnf.d directory and executing mysqld_safe_install and mysqld_safe -u root & but still the problem will repeat repeat once I close the terminal. Any work arounds?
You haven't started mysql server. Execute something like
and only then try mysql.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/data/com.termux/files/usr/tmp/mysqld.sock' (2)
Same problem here please help
@rawagent09 Ensure that server is running before trying to connect ;)
You haven't started mysql server. Execute something like
and only then try
mysql.
In New Session mysqld_safe
Then try in first session mysql
You haven't started mysql server. Execute something like
and only then try
mysql.
but do we need to execute each time
iam on remux
but do we need to execute each time
Before using client, you need to ensure that server is running, right? If mysqld_safe is not running, then you need to start it.
Most helpful comment
You haven't started mysql server. Execute something like
and only then try
mysql.