mysql start problem (Already usermod)
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 ?
Maybe you forgot about service? You should start mysql service, I think
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?
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.
Hi there, did you fix the problem yet?