Coder Social home page Coder Social logo

portable-mysql57's Introduction

portable-mysql57

portable mysql57 via docker

Start

docker compose up --build

fix issues:

  1. Can't start server : Bind on unix socket: Operation not supported
rm -rf data/mysql.sock
rm -rf data/mysql.sock.lock
docker compose up --build --remove-orphans --force-recreate

show mysql log

docker exec -it --user root portable-mysql57 /bin/bash
cat /var/log/mysqld.log

Backup && Restore

Backup

./backup.sh kms16_release

Restore

./restore.sh ./backup/local_nfkj/backup_20230926174324.sql kms16_release

See also

https://gist.github.com/spalladino/6d981f7b33f6e0afe6bb

Inspect

docker exec -it --user root portable-mysql57 /bin/bash
ifconfig
# or
docker inspect portable-mysql57 | grep IPAddres

# 登录容器MySQL
docker exec -it portable-mysql57 mysql -uroot -p123456
show variables like 'character%';
select now();

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.