Tento executar o mysqld, mas recebo o seguinte erro no terminal Ubuntu.
2022-08-30T18:48:34.596763Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-08-30T18:48:34.596796Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30-0ubuntu0.22.04.1) starting as process 2510
2022-08-30T18:48:34.597987Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-08-30T18:48:34.597992Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-08-30T18:48:34.602565Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-08-30T18:48:34.602646Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30-0ubuntu0.22.04.1) (Ubuntu).
Quando tento alterar a permissão para /var/lib/mysql
path by, sudo chown -R mysql /var/lib/mysql
recebo um erro:
chown: invalid user: ‘mysql’
Estou tentando aprender Ubuntu/Linux então estes são meus primeiros passos neste sistema.
Responder1
Tente executar seu comando como root (usando sudo
)
sudo systemctl start mysql
E para confirmar que começou, tente executar
sudo systemctl status mysql