automatic mysql database creation is not working for the Zope 2.12 version of...

automatic mysql database creation is not working for the Zope 2.12 version of the buildout. Work around it for the time being

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7f4fd6d3
......@@ -38,7 +38,7 @@ Run the Zope 2.12 buildout:
$ cd ~/erp5.buildout
$ python2.6 -S bootstrap/bootstrap.py -v 1.4.3
$ python2.6 -S bin/buildout -v -c buildout-2.12.cfg
$ bin/buildout -v -c buildout-2.12.cfg
This will download and install the software components needed to run ERP5 on
Zope 2.12 including Zope 2.12 plus dependencies (including
......@@ -54,7 +54,7 @@ Each software component in this buildout might require some system
dependencies, including development libraries and executables.
To query what is required for all components, please run:
$ python2.6 -S bin/buildout install show-requirements
$ bin/buildout install show-requirements
Minimal requirements
--------------------
......@@ -73,11 +73,6 @@ Post-build check
There isn't yet a post-build check for running ERP5 on Zope 2.12.
When it's ready, you can check if all components are working correctly by
typing:
$ make assert
Distribution helpers
--------------------
......@@ -132,7 +127,23 @@ OpenOffice.org document conversion daemon. We need mysql, in particular,
to be running before configuring an actual ERP5 instance, so we'll start
supervisor:
$ var/bin/supervisord # 6
$ bin/supervisord # 6
Also, we need databases in the mysql server that correspond to both the ERP5
instance we're going to create, and the testrunner we will want to run:
$ var/bin/mysql -u root
mysql> create database development_site;
mysql> grant all privileges on development_site.* to 'development_user'@'localhost' identified by 'development_password';
mysql> grant all privileges on development_site.* to 'development_user'@'127.0.0.1' identified by 'development_password';
mysql> create database test212
mysql> grant all privileges on test212.* to 'test'@'localhost';
mysql> grant all privileges on test212.* to 'test'@'127.0.0.1';
(there is automated support for creating databases but it's not currently
working with the Zope 2.12 buildout)
$ var/bin/
Now edit buildout.cfg and add "runUnitTest" (w/o quotes) to 'buildout:parts'.
The "development-instance" part will be pulled in automatically as a
......@@ -142,7 +153,7 @@ $ $EDITOR buildout.cfg # 7
Then run buildout again to finish the configuration
$ python2.6 -S bin/buildout -ov # 8
$ bin/buildout -ov # 8
Now a fully configured development instance will be available in the directory
"var/development-instance", so you can do:
......
......@@ -9,7 +9,7 @@ parts +=
runUnitTest
[configuration]
development_site_bt5_path =
development_site_bt5_path = ${business-templates:paths}
development_site_products =
${software_definition:products-erp5}
......@@ -33,6 +33,9 @@ instance-home = ${configuration:development_site_instancehome}
initialization =
import os
os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
mysql_create_database = false
mysql_database = test212
mysql_user = test
[development-site]
<= zope-instance-template
......@@ -40,7 +43,7 @@ initialization =
mkzopeinstance = ${buildout:directory}/bin/mkzopeinstance
# developer by default want to have updatable Data.fs
force-zodb-update = true
bt5-path =
bt5-path = ${configuration:development_site_bt5_path}
bt5 =
eggs =
Products.ExternalEditor
......@@ -55,7 +58,7 @@ mysql_host = ${configuration:mysql_host}
mysql_port = ${configuration:mysql_port}
# create database
mysql_create_database = true
mysql_create_database = false
# below could be set in configuration
mysql_superuser = root
mysql_superpassword =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment