Coder Social home page Coder Social logo

shop's Introduction

1.执行make生成可执行文件 2.linux下安装mysql http://dev.mysql.com/downloads/mysql/ 3.修改mysql的初始密码 自行百度即可 成功登录应如下图

4.创建数据库 create database Shop;(数据库名,因为我在服务器使用的是Shop,更改源码后可自行更改) 创建成功后可以查看一下,命令为:show databases; 显示如下图

5.创建表 create table user_purchaser(表名) ( num int primary key(主键约束), name varchar(45) , pass varchar(45) );

创建表以后,先使用命令use Shop;指定Shop数据库,然后使用命令show tables; 查看表。

6.在服务器Util.cpp文件中更改ip为你自己的IP,在客户端Packdef文件里的宏定义也同样更改ip为你自己的IP 7.服务器端可以运行./Shop -t 4(线程数) - p 8000(端口号) 在客户端使用的端口为8000,如果想更改端口需要在客户端文件Packdef中更改为你想用的端口,默认使用8000. 8.客户端可以在VS下运行,注册自己的信息到服务器端的数据库中。

shop's People

Contributors

7487 avatar rockycc avatar zz001001 avatar

Watchers

 avatar  avatar

Forkers

rockycc 7487

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.