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

Add the actual schema mapping to information_schema #22007

Open
taojintianxia opened this issue Nov 8, 2022 · 2 comments
Open

Add the actual schema mapping to information_schema #22007

taojintianxia opened this issue Nov 8, 2022 · 2 comments

Comments

@taojintianxia
Copy link
Contributor

taojintianxia commented Nov 8, 2022

Hi, there

for some IDE or data transmation tool usage, it will read the data of tables in information_schema, and now the inforamtion_schema in ShardingSphere is an empty logical schema. please add a mapping from actual schema information_schema in MySQL.

currently we have following steps to resolve this situation :

use some_other_schema;

drop database information_schema;

create database information_schema;

use information_schema;

add resource ds_0 (
 URL="jdbc:mysql://datasource-1.test:3306/information_schema?serverTimezone=UTC&useSSL=false",
 user=TEST_USER,
 password=PASSWORD,
 PROPERTIES("maximumPoolSize"=50,"idleTimeout"="6000")
);

it will be better if this could be resolved from the ShardingSphere core

@tuichenchuxin
Copy link
Contributor

Recently, shardingSphere have mocked information_schema's tables struct, but there's no data.
I think it's better to collect data for information_schema, and save to zk node -> sys_data.
But there's huge data that's need to be collected and decorated.
Mapping to information_schema will not be a final solution. So whether to do this, we still need to discuss it together.

@taojintianxia
Copy link
Contributor Author

taojintianxia commented Nov 8, 2022

all right, please let me know if there is a solution. thanks

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

No branches or pull requests

2 participants