Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  tutorial issue (mysql?)

Guest
Posted: Wed Nov 07, 2007 1:03 pm Reply with quote
Guest
Hi,

I'm trying to give ErlyWeb a spin, and am getting stuck where the db
access code is generated/compiled:

>erlyweb:compile("/Users/atobe/spikes/ErlyTest/music/", [{erlydb_driver, mysql}]).

debug:erlyweb_compile:369: Compiling Erlang file
"music_app_controller"
debug:erlyweb_compile:369: Compiling Erlang file "musician_view"
debug:erlyweb_compile:369: Compiling Erlang file "musician_controller"
debug:erlyweb_compile:369: Compiling Erlang file "musician"
debug:erlyweb_compile:364: Compiling ErlTL file "html_container_view"
debug:erlyweb_compile:369: Compiling Erlang file
"html_container_controller"
debug:erlyweb_compile:104: Generating ErlyDB code for models:
"musician.erl "
mysql_conn:418: fetch <<"show tables">> (id <0.61.0>)
** exited: {error,{no_such_table,musician}} **

I've got yaws-1.72 (from source), erlang @R11B-4_3 (from darwinports),
mysql5 Ver 14.12 Distrib 5.0.37 (again darwinports).

There's no other error output, db connection seems fine. I've manually
created tables in the db and they get picked up just after <<"show
tables">> further suggesting the db connection is ok.

Any ideas?

Kind regards,
Toby


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Wed Nov 07, 2007 3:05 pm Reply with quote
Guest
Are you sure you've granted access to the table for the username that
ErlyDB is using? I forget to do that all the time, and that's the
error I get - no such table.

-Bryan

On Nov 7, 8:02 am, atobe <toby.wat...@gmail.com> wrote:
> Hi,
>
> I'm trying to give ErlyWeb a spin, and am getting stuck where the db
> access code is generated/compiled:
>
> >erlyweb:compile("/Users/atobe/spikes/ErlyTest/music/", [{erlydb_driver, mysql}]).
>
> debug:erlyweb_compile:369: Compiling Erlang file
> "music_app_controller"
> debug:erlyweb_compile:369: Compiling Erlang file "musician_view"
> debug:erlyweb_compile:369: Compiling Erlang file "musician_controller"
> debug:erlyweb_compile:369: Compiling Erlang file "musician"
> debug:erlyweb_compile:364: Compiling ErlTL file "html_container_view"
> debug:erlyweb_compile:369: Compiling Erlang file
> "html_container_controller"
> debug:erlyweb_compile:104: Generating ErlyDB code for models:
> "musician.erl "
> mysql_conn:418: fetch <<"show tables">> (id <0.61.0>)
> ** exited: {error,{no_such_table,musician}} **
>
> I've got yaws-1.72 (from source), erlang @R11B-4_3 (from darwinports),
> mysql5 Ver 14.12 Distrib 5.0.37 (again darwinports).
>
> There's no other error output, db connection seems fine. I've manually
> created tables in the db and they get picked up just after <<"show
> tables">> further suggesting the db connection is ok.
>
> Any ideas?
>
> Kind regards,
> Toby


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum