Gerald Bauer
unread,Nov 25, 2015, 5:29:38 AM11/25/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
Hello,
Welcome to football.db.
To use phpMyAdmin you (just) have to import the datasets into MySQL
(using a custom build script). The tools for now are preconfigured to
use sqlite3. Note: The datasets so far do NOT include any players.
Cheers.
PS: Search this forum for mysql. For example here's a build script:
Rakefile:
---------------------
BUILD_DIR = "./build"
FOOTBALL_DB_PATH = "#{BUILD_DIR}/football.db"
DB_CONFIG = {
:adapter => 'mysql',
:database => FOOTBALL_DB_PATH
}
directory BUILD_DIR
task :clean do
rm FOOTBALL_DB_PATH if File.exists?( FOOTBALL_DB_PATH )
end
task :env => BUILD_DIR do
require 'worlddb'
require 'sportdb'
require 'logutils/db'
LogUtils::Logger.root.level = :info
pp DB_CONFIG
ActiveRecord::Base.establish_connection( DB_CONFIG )
end
task :create => :env do
LogDb.create
WorldDb.create
SportDb.create
end
task :importworld => :env do
WorldDb.read_setup( 'setups/sport.db.admin', '../world.db',
skip_tags: true ) # populate world tables
# WorldDb.stats
end
task :importsport => :env do
SportDb.read_setup( 'setups/all', '../openfootball/at-austria' )
# SportDb.stats
end
desc 'footballdb - build from scratch'
task :build => [:clean, :create, :importworld, :importsport] do
puts 'Done.'
end