Yii Framework Forum: Mysql - Yii Framework Forum

Jump to content

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

Mysql hubungan framework dg db mysql Rate Topic: -----

#1 User is offline   dewe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 25-October 13

Posted 25 October 2013 - 08:00 PM

agan smua, mohon pencerahan prihal hubungan framework (fm) yg dibuat dengan db (mysql), sepertinya tanpa create db, fm tetap bisa running (di localhost). apa benar sprti itu...! tq atas atensinya. salam :-[ :-[
0

#2 User is offline   J.J 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 126
  • Joined: 01-April 11

Posted 29 October 2013 - 05:05 AM

Yii framework secara default berjalan dengan database sqlite

Coba lihat di codingan /config/main.php
'db'=>array(
    'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),


Kalau memang memerlukan suatu koneksi database, dapat menggunakan database MySQL.
'db'=>array(
    'connectionString' => 'mysql:host=localhost;dbname=test',
    'username' => 'root',
    'password' => '',
    'charset' => 'utf8',
),

0

#3 User is offline   dewe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 25-October 13

Posted 03 November 2013 - 09:32 PM

gan JJ, makasih atas penjelasannya, salam sukses.
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