oliviermaridat / kanboard-sqlite2mysql

Guidelines to migrate a Kanboard SQLite database to a MySQL database
44 stars 11 forks source link

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

Open minhhieple97 opened 2 years ago

minhhieple97 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 ( :tophat: ), may I suggest:

Good luck!

PM84 commented 2 years ago

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