Coder Social home page Coder Social logo

javiervidal / mysql-sakila Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sakiladb/mysql

0.0 0.0 0.0 675 KB

MySQL docker image preloaded with the Sakila example database

License: BSD 3-Clause "New" or "Revised" License

PLpgSQL 0.72% Dockerfile 0.01% TSQL 99.27%

mysql-sakila's Introduction

sakiladb/mysql

MySQL docker image preloaded with the Sakila example database. See on Docker Hub.

By default these are created:

  • database: sakila
  • username / password: sakila / p_ssW0rd
docker run -p 3306:3306 -d sakiladb/mysql:latest

Or use a specific version of MySQL (see all available image tags on Docker Hub.)

docker run -p 3306:3306 -d sakiladb/mysql:8

Note that it may take some time for the container to boot up. Eventually the container's docker logs will show:

sakiladb/sqlserver has successfully initialized.

Note that even after this message is logged, it may take another few moments for it to become available (due to a final server restart etc).

Verify that all is well (using the mysql command line tool):

$ mysql --host=127.0.0.1 --port=3306 --user=sakila  --password=p_ssW0rd sakila -e 'SELECT * FROM actor LIMIT 5'
mysql: [Warning] Using a password on the command line interface can be insecure.
+----------+------------+--------------+---------------------+
| actor_id | first_name | last_name    | last_update         |
+----------+------------+--------------+---------------------+
|        1 | PENELOPE   | GUINESS      | 2006-02-15 04:34:33 |
|        2 | NICK       | WAHLBERG     | 2006-02-15 04:34:33 |
|        3 | ED         | CHASE        | 2006-02-15 04:34:33 |
|        4 | JENNIFER   | DAVIS        | 2006-02-15 04:34:33 |
|        5 | JOHNNY     | LOLLOBRIGIDA | 2006-02-15 04:34:33 |
+----------+------------+--------------+---------------------+

mysql-sakila's People

Contributors

neilotoole avatar

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.