Comments (8)
Heh, it's been a few years, and I'm surprised to learn this is not documented...
You need ant
and ant-contrib
. Hey, those were the tools back in the day...
You then need a running MySQL server.
build.xml
is the ant
build file. I can definitely see some mess here: you'll need to uncomment (or create your own) property name="mysql.socket"
section to identify your local MySQL socket.
You then $ ant all
or $ ant build
.
Perhaps moving this to Docker would be a better idea.
from common_schema.
from common_schema.
@jfneis yes to both. I also added you as a collaborator. Please use the pull request flow and I'll review your PRs.
from common_schema.
hey @shlomi-noach, just sent a PR with smaller items first.
started the required changes to run the project in 5.7 (column user.password doesn't exist anymore), moving the variant scripts to specific folders (mysql56, mysql57) and adjusting build.xml to concatenate the specific files.
refactoring more complex scripts, though, i think an easier approach would be defining a %user-password-placeholder% and replacing it using ant. the downside is that some scripts wouldn't work directly from source, as the placeholder means nothing without ant (and i thing it's a big downside).
what do you think? maybe root folders "mysql56lte" and "mysql57gte" mimicking the root folder structure just with specific scripts?
from common_schema.
i think an easier approach would be defining a %user-password-placeholder% and replacing it using ant.
that's a reasonable approach.
maybe root folders "mysql56lte" and "mysql57gte" mimicking the root folder structure just with specific scripts?
that's also a good approach. It was suggested in the past, we couldn't figure out a nice and clean way to do it without much duplication.
Also, I'm good to get rid of ant
if an easy alternative is at hand.
from common_schema.
from common_schema.
@shlomi-noach thought about a 3rd option that looks cleaner to me: creating a view with all fields from user table but with the same password column alias and replace every script that uses user table with this view.
this way we can have only one file (user view) that handles the difference between 5.6- and 5.7+, simply using a try-and-silence-on-error approach that you suggested in another ticket.
what u think? i don't know performance impacts that a view can have in this scenario, but i don't think it would be critical.
from common_schema.
@jfneis that sounds like a sensible approach. Go for it!
from common_schema.
Related Issues (14)
- foreach error on 10.0.22-MariaDB HOT 18
- Broken characters in 2.3 release
- MySQL 5.7: Unknown column 'password' in 'field list' HOT 14
- Installation issues on Percona Server 5.6 HOT 1
- change urls from `code.google.com` to `github.com` in `doc/html/documentation.html`
- describe/automate updating `gh-pages` after documentation is updated on `master`
- ERROR 1305 (42000): PROCEDURE *.run does not exist HOT 2
- Returns NULL, if the value is empty object/array
- json_to_xml returns NULL if text value begins with - HOT 2
- Escaped double quotes don't work in json_to_xml HOT 3
- Risks page still mentions GPL licensing HOT 1
- ERROR 1171 (42000) at line 195: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead HOT 1
- MySql 8 Support HOT 1
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 common_schema.