Skip to content

swearl/bangumi-data-to-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bangumi-data to mysql

框架: CodeIgniter

基础模型: CodeIgniter-MY_Model

数据源: bangumi-data

前期工作

设置url_rewrite

apache可以直接使用.htaccess, nginx请自行设置

CodeIgniter

我只上传了application部分的文件, CodeIgniter的主文件请自行下载

建立表结构

导入 sql/table.sql

设置

设置application/config/database.php

$db['default'] = array(
    'dsn'	=> '',
	'hostname' => 'localhost', // MySQL地址
	'username' => 'root',      // MySQL用户
	'password' => '12345678',  // MySQl密码
	'database' => 'bangumi',   // MySQL数据库
	'dbdriver' => 'mysqli',
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => (ENVIRONMENT !== 'production'),
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8mb4',
	'dbcollat' => 'utf8mb4_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);

设置application/config/github.php

$config["github_user"]  = ""; // github用户
$config["github_token"] = ""; // github token

About

将bangumi-data数据导入到mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages