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

Issue when migrate Kanboard from sqlite3 to mysql (all table doesn't exist) #32

Open
minhhieple97 opened this issue Oct 5, 2022 · 4 comments

Comments

@minhhieple97
Copy link

I'm migrating kanboard from sqlite to mysql, i have created db-mysql.sql and run command souce db-mysql.sql.
But it seem that file db-mysql.sql has not created tables like users, tasks....
The error shows up like this
image

I logged the first 50 lines of file sql dump and output looks like this
image

Has anyone encountered this problem ?

@oliviermaridat
Copy link
Owner

It's been a long time since I checked this script.
On top of my head I have: "Are you sure you database is named kanboard?"

@minhhieple97
Copy link
Author

minhhieple97 commented Oct 6, 2022

thank you for replying, i have already database with kanboard
image

The problem I think is that the .sql dump file is missing the commands used to create tables like user, task....
This is the first 10 line of sql dump file, there is no command to create tables
image

Do you have any suggestion ?

@oliviermaridat
Copy link
Owner

To be honest I do not remember how this script is working, and currently no time to dig into it.

Since you have already well analyzed the issue ( 🎩 ), may I suggest:

  • Verify other tickets to get sure no one already find a solution for that
  • Dig in the beginning of the script to understand why the tables are not created

Good luck!

@PM84
Copy link
Contributor

PM84 commented Nov 9, 2022

Yes your finding is correct.
To fix the Problem.

  1. Create a mysql db
  2. Configure the board to use the mysql db
  3. Just call the Url of the Board and login (User:admin pwd: admin)

=> the tables were created automatically.

  1. Run the migration script

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

No branches or pull requests

3 participants