Data Preparation for Machine Learning using MySQL
From the post:
Most Machine Learning algorithms require data to be into a single text file in tabular format, with each row representing a full instance of the input dataset and each column one of its features. For example, imagine data in normal form separated in a table for users, another for movies, and another for ratings. You can get it in machine-learning-ready format in this way (i.e., joining by userid and movieid and removing ids and names):
Just in case you aren’t up to the Stinger level of SQL but still need to prepare data for machine learning.
Excellent tutorial on using MySQL for machine learning data preparation.