You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This RMySQL package is being phased out, but the RMySQL::mysqlHasDefault() function is not present in the new RMariaDB.
I have spent some time figuring out how to setup a test database for testthat and I just wanted to specify that the default database used by RMySQL::mysqlHasDefault() has to be called "test". Other database names return an error Could not initialise default MySQL database.
Here is how I created the test database :
$ mysql -u root -p
Then give the following mysql commands:
mysql> create database test;
mysql> connect test;
mysql> grant all privileges on * . * to R@localhost;
And the configuration in ~/.my.cnf
# [rs-dbi]
# user = R
# password = ***
# host = localhost
# database = test
Then RMySQL::mysqlHasDefault() returns TRUE.
The text was updated successfully, but these errors were encountered:
This RMySQL package is being phased out, but the
RMySQL::mysqlHasDefault()
function is not present in the new RMariaDB.I have spent some time figuring out how to setup a test database for testthat and I just wanted to specify that the default database used by RMySQL::mysqlHasDefault() has to be called "test". Other database names return an error
Could not initialise default MySQL database.
Here is how I created the test database :
Then give the following mysql commands:
And the configuration in ~/.my.cnf
Then
RMySQL::mysqlHasDefault()
returnsTRUE
.The text was updated successfully, but these errors were encountered: