laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 473 forks source link

Problems with mysql container #644

Closed N1ck95 closed 8 months ago

N1ck95 commented 8 months ago

Sail Version

8.2

Laravel Version

10

PHP Version

8.2

Operating System

macOS

OS Version

13.6

Description

I downloaded the latest laravel sail version using:

curl -s "https://laravel.build/ContactsFinder" | bash

However, when I perform ./vendor/bin/sail up the MySQL container fails to boot and crashed with the following error:

` mysql-1 | [Entrypoint] Initializing database

mysql-1 | 2023-12-26T09:45:42.956721Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

mysql-1 | 2023-12-26T09:45:42.956909Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.32) initializing of server in progress as process 17

mysql-1 | 2023-12-26T09:45:42.960086Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.

mysql-1 | 2023-12-26T09:45:42.960096Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.

mysql-1 | 2023-12-26T09:45:42.960195Z 0 [ERROR] [MY-010119] [Server] Aborting

mysql-1 | 2023-12-26T09:45:42.960365Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL. `

Steps To Reproduce

1) Download laravel sail: curl -s "https://laravel.build/ContactsFinder" | bash 2) bring the system up: ./vendor/bin/sail up

crynobone commented 8 months ago

CleanShot 2023-12-28 at 09 54 57

Unable to replicate the issue.

crynobone commented 8 months ago

Hi there,

Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.