Пример #1
0
 /**
  * @param \Amp\RamDisk\RamDiskInterface $ram_disk
  * @void
  */
 public function setRamDisk($ram_disk)
 {
     $this->ram_disk = $ram_disk;
     Path::mkdir_p_if_not_exists($ram_disk->getPath());
     $this->mysql_data_path = Path::join($ram_disk->getPath(), 'mysql');
     $this->tmp_path = Path::join($ram_disk->getPath(), 'tmp');
     $this->mysqld_pid_file_path = Path::join($this->tmp_path, 'mysqld.pid');
     $this->mysql_socket_path = Path::join($this->tmp_path, 'mysqld.sock');
 }