ICode9

精准搜索请尝试: 精确搜索
首页 > 数据库> 文章详细

dbdeployer 快速部署mysql

2022-05-08 18:33:10  阅读:185  来源: 互联网

标签:completion 部署 root -- mysql dbdeployer bash


$ curl -s https://raw.githubusercontent.com/datacharmer/dbdeployer/master/scripts/dbdeployer-install.sh | bash

$ yun install  base_completion

$ dbdeployer init

SANDBOX_BINARY /root/opt/mysql
SANDBOX_HOME   /root/sandboxes

--------------------------------------------------------------------------------
Directory /root/opt/mysql ($SANDBOX_BINARY) already exists
This directory is the destination for expanded tarballs

--------------------------------------------------------------------------------
Directory /root/sandboxes ($SANDBOX_HOME) already exists 
This directory is the destination for deployed sandboxes

--------------------------------------------------------------------------------
# dbdeployer defaults enable-bash-completion --run-it --remote
Error: none of bash completion scripts found ([/etc/bash_completion /usr/local/etc/bash_completion /etc/profile.d/bash_completion.sh])
Usage:
  dbdeployer init [flags]

Flags:
      --dry-run                 Show operations but don't run them
  -h, --help                    help for init
      --skip-all-downloads      Do not download any file (skip both MySQL tarball and shell completion file)
      --skip-shell-completion   Do not download shell completion file
      --skip-tarball-download   Do not download MySQL tarball

Global Flags:
      --config string           configuration file (default "/root/.dbdeployer/config.json")
      --sandbox-binary string   Binary repository (default "/root/opt/mysql")
      --sandbox-home string     Sandbox deployment directory (default "/root/sandboxes")
      --shell-path string       Path to Bash, used for generated scripts (default "/usr/bin/bash")
      --skip-library-check      Skip check for needed libraries (may cause nasty errors)

none of bash completion scripts found ([/etc/bash_completion /usr/local/etc/bash_completion /etc/profile.d/bash_completion.sh])

  

$ dbdeployer defaults update sandbox-binary /home/opt/mysql

$ dbdeployer defaults update sandbox-home /home/sandbox

$ dbdeployer deploy single 8.0.27   --port=8027

Database installed in /home/sandboxes/msb_8_0_27
run 'dbdeployer usage single' for basic instructions'
.. sandbox server started

# cd /home/sandboxes/msb_8_0_27/
# ./use
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.27 MySQL Community Server - GPL

Copyright (c) 2000, 2021, 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.

mysql [localhost:8027] {msandbox} ((none)) >

 

https://github.com/datacharmer/dbdeployer/wiki/installation

标签:completion,部署,root,--,mysql,dbdeployer,bash
来源: https://www.cnblogs.com/bygnee/p/16246341.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有