[xwiki-users] How to enable admin rights (was: Re: xwiki mysql plugin problem)

2009-11-27 Thread Ruslan Shevchenko
> You was right, I have no programming rights. But I dont know where to set
> them. Because I dont have no administration button in my xwiki. I import
> XAR
> file with templates etc, and when I log as new user I have any rights to
> do
> something.
>

 You can import xwiki-manager.xar to receive administration UI.

But this theme is specific to you wiki installation (I don't know what
wiki you installed and how) and are xwiki-specific.

So, I will redirect this to xwiki mail list.


> 2009/11/27 Ruslan Shevchenko 
>
>>
>>
>>
>> 1. are user, which do changes, have programming rights ?
>> (add logEnabled to config, to check this)
>> [ see
>>
>> http://redmine.gradsoft.ua/repositories/entry/jungleplatform/platform/web/xwiki-plugins/xwiki-sql-plugin/xwiki-sql-plugin/src/main/java/ua/gradsoft/xwikisql/SqlPluginApi.java
>> ] line 31
>>
>> 2. Otherwise, on debug enabled you must see messages.
>> (see
>>
>> http://redmine.gradsoft.ua/repositories/entry/jungleplatform/platform/web/xwiki-plugins/xwiki-sql-plugin/xwiki-sql-plugin/src/main/java/ua/gradsoft/xwikisql/SqlPlugin.java
>> line 85)
>>
>>
>>
>> > So I made some changes:
>> >
>> > context.xml
>> >
>> > 
>> >
>> >  > type="javax.sql.DataSource"
>> >maxActive="100" maxIdle="30" maxWait="1"
>> >username="root" password="polop"
>> > driverClassName="com.mysql.jdbc.Driver"
>> >url="jdbc:mysql://localhost:3306/hw"/>
>> > WEB-INF/web.xml
>> > 
>> >
>> >
>> > web.xml in xwiki inside 
>> >
>> >   
>> >   DB Connection
>> >   jdbc/hw
>> >   javax.sql.DataSource
>> >   Container
>> >   
>> >
>> >
>> > log4j was added
>> >
>> > in catalina.log there are just informations about start or stop
>> >
>> > I add this line to xwiki.cfg
>> > xwikisql.initialContextPrefix=jdbc
>> >
>> > this code was used in velocity:
>> >
>> > #set($plugin = $xwiki.sql) plugin is $plugin #set($db =
>> > $plugin.getDatabase('hw')) db is $db
>> >
>> > and result is:
>> >
>> > plugin is ua.gradsoft.xwikisql.sqlplugin...@802ed1
>> >
>> > db is $db
>> >
>>
>>
>>
>


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Change database name of virtual wiki

2009-04-15 Thread Ruslan Shevchenko
>
> Thanks,
>
> worked perfect. Just added the xwiki.db.prefix and changed the db names.
>
> What i'm wondering about is, in the hibernate file the db name is xwiki
> but adding the prefex the db name is xwiki_xwiki. I mean it works but
> shouldn't the name in the hibernat file be the same as the db name or is
> the prefex added here too?
>
> Cheers,
> hel.
>

It's why this parameter was named virtual.db.prefix in first version of
this patch ;)

I. e. main db and virtual db-s are handled totally different.

>
> On Tue, Apr 14, 2009 at 16:37, hel-o  wrote:
>>
>> Hi,
>>
>>
>>
>> Changing the database name and the descriptor name
>> (XWikiServerWikiname -> XWikiServerNewwikiname) should work. Note that
>> any existing link targeting this wiki will not work anymore.
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> That means i have to rename the XWikiServerWikiname page?
>
> Yes
>
>>
>> Just another question. Is it possible to use db names like
>> xwiki_wikiname.
>
> Yes using xwiki.db.prefix. See
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigurethenamesofdatabaseschemas28since16M129
>
>>
>> Thanks
>> hel.
>>
>>
>> -
>> 
>> h...@hel.at
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2633495.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
>
> -
> 
> h...@hel.at
>
> --
> View this message in context:
> http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2637481.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users