Could use mysql with book type by simple way?

30 views
Skip to first unread message

grid qian

unread,
Sep 11, 2014, 10:00:57 PM9/11/14
to bookty...@googlegroups.com
Hi all, 
I am a new guy to book type.   When I try to use it, I found it only support postgre and sqlite, no any docs for how to use mysql.
I want to know could we use mysql database with book type?
And if yes,  it's easy to do? Or I need to do some customization for it?

Aco Erkalovic

unread,
Sep 12, 2014, 7:41:16 PM9/12/14
to booktype-dev
Hi!

To be honest I did not try it with mysql. There are just couple of places where custom sql is used so that part might not work. Rest of the system should work if you just change database config to use mysql engine (put your own database name, username, ...):

Change settings.py in your Booktype project:

DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql',
                         'NAME': 'DATABASENAME',
                         'USER': 'USERNAME',
                         'PASSWORD': 'PASSWORD',
                         'HOST': 'localhost',
                         'PORT': ''
                        }
            }

Aco

--
You received this message because you are subscribed to the Google Groups "Booktype-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to booktype-dev...@googlegroups.com.
To post to this group, send email to bookty...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/booktype-dev/d7adb86d-dbbd-4fa5-bdd1-c6796ecd89e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Aleksandar Erkalović
Booktype Developer
aleksandar...@sourcefabric.org

mobile: +385-(0)91-642 5220
twitter: @aerkalov | skype: aerkalov

www.sourcefabric.org

Prinzessinnenstrasse 20
10969 Berlin, Germany

Registergericht: Amtsgericht Charlottenburg / HRB 149568B
USt: DE288649893
Geschäftsführerin / Managing Director: Fabienne Riener

grid qian

unread,
Sep 13, 2014, 6:18:20 AM9/13/14
to bookty...@googlegroups.com
Hi Aco,

Thank you very much for your reply.
You said you have not tried mysql with Booktype, that is to say, Booktype has not tests for mysql and just support mysql by common sense? So though we can use mysql, but postgre is better for production environment, right?

Thanks a lot!
Grid Qian  

在 2014年9月13日星期六UTC+8上午7时41分16秒,Aco Erkalovic写道:

grid qian

unread,
Sep 18, 2014, 10:13:22 PM9/18/14
to bookty...@googlegroups.com
Any comments?


在 2014年9月13日星期六UTC+8下午6时18分20秒,grid qian写道:
Reply all
Reply to author
Forward
0 new messages