The main reason is PDO gives a better API for interacting with various database servers. Maintaining the various native driver extensions was a bit painful, so we decided to use an easier to use API that would allow for less code to be used for the same basic job as before.
-Mark On Oct 19, 11:45 pm, "f.f" <meiyo...@gmail.com> wrote: > Thanks. > > but I use the rent server, I cannot install PDO mysql driver. > > [?] > > why is it cakephp 2.0.0 changed the way of connect the mysql DB. > > 2011/10/20 Andras Kende <and...@kende.com> > > > > > > > > > Hello, > > > Look like you don't have the mysql PDO configured > > > Just checked my phpinfop(): > > > PDOPDO supportenabledPDO driversmysql, pgsql, sqlite, sqlite2 > > pdo_mysqlPDO Driver for MySQLenabledClient API versionmysqlnd 5.0.8-dev - > > 20102224 - $Revision: 308673 $ > > DirectiveLocal ValueMaster Valuepdo_mysql.default_socket/tmp/mysql.sock > > /tmp/mysql.sock > > > Andras Kende > > > On Oct 19, 2011, at 10:23 PM, f.f wrote: > > > I got the same error [Cake is NOT able to connect to the database] > > > and I have check the phpinfo > > > PDO PDO support enabled PDO drivers sqlite, sqlite2 > > PDO_SQLITE PDO Driver for SQLite 3.x enabled PECL Module version(bundled) > > 1.0.1 $Id: pdo_sqlite.c 272374 2008-12-31 > > 11:17:49Z sebastian $ SQLite Library 3.3.7 > > > Hope get some helps. > > > 2011/10/18 zer0_gravity <zr...@hotmail.com> > > >> Hi everyone > >> I just install Cake 2.0.0 and I am having an issue with it. The issue > >> is that cakePHP is not able to connect to the database (Mysql). I > >> check the database config file to make sure that it is configured > >> properly but the strangest thing is that when I installed an older > >> version(1.3.13) there is no problem for cake connecting to the > >> database (Mysql)? What is happening here? > > >> -- > >> Our newest site for the community: CakePHP Video Tutorials > >>http://tv.cakephp.org > >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > >> others with their CakePHP related questions. > > >> To unsubscribe from this group, send email to > >> cake-php+unsubscr...@googlegroups.com For more options, visit this group > >> athttp://groups.google.com/group/cake-php > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php > > <未命名.jpg> > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php > > > > 33A.gif > < 1KViewDownload -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php