Installing RMySQL package when MySQL is installed in other drivers except C:\? - mysql

R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
I've used RMySQL since , and recently I formatted my computer and now
trying to install RMySQL again.
But in this time, I installed MySQL Server on other hard drive, not on C:\
I did everything i know, the things when installing RMySQL before,
and I got the result like this on R-studio console.
(I installed MySQL Server on E:, and installed R, Rtools, Rstudio on C:)
...
Error : .onLoad failed in loadNamespace() for 'RMySQL', details:
call: fun(libname, pkgname)
error: Cannot find a suitable MySQL install
ERROR: loading failed
...

Related

Error coming while running 0x-api locally

I am trying to run 0x-api, locally. I followed instructions (https://github.com/0xProject/0x-api#getting-started), however, while running yarn db:migrate, I am getting following error:
Error during migration run:
MissingDriverError: Wrong driver: "undefined" given. Supported drivers are: "cordova", "expo", "mariadb", "mongodb", "mssql", "mysql", "oracle", "postgres", "sqlite", "better-sqlite3", "sqljs", "react-native", "aurora-data-api", "aurora-data-api-pg".
Software info:
postgres#14
m1 mac
forked latest 0x-api code.
What I tried?
I thought there might be some installation issues with postgres so I have reinstalled postgres in my local machine (m1 mac). Tried to connect it with pgAdmin portal via localhost. and its working.
Checked 0x-api code for default driver setting, but no where it has been explicitly mentioned.
Check postgres server, but its running fine.
I even tried on AWS ubuntu server, but getting same error.
I am not sure if this anything related to postgres server.

OpenSSL / LibreSSL issue on Mac - dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

I did a brew update && brew upgrade to try and fix a problem (stoopid!!) and now I get various forms of:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/mysql#5.7/bin/mysql
Reason: image not found
For example when I execute
wp config create
From this GitHub page, I've tried a variety of brew uninstall and resinstall of openssl, openssl#1.1, etc, but I can't work out what's not updating.
I know I've had problems in the past trying to work out the difference between the Mac php and the MAMP php ... perhaps there's a similar problem here and I'm not updating the correct one ...
I don't know how to change the version that /usr/local/opt/mysql#5.7/bin/mysql (see error above) is pointing to.
Any wisdom appreciated!!
I'm on Mac OS Catalina with MAMP Pro running Apache and MySQL:
MySQL - Server version: 5.7.26 - MySQL Community Server (GPL)
Apache - Database client version: libmysql - mysqlnd 7.4.2
PHP version: 7.4.2

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?