Yii Framework Forum: Create Another Data Base File - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create Another Data Base File Rate Topic: -----

#1 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 01 January 2013 - 05:51 AM

Hello guys,

I was wondering if I could create another testdrive.db or maybe edit it. It is found on the webapp/protected/data/tesdrive.db, is there anyway I can make it? Thank you.
0

#2 User is offline   Kostas Apazidis (KonApaz) 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,335
  • Joined: 21-February 11
  • Location:Greece

Posted 01 January 2013 - 07:02 AM

Hi Sler

check the bellow link.
http://sourceforge.n.../sqlitebrowser/


if you create another one (with the mentioned software) set another file in prodected/config/main.php file like that

'components'=>array(
        ......
        'db'=>array(
            'connectionString'=>'sqlite:/.../.../protected/data/yourfile.db',
            ...
        ),
    ),

Yii is the best php framework in the world!
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

#3 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 01 January 2013 - 08:31 AM

View PostKonApaz, on 01 January 2013 - 07:02 AM, said:

Hi Sler

check the bellow link.
http://sourceforge.n.../sqlitebrowser/


if you create another one (with the mentioned software) set another file in prodected/config/main.php file like that

'components'=>array(
        ......
        'db'=>array(
            'connectionString'=>'sqlite:/.../.../protected/data/yourfile.db',
            ...
        ),
    ),



It's the one I'm looking for but the application will crash after I execute query :(
0

#4 User is offline   Kostas Apazidis (KonApaz) 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,335
  • Joined: 21-February 11
  • Location:Greece

Posted 01 January 2013 - 09:36 AM

View PostSler, on 01 January 2013 - 08:31 AM, said:

It's the one I'm looking for but the application will crash after I execute query :(


Did you check the query in sqlite editor ?
which is your query / Yii method?
What is the error message?
Also check the protected/runtime/application.log file for error tracking
Yii is the best php framework in the world!
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users