MeekroDB Quick Start Docs FAQ
Download GitHub

Connection Variables

Before you run any SQL commands, you must set the variables below. MeekroDB doesn't actually establish a MySQL connection until you run your first command!

DB::$user = 'my_database_user';
DB::$password = 'my_database_password';
DB::$dbName = 'my_database_name';
DB::$host = '123.111.10.23'; //defaults to localhost if omitted
DB::$port = '12345'; // defaults to 3306 if omitted
DB::$encoding = 'utf8'; // defaults to latin1 if omitted

If you're connecting to MySQL over SSL, you may also need to set these:

DB::$ssl = array('key' => '', 'cert' => '', 'ca_cert' => '', 'ca_path' => '', 'cipher' => '');
DB::$connect_options = array(MYSQLI_OPT_CONNECT_TIMEOUT => 10);