O arquivo etc/my.cnf
não existe.
Eu recebo este erro:
sudo mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root:
Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Eu encontrei este tópico: link
A primeira resposta diz que devo modificar my.cnf
, mas não está lá. Posso apenas copiar /etc/mysql/my.cnf
para /etc/
?
Quando eu executo: /etc/init.d/mysql start
A saída é:
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
A saída de journalctl -x
é:
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29536]: debug: running subtest /usr/lib/os-probes/mounted/10free
aug 29 12:44:24 michiel-Latitude-E6420 10freedos[29539]: debug: /dev/sda1 is not a FAT partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29540]: debug: running subtest /usr/lib/os-probes/mounted/10qnx
aug 29 12:44:24 michiel-Latitude-E6420 10qnx[29543]: debug: /dev/sda1 is not a QNX4 partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29544]: debug: running subtest /usr/lib/os-probes/mounted/20maco
aug 29 12:44:24 michiel-Latitude-E6420 macosx-prober[29546]: debug: /dev/sda1 is not an HFS+ partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29547]: debug: running subtest /usr/lib/os-probes/mounted/20micr
aug 29 12:44:24 michiel-Latitude-E6420 20microsoft[29550]: debug: /dev/sda1 is a NTFS partition
aug 29 12:44:24 michiel-Latitude-E6420 20microsoft[29564]: result: /dev/sda1:Windows 10 (loader):Windows:chain
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29565]: debug: os found by subtest /usr/lib/os-probes/mounted/20
aug 29 12:44:24 michiel-Latitude-E6420 os-prober[29569]: debug: os detected by /usr/lib/os-probes/50mounted-tests
aug 29 12:44:24 michiel-Latitude-E6420 os-prober[29578]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda2
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29610]: debug: mounted using GRUB ntfs filesystem driver
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29611]: debug: running subtest /usr/lib/os-probes/mounted/05efi
aug 29 12:44:24 michiel-Latitude-E6420 05efi[29614]: debug: Not on UEFI platform
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29615]: debug: running subtest /usr/lib/os-probes/mounted/10free
aug 29 12:44:24 michiel-Latitude-E6420 10freedos[29618]: debug: /dev/sda2 is not a FAT partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29619]: debug: running subtest /usr/lib/os-probes/mounted/10qnx
aug 29 12:44:24 michiel-Latitude-E6420 10qnx[29622]: debug: /dev/sda2 is not a QNX4 partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29623]: debug: running subtest /usr/lib/os-probes/mounted/20maco
aug 29 12:44:24 michiel-Latitude-E6420 macosx-prober[29625]: debug: /dev/sda2 is not an HFS+ partition: exiting
aug 29 12:44:24 michiel-Latitude-E6420 50mounted-tests[29626]: debug: running subtest /usr/lib/os-probes/mounted/20micr
aug 29 12:44:24 michiel-Latitude-E6420 20microsoft[29629]: debug: /dev/sda2 is a NTFS partition
aug 29 12:44:25 michiel-Latitude-E6420 50mounted-tests[29646]: debug: running subtest /usr/lib/os-probes/mounted/30util
aug 29 12:44:25 michiel-Latitude-E6420 30utility[29649]: debug: /dev/sda2 is not a FAT partition: exiting
aug 29 12:44:25 michiel-Latitude-E6420 50mounted-tests[29650]: debug: running subtest /usr/lib/os-probes/mounted/40lsb
lines 1022-1047/1461 77%