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
thanks for providing access to mysql for julia hackers. I am a bit of a newbie and I am struggling to connect to a local mariadb instance. My julia code is pretty simple:
using MySQL, DBInterface, DataFrames
@testset"MySQL conenction"begin
host ="localhost"
user ="root"@testisfile("mysql.root_pass")
password =read("mysql.root_pass", String)
port =3306
dbname ="juliatests"
usocket ="/foo/bar/julia_sandbox/database_storage/mariadb/run_mysqld/mysqld.sock"
conn = DBInterface.connect(MySQL.Connection,
host,
user,
password;
db=dbname,
unix_socket=usocket)
DBInterface.close!(conn)
end;
But I always get:
MySQL conenction: Error During Test at /foo/bar/julia_sandbox/database_storage/mysql/test/test_float_storage.jl:3
Got exception outside of a @test
(1045): Access denied for user 'root'@'localhost' (using password: YES)
Stacktrace:
[1] connect
@ ~/.julia/packages/MySQL/9WCDb/src/api/capi.jl:12 [inlined]
[2] MySQL.Connection(host::String, user::String, passwd::String, db::String, port::Int64, unix_socket::String; kw::@Kwargs{})
Even though I am unable to connect to the DB alright from a local shell.
Hi,
thanks for providing access to mysql for julia hackers. I am a bit of a newbie and I am struggling to connect to a local mariadb instance. My julia code is pretty simple:
But I always get:
Even though I am unable to connect to the DB alright from a local shell.
Here is what I do without root priviledges:
singularity pull mariadb.simg docker://mariadb:10
mkdir -p ./mariadb_ ./run_mysqld
singularity exec ./mariadb.simg mariadb -uroot -p\
cat run_mysqld/mysql.root_pass` -e "SHOW DATABASES;" --socket=run_mysqld/mysqld.sock`The text was updated successfully, but these errors were encountered: