Small fish is right. You should read the documentation first! And he also provided the proper code for creating your first user.
If you need to add more users have a look here: http://www.h2database.com/html/grammar.html?highlight=add%2Cuser&search=add%20user#create_user On Thu, Jul 19, 2012 at 1:11 PM, small fish <[email protected]> wrote: > You'd better to read the reference doc first.... > When you want to add a user ,just input the user name/password when open > the database at the first time... > or write the code as following. > Connection conn = DriverManager.getConnection("jdbc:h2:~/test", "newuser", > "123"); > > > On Thu, Jul 19, 2012 at 5:49 PM, fatma najjar <[email protected]>wrote: > >> good morning >> im using H2 for the first time >> my question is : how can i add a new user ? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "H2 Database" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/h2-database/-/ff4lHC7g73AJ. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/h2-database?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
