docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
330ea482d31e starrocks.docker.scarf.sh/starrocks/allin1-ubuntu "/bin/sh -c ./start_…"20 seconds ago Up 19 seconds 0.0.0.0:8030->8030/tcp, 0.0.0.0:8040->8040/tcp, 0.0.0.0:9030->9030/tcp sleepy_euler
三、连接Starrocks数据库
mysql -P9030 -h127.0.0.1 -uroot --prompt="StarRocks > "
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.1.0 StarRocks version 3.0.0
Copyright (c)2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.
StarRocks >
四、创建账号和赋予用户权限
create user 'user_platform'@'%' IDENTIFIED BY 'nio123456';
ALTER USER user_platform DEFAULT ROLE db_admin, user_admin,cluster_admin;