menghaoranss opened a new issue, #34816:
URL: https://github.com/apache/shardingsphere/issues/34816

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy For MySQL
   
   ### Expected behavior
   
   create table successfully
   
   ### Actual behavior
   
   create table failed
   
   ### Reason analyze (If you can)
   
   The default schema was not created after logic database created.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ```
   mysql> create database test_db;
   Query OK, 0 rows affected (0.06 sec)
   
   mysql> use test_db;
   Database changed
   mysql> 
   mysql> 
   mysql> REGISTER STORAGE UNIT ds_0 (
       ->         
URL="jdbc:mysql://127.0.0.1:3306/pipeline_it_3?rewriteBatchedStatements=true&useServerPrepStmts=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&characterEncoding=utf-8&useLocalSessionState=true",
       ->         USER="root",
       ->         PASSWORD="123456",
       ->         PROPERTIES("maximumPoolSize"="50","idleTimeout"="30000")
       ->         );
   Query OK, 0 rows affected (3.46 sec)
   
   mysql> load single table *.*;
   Query OK, 0 rows affected (3.24 sec)
   
   mysql> show tables;
   Empty set (0.01 sec)
   
   mysql> create table test_1(id int not null);
   ERROR 10001 (42S02): Schema 'test_db' does not exist.
   mysql> create table test_1(id int not null);
   ERROR 2013 (HY000): Lost connection to MySQL server during query
   No connection. Trying to reconnect...
   Connection id:    1
   Current database: test_db
   
   ERROR 10001 (42S02): Schema 'test_db' does not exist.
   
   ```
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
notifications-unsubscr...@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to