4/38

Compatible

RedBean PHP has fluid and frozen mode support for:

MySQL 5 and higher
SQLite 3.6.19 and higher
PostgreSQL 8 and higher

To connect to a databases use:


    R
::setup('mysql:host=localhost;dbname=mydatabase','user','password'); //mysql

    R
::setup('pgsql:host=localhost;dbname=mydatabase','user','password'); //postgresql

    R
::setup('sqlite:/tmp/dbfile.txt','user','password'); //sqlite

To disconnect use: R::close(); (since 3.1)



User contributed notes. Please use the comment section to provide tips, notes and examples. To ask for support or to provide feedback use the forum. For bug reports use Github Issue Tracker.

Site comments powered by Disqus

page generated in 0.010265111923218 sec.