Configure Path of MySQL Database on EasyPHP DEVSERVER 16.1.1

1.4k views Asked by At

I try to change the default path of DataDir of MySQL installed via EasyPHP DEVSERVER 16.1.1, but every time whene mysql start, it reset the datadir to default value.

Ca u help me ?

1

There are 1 answers

1
Oliver On BEST ANSWER

Change the following lines in the eds-app-actions.php file that is located in the mysql folder you want to use (in eds-binaries/dbserver).

// Update datadir
//$replacement = '${1}' . str_replace('\\', '/', __DIR__) . '/data/$3'; // original
$replacement = '${1}' . 'your/new/path/$3';
// don't change the other lines

// Update innodb_data_home_dir
//$replacement = '${1}' . str_replace('\\', '/', __DIR__) . '/data/$3'; // original
$replacement = '${1}' . 'your/new/path/$3';
// don't change the other lines

// Update innodb_log_group_home_dir
//$replacement = '${1}' . str_replace('\\', '/', __DIR__) . '/data/$3'; // original
$replacement = '${1}' . 'your/new/path/$3';
// don't change the other lines