Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Persisted MySQL data base files are not recognized #137

Open
@sebastianfurth

Description

@sebastianfurth

Hello,

we would like to use wix-embedded-mysql in the following scenario:

  • We have a data base schema "example" with persisted MySQL files (.FRM, .MYD, .MYI) available (provided externally)
  • We would like to start a wix-embedded-mysql instance that is aware of this schema

What we have tried so far is the following:

MysqldConfig config = aMysqldConfig(v5_6_23)
				.withCharset(UTF8)
				.withPort(2215)
				.withTimeout(2, TimeUnit.MINUTES)
				.withServerVariable("max_connect_errors", 666)
				.withTempDir(dataDirectory)
				.build();

EmbeddedMysql embeddedMySQL = anEmbeddedMysql(config).start();

// breaked here to copy manually the data base schema with the persisted files 
// to the "data" subdirectory of the downloaded MySQL distribution 
// (in a respective subdirectory called "example"). 
// (Will be automated when this trial is successful)

embeddedMySQL.addSchema(SchemaConfig.aSchemaConfig("example").build());

Although the schema is generally recognized the embedded MySQL instance un does not recognize any tables of the "injected" data base.

Would be great to get some hints to get this working.

Thank you in advance!

Best regards
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions