我想设置我的遥控器。因此,在我想重新启动mysql之后,将“ my.cnf”绑定地址更改为我的本地地址(从PC上)。
root@db93c1c:~# systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Sat 2019-03-02 11:14:35 EST; 13min ago
Process: 11423 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
Process: 12233 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
Mar 02 11:14:35 db93c1c /etc/init.d/mysql[12963]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Mar 02 11:14:35 db93c1c /etc/init.d/mysql[12963]: [61B blob data]
Mar 02 11:14:35 db93c1c /etc/init.d/mysql[12963]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Mar 02 11:14:35 db93c1c /etc/init.d/mysql[12963]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Mar 02 11:14:35 db93c1c /etc/init.d/mysql[12963]:
Mar 02 11:14:35 db93c1c mysql[12233]: Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
Mar 02 11:14:35 db93c1c systemd[1]: mysql.service: control process exited, code=exited status=1
Mar 02 11:14:35 db93c1c systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Mar 02 11:14:35 db93c1c systemd[1]: Unit mysql.service entered failed state.
也许有人可以帮助我...