MYSQL数据库 .py 格式怎么导入? 100
刚从外国网站下了个源码发现他的数据库是buildDatabase.py的我不知道怎么导入到数据库里3.2Populatethedatabase:Createanempty...
刚从外国网站下了个源码 发现他的数据库是buildDatabase.py 的
我不知道怎么导入到数据库里
3.2 Populate the database:
Create an empty database in your MySQL database server.
Copy buildDatabase.py from the /tools directory to the root
of your Frets on Fire directory and run it.
Run: buildDatabase.py -init "host" "user" "passwd" "db"
to create the required tables.
After that, you can run buildDatabase -f or -s to either dump
the sql queries to a file that can be imported, or directly
to the database. Run buildDatabase.py without parameters for
more information.
As an option, you can run uploadScores.py to upload all your
scores to you newly created scorechart.
Run: uploadScores.py frets_dir upload_url
e.g. uploadScores.py C:/frets http://www.myhomepage.com/upload.php
这是外文说明 展开
我不知道怎么导入到数据库里
3.2 Populate the database:
Create an empty database in your MySQL database server.
Copy buildDatabase.py from the /tools directory to the root
of your Frets on Fire directory and run it.
Run: buildDatabase.py -init "host" "user" "passwd" "db"
to create the required tables.
After that, you can run buildDatabase -f or -s to either dump
the sql queries to a file that can be imported, or directly
to the database. Run buildDatabase.py without parameters for
more information.
As an option, you can run uploadScores.py to upload all your
scores to you newly created scorechart.
Run: uploadScores.py frets_dir upload_url
e.g. uploadScores.py C:/frets http://www.myhomepage.com/upload.php
这是外文说明 展开
2008-07-21
展开全部
如果是相同版本的MYSQL数据库,可以直接拷贝相应文件到MYSQL的DATA目录。
如果是MYSQL导出的SQL文件,可以直接用MYSQL命令运行此SQL文件。
如果是其它格式的文本文件,需要先建立表,然后LOAD DATA命令装载数据。
如果是MYSQL导出的SQL文件,可以直接用MYSQL命令运行此SQL文件。
如果是其它格式的文本文件,需要先建立表,然后LOAD DATA命令装载数据。
参考资料: www.baidu.com
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |