Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
39699815
Commit
39699815
authored
Dec 02, 2016
by
HERBERT Ryan
Browse files
dev.org add database import/export doc
parent
95657d6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/dev.org
View file @
39699815
...
...
@@ -219,6 +219,22 @@ The cache is stored for each user and is updated only when a change occurs (mess
Permissions are handled by Web2py's authentication mechanism which is
specialised to Vidjil's characteristics through the =VidjilAuth= class.
** Database
*** Export
mysqldump -u <user> -p <database> --no-create-info > <file>
*** Import
In order to import the data from another you server, you need to ensure
there will be no key collision, or the import will fail.
If the database contains data, the easiest is to drop the database and
create a new empty database.
This will require you to delete the .table file in web2py/applications/vidjil/databases
In order to create the tables you should then load a page from the
webapp, but DO NOT init the database, because this will raise the problem
of colliding primary keys again.
Then run:
mysql -u <user> -p <database> < file
*** VidjilAuth
One VidjilAuth is launched for a given user when a controller is called.
During that call, we cache as much as possible the calls to the DB. For
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment