GithubHelp home page GithubHelp logo

madhurajayashanka / docker-with-php-mysql Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 4 KB

Docker is a powerful platform for developing, shipping, and running applications. It can be used to replace traditional tools like XAMPP to create a PHP and MySQL development environment.

Dockerfile 4.19% PHP 95.81%

docker-with-php-mysql's Introduction

docker-with-php-mysql's People

Stargazers

Loganathan Natarajan avatar Pro210 avatar Everton Borges avatar ahmed alammar avatar

Watchers

Madhura Jayashanka avatar

docker-with-php-mysql's Issues

Not starting

Hi,

Thanks for the project & blog.
I gave it a try, but it's not working for me:

First, the problem of The designated data directory /var/lib/mysql/ is unusable:

docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:06.585484Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:18.154152Z 0 [ERROR] [MY-000067] [Server] unknown variable 'default-authentication-plugin=mysql_native_password'.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:18.155621Z 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.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:18.155650Z 0 [ERROR] [MY-010119] [Server] Aborting
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:20.103545Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.
docker-with-php-mysql-main-mysql_db-1 exited with code 0

Then the docker-with-php-mysql-main-mysql_db-1 started again:

docker-with-php-mysql-main-mysql_db-1    | 2024-07-24 21:40:22+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24 21:40:22+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.0.1-1.el9 started.
docker-with-php-mysql-main-mysql_db-1    | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:22.466556Z 0 [System] [MY-015015] [Server] MySQL Server - start.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:22.710837Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 9.0.1) starting as process 1
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:22.739982Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:26.003473Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
docker-with-php-mysql-main-mysql_db-1    | mysqld: Table 'mysql.plugin' doesn't exist
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:26.811345Z 0 [ERROR] [MY-010735] [Server] Could not open the mysql.plugin table. Please perform the MySQL upgrade procedure.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:26.811799Z 0 [Warning] [MY-010441] [Server] Failed to open optimizer cost constant tables
. . .
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.390141Z 0 [Warning] [MY-010015] [Repl] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
. . .
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.464152Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.464772Z 0 [Warning] [MY-010441] [Server] Failed to open optimizer cost constant tables
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.465163Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001146 - Table 'mysql.component' doesn't exist
. . .
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.465507Z 0 [ERROR] [MY-000067] [Server] unknown variable 'default-authentication-plugin=mysql_native_password'.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:27.467747Z 0 [ERROR] [MY-010119] [Server] Aborting
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:28.537700Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 9.0.1)  MySQL Community Server - GPL.
docker-with-php-mysql-main-mysql_db-1    | 2024-07-24T21:40:28.537731Z 0 [System] [MY-015016] [Server] MySQL Server - end.
docker-with-php-mysql-main-mysql_db-1 exited with code 0
. . .

and it seems to be kept repeating the above steps & outputs.

So, in summary, the problems are

  • The designated data directory /var/lib/mysql/ is unusable
  • mysqld: Table 'mysql.plugin' doesn't exist. Could not open the mysql.plugin table. Please perform the MySQL upgrade procedure.
  • [MY-010015] [Repl] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened
  • Failed to open optimizer cost constant tables
  • [Server] unknown variable 'default-authentication-plugin=mysql_native_password'

Please double check.

My system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

$ docker -v
Docker version 24.0.3, build 3713ee1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.