blob: 2b4a67be2c642b2cb6263874d0c7b0714166c151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/* default values are localhost, root and empty password
Change the values if you use another configuration */
$driver = new mysqli_driver;
if (!$driver->embedded) {
$host = "localhost";
$user = "root";
$passwd = "";
} else {
$path = dirname(__FILE__);
$host = ":embedded";
$user = $passwd = NULL;
$args = array(
"--datadir=$path",
"--innodb_data_home_dir=$path",
"--innodb_data_file_path=ibdata1:10M:autoextend",
"--log-error=$path/testrun.log"
);
$x = $driver->embedded_server_start(TRUE, $args, NULL);
var_dump($x);
}
?>
|