Comments (5)
Thanks for trying dbdeployer.
dbdeployer has simplified the command structure of MySQL Sandbox. For this reasons, some of the assumptions that were valid for the old app don't hold anymore.
The easy way of running operations would be (instead of manually unpacking the tarball:)
dbdeployer unpack mysql-5.6.41-macos10.13-x86_64.tar.gz
This command will create $HOME/opt/mysql/5.6.41. You can change the destination directory using --sandbox-binary
.
dbdeployer deploy single --port 5600 -p 'localRoot#123' 5.6.41
(notice that you don't need to indicate "-u root" as the root user will be assigned your given password regardless.)
Please read the chapter named Standard and non-standard basedir names in README.
In short, the directory must be named "x.x.xx" or end with "x.x.xx" to be recognized as containing a valid version. In all other cases, you should supplement the version with --binary-version
.
Your command would work as follows:
dbdeployer deploy single --port 5600 -p 'localRoot#123' \
sandbox-packages/mysql-5.6.41-macos10.13-x86_64 \
--binary-version=5.6.41
But I would not call this one simple if compared to the recommended one.
from dbdeployer.
Thanks for your answer Giuseppe. I'm at a hospital atm. and don't have my equipment with me. I'll check when I'm back at home.
from dbdeployer.
When I add --binary-version
the installation works. The README however says:
When the extracted tarball directory name that you want to use doesn't contain the full version number (such as /home/dbuser/build/path/5.7-extra) you need to provide the version using the option --binary-version.
It doesn't say it must end with the version number. A little glitch that made me scratch my head :-) Also, it might be worth to expect the name to be like what the MySQL downloads use, as this is what people get. On the other hand you expect that unpack
is used normally (though that requires another study of parameters, especially when one doesn't use the default folder setup you expect). Would be nice if by default the current folder is used instead, not opt
.
Anyway, the tool did the job and I'm very thankful for that.
from dbdeployer.
Thanks for your feedback, Mike.
The README does not say exactly "it must end with the version number" but it says "you can differentiate them [the versions] using a prefix," which amounts to the same thing. Since this is not a grammar 101 class, though, I will amend the README to state this fact unequivocally.
I understand the default $HOME/opt/mysql
may not be to everyone's liking. For that, you can customize either on-the fly (--sandbox-binary=/my/preferred/path
) or permanently (dbdeployer defaults update sandbox-binary /my/preferred/path
).
By personal experience I can tell you that using the default folder for the extracted tarball becomes messy quickly, but I put together enough flexibility in the package to allow you to do just that.
Finally, why I don't "expect the name to be like what the MySQL downloads use"?
The only place where this is recognized is during dbdeployer unpack
, where the tool recognizes MySQL pattern and gets the version. For the normal cases, I decided to limit the acceptance to just one version at the end of the directory name to simplify the paradigm and to avoid thorny issues when users name their directories with lots of numbers. The ultimate goal of dbdeployer is to keep operations simple. To this end, you need to embrace its philosophy and go with the flow, sort of like using MySQL Workbench, or mysql config editor, or mysql shell: if you expect them to run like other tools that you are comfortable with, you will be disappointed. :-)
Thanks for using dbdeployer, and I hope you will find the right setup for your needs.
While I can't change the default behavior (on which other users depend) I am open to requests to add configuration options that I may have missed so far.
from dbdeployer.
Many thanks for your explanation - makes totally sense. I just shared what went through my brain when I tried the tool out the first time. Now that everything is clear and working, I'm glad such a tool exists. Especially on macOS it would be quite a pain to set up more than one server manually (which I need for testing MySQL Workbench with them).
from dbdeployer.
Related Issues (20)
- Required flag, yet has default? HOT 2
- MariaDB-10.10 puts dbdeployer's port calculation based on version beyond acceptable 64k port number HOT 2
- switch master-slave? HOT 1
- "./my" prefix script adds "my" in front of the tool name HOT 4
- 1.69.2 isn't in releases, but the dbdeployer-install.sh wants it to be. HOT 2
- how to upgrade dbdeployer <1.36 HOT 2
- Sandbox start script gives an error message if the current working directory path has spaces in it. HOT 3
- show_binlog expects different log files HOT 3
- dbdeployer tests don't run on recent Ubuntu versions in Github actions HOT 1
- unknown option '--initialize-insecure' HOT 2
- dbdeployer 1.72.0 OSX binary missing HOT 1
- Percona 8.0.32 sandbox - can't convert 'msb_ps8_0_32' into port number HOT 2
- MySQL 8.0.33 Added HOT 2
- Add support for .tar archives as downloaded from dev.mysql.com HOT 16
- update does not update config file HOT 3
- Tests are failing after merge HOT 6
- Unable to upgrade sandbox MariaDB 10.3.22 to 10.11.X via dbdeployer HOT 1
- Error installing MySQL Shell (>= 8.0.30 (included 8.1.1)) HOT 1
- DBdeployer Mysql is not writting the error or slow logs HOT 3
- New maintainer wanted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbdeployer.