Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

setup with mysql #21

Open
eleaner opened this issue Nov 19, 2018 · 6 comments
Open

setup with mysql #21

eleaner opened this issue Nov 19, 2018 · 6 comments

Comments

@eleaner
Copy link

eleaner commented Nov 19, 2018

Hi,

What would be the best way to invoke setup with mysql?
Would it be possible to add an option to the setup script or simply second script?

@oliver-la
Copy link
Owner

oliver-la commented Nov 19, 2018

Hi @eleaner

Can you try this? https://manual.seafile.com/deploy_windows/deploy_with_mysql.html
You just need a 2nd mysql container running in the same network as the seafile container. It should hopefully work. The files you need to edit are in the data directory of seafile, you have full access to those.

Edit: Ignore the windows stuff in the link. The required mysql library is already included in my image.

@eleaner
Copy link
Author

eleaner commented Nov 19, 2018

I was rather thinking about an easy way to invoke setup file with mysql instead of the current one.
I already have database running :)

@oliver-la
Copy link
Owner

oliver-la commented Nov 19, 2018

You may implement this yourself if you want and send a PR. It's seems like a good feature.

@NOnooSS
Copy link

NOnooSS commented Nov 30, 2018

Just adding my comment to this conversation.
Since the last version 6.3.7 deployed, my seahub is not starting. I think he need to use mysqldatabase instead of sqlite3.
I will try to deployed a new container for mysql but a easy instant solution could be appreciated inside the same container :)

Regards

@oliver-la
Copy link
Owner

@NOnooSS I think t's unable to start because one of the configuration files is missing the database entry.

I'm only speculating at this point, add this to /path_to_seafile/conf/seafile.conf:

[database]
type=sqlite3
path=/seafile/pro-data/PATH_TO_SQLITE3_DB.db

Please report back if that helps.

If it doesn't, what was the last version that worked for you?

@NOnooSS
Copy link

NOnooSS commented Dec 7, 2018

Hello,

Not helping. Still the same error. I will make a new post for my error. Last version working was 6.2.12.

Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants