Welcome! Log In Create A New Profile

Advanced

NGINX how a virtual host have access to main MariaDB

Posted by lithium2525 
NGINX how a virtual host have access to main MariaDB
July 09, 2016 01:17PM
Hi !

Sorry for my bad english i speak french normally.

i have a VPS on OVH provider.

I have install NGINX, PHP7 and MariaDB on my VPS.

I have access to MariaDB if i use my generic website look like : vpsXXXX.vps.ovh.ca

I configure NGINX to create a Virtual Host for another domain : skwad.me

Everytime when i try to connect on MariaDB database i receive : SQLSTATE[HY000] [1049] Unknown database 'skwadme'

If i run the same code on my generic website : vpsXXXX.vps.ovh.ca it's working fine.

Thank you for your helping !

LiTHiUM2525
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 328
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready