# NOT RUN {
sc <- spark_connect(
master = "local",
config = list(sparklyr.shell.packages = "mysql:mysql-connector-java:5.1.44")
)
spark_write_jdbc(
sdf_len(sc, 10),
name = "my_sql_table",
options = list(
url = "jdbc:mysql://localhost:3306/my_sql_schema",
user = "me",
password = "******",
dbtable = "my_sql_table"
)
)
# }
Run the code above in your browser using DataLab