linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

mysql start problem (Already usermod)

Open Andersonfeng opened this issue 6 years ago • 4 comments

System: Centos aarch64

I install mysql and execute the command usermod -a -G aid_inet,aid_net-raw mysql the mysql is already add into the group cat /etc/group|grep mysql

aid_inet:x:3003:android,root,mysql
aid_net_raw:x:3004:android,root,mysql
mysql:x:27:

But When I execute mysql It still tells me ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Is there anything I miss ?

Andersonfeng avatar Nov 11 '19 14:11 Andersonfeng

Maybe you forgot about service? You should start mysql service, I think

ElXreno avatar Nov 11 '19 16:11 ElXreno

Maybe you forgot about service? You should start mysql service, I think

Thanks for reply.

When execute like systemctl start xxx the console will show Running in chroot, ignoring request.

Could you teach how to start mysql service in Centos aarch64 chroot?

Andersonfeng avatar Nov 12 '19 04:11 Andersonfeng

Could you teach how to start mysql service in Centos aarch64 chroot?

You can try service command, but I think it will redirect to systemd and get the same error maybe. Or you can try run binary manually with required flags. If I find a solution for this problem, I will write.

ElXreno avatar Nov 12 '19 06:11 ElXreno

Hi there, did you fix the problem yet?

BaboonH avatar Jun 04 '21 01:06 BaboonH