企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[阿里云镜像仓库地址](https://dev.aliyun.com/detail.html?spm=5176.1972343.2.36.sjIQu3&repoId=1239) - 配置docker使用阿里云镜像地址 - 获取镜像 ``` docker pull mysql ``` - 启动镜像 ``` docker run --name some-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=zhang -d mysql ``` 参数指定root用户密码 - 验证 进入容器,登录mysql,可以看到 ``` Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.20 MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. ``` - mysql创建用户并授权 ``` create database ibase4j; create user ibase; grant all privileges on ibase4j.* to ibase@'192.168.1.7' identified by 'ibase'; flush privileges; ```