Lottery

所属分类:Linux/Unix编程
开发工具:C/C++
文件大小:1KB
下载次数:0
上传日期:2018-06-22 15:16:09
上 传 者6164686
说明:  1)安装mysql:sudo apt-get install mysql-server mysql-client,这两个东西安装好后,(安装的过程中,会有设置用户名和密码的提示,我设置为root用户)sudo apt-get install libmysqlclient15-dev,(如果没有这一步,会找不到mysql.h),安装完后,在/usr/include/mysql/ 下就会有mysql.h 2)登陆mysql数据库,mysql -uroot -p,回车输入密码,然后创建一个数据库,create table Lottery;,我创建了Lottery数据库。 3)附件是程序连接数据库,然后在Lottery中建立一个表。
(1) install mysql:sudo apt-get install mysql-server mysql-client, after the installation of these two things, (in the process of installation, there will be a user name and password prompt, I set to root user) sudo apt-get install libmysqlclient15-dev, (if no this step, will not find mysql.h), after the installation, in /usr/ There will be mysql.h under include/mysql/ 2) log in to the MySQL database, MySQL -uroot -p, enter the password in return, and create a database, create table Lottery; I created the Lottery database. 3) the appendix is that the program connects to the database and then establishes a table in Lottery.)

文件列表:
Lottery\include\CDataBase.h (590, 2012-11-04)
Lottery\include\Common.h (87, 2012-10-28)
Lottery\Makefile (416, 2013-03-07)
Lottery\source\CDataBase.cpp (1311, 2013-03-07)
Lottery\source\LotteryMain.cpp (189, 2013-03-07)
Lottery\include (0, 2012-11-04)
Lottery\source (0, 2012-11-04)
Lottery (0, 2012-11-04)

近期下载者

相关文件


收藏者