Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-25-2016
03:34 PM
- last edited on
04-21-2026
06:51 AM
by
GrazittiAPI
Hello Everyone,
I am using sqlite(default db) as a db engine for hue in my production environment. I would prefer mysql db for storing all hue events. How can I dump the entire database from sqlite and restore it in my mysql db.
I tried it in my staging environment and I am getting the following error.
[root@ip-172-31-56-223 ~]# mysql -u root -p hue1 < hue1.sql Enter password: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRAGMA foreign_keys=OFF' at line 1
I followed several blogs to fix this problem. But it failed.
Can anyone help me to fix this issue.
Thanks and regards,
Radhakrishnan.R
Created 05-25-2016 03:42 PM
@Radhakrishnan Rk Refer to below article I had posted earlier to migrate Hue from SQLite to MySQL.
Created 05-25-2016 03:42 PM
@Radhakrishnan Rk Refer to below article I had posted earlier to migrate Hue from SQLite to MySQL.
Created 05-25-2016 03:44 PM
Thank you somuch for your rapid response. I try with the information provided by you and get back to you.