0

I have a db on a Linux machine and my project is on Windows

I want to connect to the local linux db but I'm still getting this error Database connection "Mysql" is missing, or could not be created.

my database.php

public $default = array(
    'datasource' => 'Database/Mysql',
    'persistent' => false,
    'host' => 'xx.xx.xx.xx',
    'login' => 'xxxxx',
    'password' => 'xxxxx',
    'database' => 'xxxxx',
    'prefix' => '',
    'encoding' => 'utf8',
);

I've tried adding 'unix_socket' => '/tmp/mysql.sock', same error message.

How can I connect to my remote DB?

Nemeth
  • 166
  • 1
  • 1
  • 11

0 Answers0