درود
دوستان موقع راه اندازی mysql به مشکل میخورم.
وقتی این دستور رو میزنم:
sudo systemctl start mysqld
این خروجی رو بهم میده:
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xe" for details.
این هم خروجی journalctl -xe:
لینکاین هم خروجی دستور mysql:
[mehran@mehran-pc ~]$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
و mysqld:
[mehran@mehran-pc ~]$ mysqld
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13 - Permission denied)
2018-05-06T21:09:27.900082Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2018-05-06T21:09:27.900112Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2018-05-06T21:09:28.052242Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-05-06T21:09:28.052258Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2018-05-06T21:09:28.052260Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2018-05-06T21:09:28.052273Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-05-06T21:09:28.052293Z 0 [Note] mysqld (mysqld 5.7.22) starting as process 26440 ...
2018-05-06T21:09:28.054013Z 0 [Warning] Can't create test file /var/lib/mysql/mehran-pc.lower-test
2018-05-06T21:09:28.054023Z 0 [Warning] Can't create test file /var/lib/mysql/mehran-pc.lower-test
2018-05-06T21:09:28.054056Z 0 [ERROR] failed to set datadir to /var/lib/mysql/
2018-05-06T21:09:28.054068Z 0 [ERROR] Aborting
2018-05-06T21:09:28.054079Z 0 [Note] Binlog end
2018-05-06T21:09:28.054117Z 0 [Note] mysqld: Shutdown complete
راه حلی براش سراغ دارین؟