Juyal Ahmed
New Pleskian
I'm working on a CakePHP project which requires the db connected to plesk remote mysql server. If I use below db configuration example
'port' => '3306',
'host' => 'xxx.xxx.xxx.xxx',
'username' => 'usernmae',
'password' => 'pass',
'database' => 'db',
When I run the app getting mysql error connection timeout.
What I have tried so far:
1. Tools & Settings > Database Servers > ALLOW REMOTE CONNECTIONS FROM ANY HOST
2. Databases > Database Users > ALLOW REMOTE CONNECTIONS FROM ANY HOST
3. Tools & Settings > Firewall > I added the following rule : Allow
incoming from all on port 3306/tcp
4. Edited /etc/mysql/my.cnf and changed the bind-address = 0.0.0.0
5. GRANT ALL PRIVILEGES ON *.* TO 'user'@'%'
'port' => '3306',
'host' => 'xxx.xxx.xxx.xxx',
'username' => 'usernmae',
'password' => 'pass',
'database' => 'db',
When I run the app getting mysql error connection timeout.
What I have tried so far:
1. Tools & Settings > Database Servers > ALLOW REMOTE CONNECTIONS FROM ANY HOST
2. Databases > Database Users > ALLOW REMOTE CONNECTIONS FROM ANY HOST
3. Tools & Settings > Firewall > I added the following rule : Allow
incoming from all on port 3306/tcp
4. Edited /etc/mysql/my.cnf and changed the bind-address = 0.0.0.0
5. GRANT ALL PRIVILEGES ON *.* TO 'user'@'%'