Closed
Bug 996228
Opened 12 years ago
Closed 12 years ago
Schematic: use MySQL-python instead of forking mysql subprocesses
Categories
(addons.mozilla.org Graveyard :: Code Quality, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2014-05
People
(Reporter: oremj, Assigned: yboniface)
Details
Right now, schematic runs "mysql -u foo -ppass -h db_host db_name". In MySQL 5.6, -p throws a warning and breaks schematic. We need to use MySQL-python instead of avoid the errors.
Comment 1•12 years ago
|
||
Hi Yohan - would you look at this? Most of our projects use this MySQL-python (https://github.com/mozilla/funfactory/blob/master/funfactory/requirements/compiled.txt#L1). Docs are at http://mysql-python.sourceforge.net/MySQLdb.html . https://github.com/mozilla/schematic/blob/master/schematic#L147 is where the sql is exec'd.
Thanks!
Assignee: nobody → yboniface
Comment 2•12 years ago
|
||
Longer term, we should move to South or Django 1.7, as per bug 905785.
| Assignee | ||
Comment 3•12 years ago
|
||
I don't think this will be a problem, given the situation of schematic (old and unmaintained, plus untested), but just to make it explicit: I'm going to make schematic MySQL specific, even though it's not really the case now. Please stop me if this is not wanted.
| Reporter | ||
Comment 4•12 years ago
|
||
That's a good point. Alternatively, we could change:
if config['PASSWORD']:
s += ' -p{PASSWORD}'
to:
os.environ['MYSQL_PWD'] = config['PASSWORD']
in schematic settings.
Comment 5•12 years ago
|
||
(In reply to Jeremy Orem [:oremj] from comment #4)
> That's a good point. Alternatively, we could change:
> if config['PASSWORD']:
> s += ' -p{PASSWORD}'
> to:
> os.environ['MYSQL_PWD'] = config['PASSWORD']
>
> in schematic settings.
That seems super easy. Let's just do that..
| Reporter | ||
Comment 6•12 years ago
|
||
| Assignee | ||
Comment 7•12 years ago
|
||
@oremj are you pushing to olympia too?
| Reporter | ||
Comment 8•12 years ago
|
||
Sure, I think solitude and webpay need it as well. Anything else?
| Reporter | ||
Comment 9•12 years ago
|
||
| Reporter | ||
Comment 10•12 years ago
|
||
| Reporter | ||
Comment 11•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → 2014-05
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•