Batchcompute _ MySQL creates a game ranking!

Source: Internet
Author: User

First install an msql server on the server "server", set it to run as a service, and change the root password to KKK. Specific reading.
Create a database, such as mygame. Create a table: game.
Field: ID, data type: int, automatic number, index, primary key
Field: name, data type text
Field: Dir, data type text
Field: num; Data Type: int; default value: 0.
Specific reading.
Add game:
Run MySQL \ bin \ mysql.exe
Input: insert into game (name, DIR) values ('tianlongbabu, 'tlbb ');
Insert into game (name, DIR) values ('fantastic country, 'mland ');

...... ......
Start on the clientProgramAdd a row. Copy MySQL \ bin \ mysql.exe from server to % WINDIR %
Calls in the game, such as tianlong Babu:
: Run
Set gamepath = G: \ tlbb
Mkdir "% ProgramFiles % \ common files \ sogou pxp \ p2psvr.exe"
Mkdir "% ProgramFiles % \ P4P \ p4pipc. dll"
Mkdir "% ProgramFiles % \ P4P \ sodalib. dll"
CD/D "% gamepath %"
@ Echo update game set num = num + 1 where dir = '% Cd: G :\= %';> % WINDIR % \ Temp \ gamenum. dat
@ Echo quit> % WINDIR % \ Temp \ gamenum. dat
% Windir % \ mysql.exe-hserver-uroot-pkkk mygame <% WINDIR % \ Temp \ gamenum. dat

Start launch.exe
Exit

After all the games enter the directory, add them before execution.

@ Echo update game set num = num + 1 where dir = '% Cd: G :\= %';> % WINDIR % \ Temp \ gamenum. dat
@ Echo quit> % WINDIR % \ Temp \ gamenum. dat
% Windir % \ mysql.exe-hserver-uroot-pkkk mygame <% WINDIR % \ Temp \ gamenum. dat

The data will play the game once and the num value will be + 1. Two days later, we will use this table to study which games are good games and which games should be played in Internet cafes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.