Loading csv to mysql-python3 - mysql

I can import csv to mysql using Sequel pro with no problem. Need to do it in my python program. Couldn't find the answer online. Looks like mysqldb is not a good match for python ver 3. Using Mypysql can't find any note in documentation if it has this functionality.
OS: Mac

Related

How can I import MySQL database in neo4j on Windows?

I am continuously looking for a decent tutorial for importing MySQL database in neo4j but I didn't find anyone easily applicable. I am using neo4j version 3.0.3 and MySQL version 8.2.
You can help me any good tutorial or a tool that can dump MySQL database directly into neo4j, but both of them should target Windows OS.
Thank you.
H,
Michael has made such a tool, but I have never used it.
Take a look at this repo : https://github.com/jexp/neo4j-rdbms-import
Usually I make some SQL queries and I save them into a CSV file (#see How to output MySQL query results in CSV format?).
After I load them into Neo4j with the LOAD CSV (#see http://jexp.de/blog/2014/06/load-csv-into-neo4j-quickly-and-successfully/)
Cheers

how to build a database in coordination with python 3.4 and have a visual interface for DB mangement?

I am completely new to python and I want to start working with database in python. I am using winPython version 3.4. I am using pymysql module. At very beginning of the project, I had used the code below and faced the error.
import pymysql as sql
db = sql.connect('localhost','root','','test.db')
Error ==> No connection could be made because the target machine actively refused it.
I guess the reason is because I have made no database. Actually I don’t know how.where do I have to build the database? Do I have to install a sql server and build a data base there? If so what is the best match for winpython 3.4? How can I have graphical interface to my DB management to be able to build tables , insert rows or other things?
thank you for helping me to start.

Exploring a MySQL database with R and dplyr

I just received an export from a MySQL database as a file mydb.sql. I installed MySQL in my Mac OS 10.10 laptop, put the .sql file in "/usr/local/mysql/data/", started the MySQL server. In R I installed the packages dplyr, RMySQL and their dependencies. I tried the dpylr function:
src_mysql(dbname = "mydb.sql")
as well as a few variations on this, but I get the error
Failed to connect to database: Error: Unknown database 'mydb'
What am I missing?
You have to create a database first, then import the data. Then the dplyr command works fine. This helped. If you are familiar with MySQL, this question probably annoyed you. R developers might find this more useful.

import mysql database in to pspp?

Hi friends am looking in to pspp for charting ans stastics
can anyone tell me how can i connect my mysql database in to pspp gnu .
is my mysql supported by pspp ?
this is the homwpage os pspp am using now
http://www.gnu.org/software/pspp/
which is an replacement os spss
any help will be appreciated ..
To my knowledge, MySQL is not currently supported by PSPP; however, PostgreSQL is. You might want to try converting your database and seeing if you have any luck with that. Check out the PostgreSQL wiki for some tips on how to convert from other databases to PostgreSQL.
See the entry in the PSPP manual on how to import data from PostgreSQL in PSPP.

How to connect MySQL with python 3

everyone I am new to python and I want to connect MySQL database with python 3 script. I did some googling but couldn't find anything for python 3 although there are methods for earlier python releases. Could anyone suggest a method?
MySQL-Connector, oursql and PyMySQL all support Python 3. They are also all supported by SQLAlchemy, which also supports Python 3.
So most likely you's want to use SQLAlchemy + one of the above conectors.