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

complementary fix, pull docker image as amd64 as well #251

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AmitMY
Copy link
Contributor

@AmitMY AmitMY commented Aug 4, 2022

This is complementary to #248

I have not tested that solution in isolate, and have already pulled the image myself (docker pull mysql:8.0.23 --platform linux/amd64) and so did not encounter an error when pulling.

I will note however, that npx mysql-test start errors when the "Temporary server" is stopped:

mysql:8.0.23 already pulled (use mysql-test start --refresh or ops.refreshImage to refresh)
Starting Docker Container mysql-test
Waiting for mysql-test on port 3306...
Waiting for mysql-test on port 3306...
Error: Connection lost: The server closed the connection.

2022-08-04 12:56:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.

2022-08-04 12:56:43+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

2022-08-04 12:56:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.

2022-08-04 12:56:44+00:00 [Note] [Entrypoint]: Initializing database files

2022-08-04T12:56:44.463778Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.23) initializing of server in progress as process 100

2022-08-04T12:56:44.540074Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2022-08-04T12:56:44.565752Z 1 [ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.

2022-08-04T12:56:44.566475Z 1 [Warning] [MY-012654] [InnoDB] Linux Native AIO disabled.

2022-08-04T12:56:45.348819Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

2022-08-04T12:56:49.065615Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.

2022-08-04 12:56:54+00:00 [Note] [Entrypoint]: Database files initialized

2022-08-04 12:56:54+00:00 [Note] [Entrypoint]: Starting temporary server

mysqld will log errors to /var/lib/mysql/4ec9cc34e37b.err

mysqld is running as pid 156

2022-08-04 12:56:56+00:00 [Note] [Entrypoint]: Temporary server started.

Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.

Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.

Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.

Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.

2022-08-04 12:57:06+00:00 [Note] [Entrypoint]: Creating database test-db

2022-08-04 12:57:06+00:00 [Note] [Entrypoint]: Creating user test-user

2022-08-04 12:57:06+00:00 [Note] [Entrypoint]: Giving user test-user access to schema test-db


2022-08-04 12:57:06+00:00 [Note] [Entrypoint]: Stopping temporary server

2022-08-04 12:57:07+00:00 [Note] [Entrypoint]: Temporary server stopped


2022-08-04 12:57:07+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.


2022-08-04T12:57:08.173666Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1

2022-08-04T12:57:08.263844Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2022-08-04T12:57:08.295218Z 1 [ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.

2022-08-04T12:57:08.296013Z 1 [Warning] [MY-012654] [InnoDB] Linux Native AIO disabled.

2022-08-04T12:57:08.594534Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

2022-08-04T12:57:09.127410Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock

2022-08-04T12:57:09.385057Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.

2022-08-04T12:57:09.386661Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.

2022-08-04T12:57:09.399057Z 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.

2022-08-04T12:57:09.511710Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.

@rollingversions
Copy link

rollingversions bot commented Aug 4, 2022

@databases/with-container (2.1.1 → 2.1.2)

Bug Fixes

  • Also pull the container using --platform linux/amd64

Packages With No Changes

The following packages have no user facing changes, so won't be released:

  • @databases/bigquery
  • @databases/cache
  • @databases/connection-pool
  • @databases/dataloader
  • @databases/escape-identifier
  • @databases/expo
  • @databases/lock
  • @databases/migrations-base
  • @databases/mock-db
  • @databases/mock-db-typed
  • @databases/mysql
  • @databases/mysql-config
  • @databases/mysql-schema-cli
  • @databases/mysql-schema-introspect
  • @databases/mysql-schema-print-types
  • @databases/mysql-test
  • @databases/mysql-typed
  • @databases/pg
  • @databases/pg-bulk
  • @databases/pg-cluster
  • @databases/pg-config
  • @databases/pg-connection-string
  • @databases/pg-create
  • @databases/pg-data-type-id
  • @databases/pg-errors
  • @databases/pg-migrations
  • @databases/pg-schema-cli
  • @databases/pg-schema-introspect
  • @databases/pg-schema-print-types
  • @databases/pg-test
  • @databases/pg-typed
  • @databases/push-to-async-iterable
  • @databases/queue
  • @databases/shared
  • @databases/shared-print-types
  • @databases/split-sql-query
  • @databases/sql
  • @databases/sqlite
  • @databases/sqlite-sync
  • @databases/validate-unicode
  • @databases/website
  • @databases/websql
  • @databases/websql-core

Edit changelogs

Change log has not been updated since latest commit Update Changelog

@ForbesLindesay
Copy link
Owner

Please can you run yarn prettier:write to update the formatting to match the project.

@Scritik
Copy link

Scritik commented May 31, 2023

Any news on that PR? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants