You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2023/01/12 17:43:57 UTC

[GitHub] [shardingsphere] windson commented on issue #23533: Can not process invalid storage units, error message is: [Invalid data source `ds_0`, error message is: Communications link failure]

windson commented on issue #23533:
URL: https://github.com/apache/shardingsphere/issues/23533#issuecomment-1380776412

   @RaigorJiang I see the following error when I ran `mysql --host=127.0.0.1 --user=root -p --port=3308 sharding_db`
   `bash: mysql: command not found`
   
   Looks like I need to install mysql shell in the container. 
   Alternatively, what I tried that worked for me was that I changed the `HOST="127.0.0.1",` to `HOST="host.docker.internal",`.
   
   So the distsql command to register storage unit looks like the following, worked for me.
   
   ```
   REGISTER STORAGE UNIT ds_0 (
       HOST="host.docker.internal",
       PORT=3306,
       DB="db0",
       USER="root",
       PASSWORD="blah"
   ),ds_1 (
       HOST="host.docker.internal",
       PORT=3306,
       DB="db1",
       USER="root",
       PASSWORD="blah"
   );
   ```
   Anyhow, thanks for the input.


-- 
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-unsubscribe@shardingsphere.apache.org

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