PHP connect to Vertica in VirtualBox - php

I have problem with connection to Vertica database from PHP code.
The situation is this:
I'm working on Windows 7,
I installed ODBC driver for Vertica, set it up and test connection was successful,
Vertica is running on virtual machine in VirtualBox, I can connect to it via ssh dbadmin#192.168.56.102.
I have tried all possibilities I've found but nothing worked. PDO cannot find server, odbc_connect is saying no driver exists.
Has anybody have idea please?
Thanks you very much.
J.

Related

Connection doesn't established when connect to sql server via php

I have already Docker and SqlServer which is works normally. Now i want to connect to sql server with php. it gives me could not find driver error. I use php 8 on centos 7. How can i fix it?

Remote MS ACCESS connection with PHP ODBC on CentOS [duplicate]

Does anyone know if it's possible to connect and query an MS Access database from a Linux Server using PHP?
If it is possible I'm thinking install ODBC driver on the Linux server, but will it work to connect to Access is the question. I've read it's possible with MSSQL.
My knowledge is very limited when it comes to any Windows related DBs so any advice much appreciated.
Yes, it's possible. I've done it using ODBTP, which took advantage of the ODBC driver on the (Windows) machine that hosted the Access database file.
It's also theoretically possible to use an ODBC driver on the Linux server to read an Access database on a Windows networking share if the Linux box can "see" it. However, I've never had very good luck with Access ODBC on Linux so I wouldn't recommend spending too much time trying to get it working.

Connect to remote MS Access database from Linux Server using PHP

Does anyone know if it's possible to connect and query an MS Access database from a Linux Server using PHP?
If it is possible I'm thinking install ODBC driver on the Linux server, but will it work to connect to Access is the question. I've read it's possible with MSSQL.
My knowledge is very limited when it comes to any Windows related DBs so any advice much appreciated.
Yes, it's possible. I've done it using ODBTP, which took advantage of the ODBC driver on the (Windows) machine that hosted the Access database file.
It's also theoretically possible to use an ODBC driver on the Linux server to read an Access database on a Windows networking share if the Linux box can "see" it. However, I've never had very good luck with Access ODBC on Linux so I wouldn't recommend spending too much time trying to get it working.

PHP oracle database connection string

I had a weird experience connecting to oracle database using PHP.
Firstly, from the past 3 years I am connecting to oracle using easy connection string. I had the code on my windows 7 machine.
A week ago I got a new windows 7 machine and when I tried to connect to oracle. It gave me the following error
ORA-12154: TNS:could not resolve the connect identifier specified
Later I figured out oci_connect is only accepting SID and not the easy connect string.
Now I didn't understand why is it behaving weirdly in my new machine. Can anyone please help me to figure out if it is some problem with windows software settings?
Thanks,
Sri
Have you enable oci8 extantions in your wamp....or just use phpinfo() to check this
If it is working fine then on which server you are connection database
If it is Local then you need to Start services of Oracle from your machine
which are as mention in my snap
also you need to start your database service which you want tot connect to your database.

mssql_connect slow (linux server)

Does anyone know why mssql_connect would be slow? PHP is running on a Linux server with FreeTDS. I am trying to connect to a remote database. When I connect from PHP it takes about 3 seconds, but if I use the FreeTDS tsql command from the shell it connects in under a second, so it is able to connect faster. Is there a setting I can change or a different driver I should use?
You should start using PDO with MSSQL driver support.
More info on:
http://php.net/manual/en/ref.pdo-dblib.php
And some examples:
Connecting to mssql using pdo through php and linux

Categories