You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Thufir <ha...@gmail.com> on 2012/08/17 21:27:49 UTC
mysql database
when configuring the database:
root@dur:/home/thufir/apache-james-3.0-beta4#
root@dur:/home/thufir/apache-james-3.0-beta4# nl
conf/james-database.properties
1 # MySQL JDBC database properties
2 database.driverClassName=com.mysql.jdbc.Driver
3 database.url=jdbc:mysql://localhost/james
4 database.username=james
5 database.password=password
6 vendorAdapter.database=MYSQL
7 openjpa.streaming=false
8
root@dur:/home/thufir/apache-james-3.0-beta4#
james 3 will use those credentials to create
http://james.apache.org/server/3/dev-database-schema.html
pardon, what's the name of the database?
thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: mysql database
Posted by Eric Charles <er...@apache.org>.
james-database.properties is the unique place you have to use to define
the JDBC connections parameter. It is used for domain, user, mail
whenever a JPA access is defined for them.
Thx, Eric
On 08/21/2012 10:56 AM, Thufir wrote:
> On 08/21/2012 02:45 AM, Thufir wrote:
>>
>> Should I create the tables manually? Can't see why James isn't writing
>> the user and domain data to the database.
>>
>
>
> in conf/usersrepository.conf, in this section:
>
> <!-- Database backed user repositories -->
> database.driverClassName=com.mysql.jdbc.Driver
> database.url=jdbc:mysql://localhost/james
> database.username=james
> database.password=password
> vendorAdapter.database=MYSQL
> openjpa.streaming=false
> <!-- -->
>
>
> to match conf/james-database.properties settings?
>
>
>
> -Thufir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: mysql database
Posted by Thufir <ha...@gmail.com>.
On 08/21/2012 02:45 AM, Thufir wrote:
>
> Should I create the tables manually? Can't see why James isn't writing
> the user and domain data to the database.
>
in conf/usersrepository.conf, in this section:
<!-- Database backed user repositories -->
database.driverClassName=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost/james
database.username=james
database.password=password
vendorAdapter.database=MYSQL
openjpa.streaming=false
<!-- -->
to match conf/james-database.properties settings?
-Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: mysql database
Posted by Thufir <ha...@gmail.com>.
On 08/18/2012 01:40 AM, Kendrick C. Wilson wrote:
> james1) log into the mysql server
> 2) create a database with the name james3) grant the user james to
all tables in the databases4) start the james server tables will get
created
Ok, I did that and have:
root@dur:/home/thufir/apache-james-3.0-beta4/bin#
root@dur:/home/thufir/apache-james-3.0-beta4/bin# ./james-cli.sh -h
localhost -p 9999 listdomains
dur.bounceme.net
mydomain.tld
127.0.1.1
127.0.1.1
listdomains command executed sucessfully in 1841 ms.
root@dur:/home/thufir/apache-james-3.0-beta4/bin#
root@dur:/home/thufir/apache-james-3.0-beta4/bin# ./james-cli.sh -h
localhost -p 9999 listusers
foo@dur.bounceme.net
myuser@mydomain.tld
thufir@dur.bounceme.net
listusers command executed sucessfully in 273 ms.
root@dur:/home/thufir/apache-james-3.0-beta4/bin#
root@dur:/home/thufir/apache-james-3.0-beta4/bin# cat
../conf/james-database.properties
# MySQL JDBC database properties
database.driverClassName=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost/james
database.username=james
database.password=password
vendorAdapter.database=MYSQL
openjpa.streaming=false
root@dur:/home/thufir/apache-james-3.0-beta4/bin#
however, how do I know where james is storing those users and domains?
They're not in the database, it's empty:
thufir@dur:~$
thufir@dur:~$ mysql -u james -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 135
Server version: 5.5.22-0ubuntu1 (Ubuntu)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
mysql>
mysql> use james;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> quit
Bye
thufir@dur:~$
Should I create the tables manually? Can't see why James isn't writing
the user and domain data to the database.
thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: mysql database
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
james1) log into the mysql server
2) create a database with the name james3) grant the user james to all tables in the databases4) start the james server tables will get created