PHP Fatal error: Class ‘Couchbase’ not found when connect to server - couchbase

i have A B and C three servers.
A is centos 6.x on which couchbase server is installed.
B is my local server(localhost).
C is my other server on which i want to run my php script
i can run my script on B and Access server A. but when i am trying to connect A to c it throws error
PHP Fatal error: Class ‘Couchbase’ not found

it looks like an installation/classpath issue to me. Are you sure Couchbase PHP SDK is correctly installed on server C?

Related

Your PHP installation appears to be missing the MySQL extension which is required by WordPress & r establishing a database connection

Error:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Hosting: Godaddy
PHP version: 7.1
I have tried to change the PHP Version from cpanel when I select 7.1 PHP version it gives an error
Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
When I select the native version i.e 5.4 then it gives "Error establishing a database connection".
I have set proper database connection then also it gives "Error establishing a database connection" error.
I am not getting exactly why this error is occurring.
Is the php7.1-mysql package installed?
If not, install it!
sudo apt-get install php7.1-mysql

RMySQL package for R: installed but not loaded

I am working on R under CentOS 6.7, and I need to gain access to a MySQL database. I successfully downloaded and installed the two packages "DBI" and "RMySQL", but whenever I try to load the library into the R script, I get an error message that RMySQL does not exist.
Error in library(RMySQL) : there is no package called ‘RMySQL’
I tried the exact same thing on another CentOS 7 server and it didn't work. However, when I try it on my local Windows 7 machine it worked perfectly fine.

How to use R (RODBC) to extract data from MySQL on Mac OSX 10.11 El Capitan (Via SSH Tunnel)

My working laptop is Mac OS X 10.11.3 El Capitan. I am currently working on a project in which I am developing a shiny app to visualize the data in our company's MySQL database. I set up the SSH Tunnel via 'SSH Tunnel Manager' and was able to connect MySQL data via SquelPro. However, I am constantly having problems when I am trying to connect MySQL data in R (R-version3.2.3 / Rstduio-version 0.99.491) using 'RODBC' package.
Initially, I am following this blog: http://blog.nguyenvq.com/blog/2013/04/06/guide-to-accessing-ms-sql-server-and-mysql-server-on-mac-os-x/ to downloaded and created the connector and 'odbc.ini' files. Then move them to the right locations.
Yet, when I try to install package 'RODBC' in R, the installation process fails and returns the following error message - "configure: error: "ODBC headers sql.h and sqlext.h not found". Then I follow the steps in this link to downloaded the iODBC zip files: Installation of RODBC/ROracle packages on OS X Mavericks Yet, I couldn't identify the file 'libiodbc.a' in the archball. So, just moving the sql.h and sqlext.h files are not helping. I still have that issue.
So, I found another link: Installation of RODBC on OS X Yosemite which says installing unixODBC will also solve this issue. So I copied the commands and successfully downloaded unixODBC. This time it works. I successfully called the library(RODBC) in R. However, when I run the following R commands in Rstudio:
connect1 <- odbcConnect(dsn="mysql01",
uid="user_name",
pwd="pass_words")
Then I got error message like:
Warning messages:
1: In odbcDriverConnect("DSN=mysql01;UID=user_name;PWD=pass_words") :
[RODBC] ERROR: state IM002, code 0, message [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2: In odbcDriverConnect("DSN=mysql01;UID=user_name;PWD=pass_words") :
ODBC connection failed
It seems that I need to configure the driver manager for unixODBC on R. However, I am not sure what exactly gone wrong in the process above. What should I do next to get R connected to MySQL?

PHP 5.2 based app unable to connect to Google Cloud SQL

We have a PHP 5.2 based app which we migrated to GCE, and encountered the problem where the Mysqli client does not work.
We used Atomic Archive repo to install PHP 5.2 on GCE 6 CentOS 6:
http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/
and also installed the provided Mysql client:
mysql-5.5.40-26.el6.art.x86_64.rpm
Following testing, the application fails with following error:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on XXX.XXX.XXX.XXX
While the command line mysql client works just fine.
While looking at the mysqli.so PHP extension, we noticed it uses the oldest available MySQL library: /usr/lib64/mysql/libmysqlclient.so.16
Any chance that this library doesn't work with Google Cloud SQL?
This is how I connect from my php:
$conn = mysqli_connect("<IP>", "<username>", "<password>","database") or die ("Error" . mysqli_error($conn));

Error Trying to Connect R to MySQL using RODBC

I am attempting to connect R to a MySQL database via RODBC (in Win 7 environment), but cannot get past the following error:
[RODBC] ERROR: state IM014, code 0, message [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
After entering the following command:
odbcConnect(dsn,uid="My_UID",pwd="My_PWD")
I have successfully created a driver for the database by following the odbc wizard, and have installed the RODBC package into RStudio (ver 0.98.490). The MySQL is running on 32bit, I have the 32bit driver installed and working, and my RStudio is also 32bit. I know that the driver is working since both the test connection in config. works, as do queries run on excel using the driver.
What can I do to get the connection to work in R?
(Previous responses to this question seem to have been removed.)
Thanks in advance!
I faced a similar RODBC connectivity issue using DSN, where R was crashing abruptly without any logs/error trace. I tried with DSN-less ODBC connection API, it works fine.
odbcDriverConnect("SERVERNAME=;DRIVER={};DATABASE=;UID=;PWD=;")
Steps:
1. Install ODBC driver
2. Define VNode (host, listen address, protocol)
3. Use the odbcDriverConnect API
Docs:
http://cran.r-project.org/web/packages/RODBC/RODBC.pdf
http://cran.r-project.org/web/packages/RODBC/vignettes/RODBC.pdf
Hope this helps.