Intento ejecutar mysqld pero aparece el siguiente error en la terminal de 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).
Cuando intento cambiar el permiso a /var/lib/mysql
la ruta, sudo chown -R mysql /var/lib/mysql
aparece el error:
chown: invalid user: ‘mysql’
Estoy intentando aprender Ubuntu/Linux, así que estos son mis primeros pasos en este sistema.
Respuesta1
Intente ejecutar su comando como root (usando sudo
)
sudo systemctl start mysql
Y para confirmar que ha comenzado, intente ejecutar.
sudo systemctl status mysql