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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to