Code Monkey home page Code Monkey logo

Comments (4)

tomsik68 avatar tomsik68 commented on August 10, 2024 1

Can you access mysql inside the container so I can import a file.sql through Dockerfile?

I think so. You need to perform two modifications to your Dockerfile. First, copy file.sql to the container and then import it via mysql command.

You can easily copy something into the container by adding for example: COPY file.sql /file.sql above the following line:

RUN curl -Lo xampp-linux-installer.run "https://www.apachefriends.org/xampp-files/8.0.0/xampp-linux-x64-8.0.0-0-installer.run?from_af=true" && \

The sql import command should be appended somewhere below the following line (after xampp install):

ln -sf /opt/lampp/lampp /usr/bin/lampp && \

from docker-xampp.

tomsik68 avatar tomsik68 commented on August 10, 2024

Hi, can you try opening the website http://localhost:41062/ to see if the webserver works?

from docker-xampp.

mejerome avatar mejerome commented on August 10, 2024

Can you access mysql inside the container so I can import a file.sql through Dockerfile?

from docker-xampp.

tomsik68 avatar tomsik68 commented on August 10, 2024

I'm closing the issue for now, if there's anything related you'd like to ask, feel free to reopen.

from docker-xampp.

Related Issues (20)

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.