From pySpark, it work for me :
dataframe_mysql = mySqlContext.read.format("jdbc").options(
url="jdbc:mysql://localhost:3306/my_bd_name",
driver = "com.mysql.jdbc.Driver",
dbtable = "my_tablename",
user="root",
password="root").load()
More Related Contents:
- In Apache Spark 2.0.0, is it possible to fetch a query from an external database (rather than grab the whole table)?
- mysql_fetch_array() expects parameter 1 to be resource, boolean given in [closed]
- When I want to install MySQL I faced this issue “root account password” I forgot it
- How to perform grouped ranking in MySQL
- How to abort INSERT operation in MySql trigger?
- Restoring MySQL database from physical files
- Mysql or/and precedence?
- MySQL Trigger after update only if row has changed
- MySQL “WITH” clause
- MySQL Query – Records between Today and Last 30 Days
- MySQL “Group By” and “Order By”
- MySQL Query to select data from last week?
- ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- Migrate from Oracle to MySQL
- Which is more efficient: Multiple MySQL tables or one large table?
- #1139 – Got error ‘repetition-operator operand invalid’ from regexp
- How to skip columns in CSV file when importing into MySQL table using LOAD DATA INFILE?
- MySQL ‘user_id’ in where clause is ambiguous problem
- Images in MySQL
- What does it mean when MySQL is in the state “Sending data”?
- adding RMySQL package to R fails (on Windows)?
- How do I count columns of a table
- Mysqldump launched by cron and password security
- MySQL Trigger cannot update table – getting ERROR 1442
- MySQL delete duplicate records but keep latest
- Why MySQL is giving error “Not allowed to return a result set from a function”?
- Where I can find a list of “mysqldump” exit codes?
- Array data type, split string,
- Are there any functions in MySQL like dense_rank() and row_number() like Oracle?
- How can I make a table in MySQL called “order”?