Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support mysql as backend storage driver #2300

Merged
merged 27 commits into from
Sep 28, 2023
Merged

feat: support mysql as backend storage driver #2300

merged 27 commits into from
Sep 28, 2023

Conversation

athurg
Copy link
Contributor

@athurg athurg commented Sep 27, 2023

This PR will add support for MySQL as storage backend driver.

Close #1816, #2269, #163

@athurg athurg added enhancement New feature or request backend labels Sep 27, 2023
@athurg athurg added this to the next release milestone Sep 27, 2023
@athurg athurg self-assigned this Sep 27, 2023
@athurg
Copy link
Contributor Author

athurg commented Sep 27, 2023

This PR will need many users to join to test, maybe you can help us @Zeng1998 @waynexia @selfancy @siddharthalodha @Abraka.

@github-actions
Copy link

github-actions bot commented Sep 27, 2023

Uffizzi Preview deployment-36958 was deleted.

@athurg athurg marked this pull request as ready for review September 28, 2023 08:34
@boojack boojack merged commit c72f221 into main Sep 28, 2023
8 checks passed
@athurg athurg deleted the feat/mysql_driver branch September 28, 2023 14:18
@jeffreymb
Copy link

Is there any documentation on how to use MySQL? Of special interest would be instructions on how to migrate an existing database to MySQL.

@athurg
Copy link
Contributor Author

athurg commented Sep 29, 2023

Is there any documentation on how to use MySQL? Of special interest would be instructions on how to migrate an existing database to MySQL.

@jeffreymb

It's very simple!

You can enable MySQL as backend driver by environments or command flags like below:

Environments

  • MEMOS_DRIVER=mysql
  • MEMOS_DSN=user:pass@tcp(host)/dbname

Command Flags

--driver=mysql --dsn='user:pass@tcp(host)/dbname'

PS: Currently we only support running a fresh Memos, the data migration from SQLite to MySQL is on the road.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mysql/MariaDB
3 participants