Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql Not Found in Docker Image #986

Open
3 tasks done
Morpheus636 opened this issue Feb 9, 2025 · 1 comment
Open
3 tasks done

mysql Not Found in Docker Image #986

Morpheus636 opened this issue Feb 9, 2025 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@Morpheus636
Copy link

Morpheus636 commented Feb 9, 2025

Current Behavior

When running the docker image with the DB_CONNECTION set to mysql, laravel fails to connect to the database to apply migrations because no mysql client is installed in the image.

Expected Behavior

The panel should connect using an installed mysql client to apply the schema.

Steps to Reproduce

  1. Run the panel docker image with the environment variable DB_CONNECTION: mysql set and the database connection settings pointing to an empty database.
  2. See docker logs for the container.

Panel Version

v1.0.0-beta17

Wings Version

N/A

Games and/or Eggs Affected

N/A

Docker Image

N/A

Error Logs

INFO  Loading stored database schemas.  

  database/schema/mysql-schema.sql ................................... 1s FAIL

In Process.php line 269:
                                                                               
  The command "mysql  --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_L  
  OAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}  
  " --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.  
                                                                               
  Exit Code: 127(Command not found)                                            
                                                                               
  Working directory: /var/www/html                                             
                                                                               
  Output:                                                                      
  ================                                                             
                                                                               
                                                                               
  Error Output:                                                                
  ================                                                             
  sh: mysql: not found

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
@Morpheus636
Copy link
Author

Alternative solution seems to be removing database/schema/mysql-schema.sql. The same error message gets printed but it goes on to apply the migrations instead of crashing out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants