Need procedure to setup mysql for Gnucash in window

durgaprasad alaparthi 8765439 at gmail.com
Tue Dec 8 12:58:29 EST 2009


After analyzing the trace file I found that the problem is in my MySQL.
After re-installing MySQL I was able to create database in MySQL. However I
am not able to save any data into MySQL from GNUCash. Following are the
errors observed in Trace file of the GNUCash.

1. "DBI error: 1292: Incorrect datetime value: '19700101000000' for column
'timespec_val' at row 1"
2. "mktime failed to handle daylight saving: tm_hour=0 tm_year=70 tm_min=0
tm_sec=0 tm_isdst=-1 for string=1970-01-01 00:00:00"

I am not able to figure out how this issue can be resolved. Trace files are
attached for reference.

Regards,
Lakshminarayana

On Sat, Dec 5, 2009 at 12:16 AM, Phil Longstaff <plongstaff at rogers.com>wrote:

> It will be in the gnucash.trace file
>
> ------------------------------
> *From:* Colin Law <clanlaw at googlemail.com>
> *To:* durgaprasad alaparthi <8765439 at gmail.com>; gnucash-user at gnucash.org
> *Sent:* Fri, December 4, 2009 11:25:54 AM
> *Subject:* Re: Need procedure to setup mysql for Gnucash in window
>
> 2009/12/4 durgaprasad alaparthi <8765439 at gmail.com>:
> > Hi,
> >
> > I have only one root user in Mysql. I have tried creating database in
> mysql
> > directly from Mysql client. But I am not able to create the database from
> > GNUCash.
> >
>
> Did you create a database in Mysql using localhost and username
> narayana and password narayana?  (on the same pc as you are running
> GC)
>
> If so try creating a db called gnucash and then try GnuCash again.
>
> Does anyone know if there is a way to get more information when GC
> fails to connect or write to the database?
>
> Colin
>
> > Regards,
> > Lakshminarayana
> >
> > On Fri, Dec 4, 2009 at 9:37 PM, durgaprasad alaparthi <8765439 at gmail.com
> >
> > wrote:
> >>
> >> Hi Colin,
> >>
> >> I am using GNUCash 2.3.7. I have not created any database in Mysql. Can
> >> you please let me know whether it is required to create a database?
> >>
> >> Regards,
> >> Lakshminarayana
> >>
> >> On Fri, Dec 4, 2009 at 9:32 PM, Derek Atkins <warlord at mit.edu> wrote:
> >>>
> >>> Hi,
> >>>
> >>> durgaprasad alaparthi <8765439 at gmail.com> writes:
> >>>
> >>> > Hi Colin,
> >>> >
> >>> > Thanks for explaining the procedure. I have followed the steps
> >>> > mentioned in
> >>> > the mail. However GNUCash is giving following error.
> >>> >
> >>> > "The server at URL mysql://localhost:gnucash:narayana:narayana
> >>> > experienced
> >>> > an error or encountered bad or corrupt data."
> >>> >
> >>> > Can you please let me know how this error can be resolved?
> >>> >
> >>> > Note: 1. I have installed Mysql5.1 Newly and did not create any
> >>> > database or
> >>> > tables related to GNUCash. I have just created new Account Hirerachy
> in
> >>> > GNUCash and selected Mysql as the database to save the data.
> >>>
> >>> I believe you need to have created the database (but not any tables).
> >>> Hopefully Phil will correct me if I am wrong.  Do you have your mysql
> >>> user set up correctly?  Also, what version of GnuCash are you using?
> >>>
> >>> > Regards,
> >>> > Lakshminarayana
> >>>
> >>> > Please remember to CC this list on all your replies.
> >>> > You can do this by using Reply-To-List or Reply-All.
> >>>
> >>> -derek
> >>> --
> >>>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> >>>       Member, MIT Student Information Processing Board  (SIPB)
> >>>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
> >>>       warlord at MIT.EDU                        PGP key available
> >>
> >
> >
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
>
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucash.trace.9GZH4U
Type: application/octet-stream
Size: 26557 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20091208/c421feee/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucash.trace.RB0C4U
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20091208/c421feee/attachment-0001.obj>


More information about the gnucash-user mailing list