Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

deepb/bd

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bd Clone

¡Intenta escapar del fuego!

Hay una salida cerca, si puedes alcanzarla. Si te quemas, reduces la posibilidad de alcanzar la salida.

INSTALACION

Instala mysqld

Ejecuta:

mysql -u root -p

En la consola de mysql teclea:

CREATE DATABASE BD;
GRANT ALL ON BD.* TO 'BD'@'localhost' IDENTIFIED BY 'BD';
CREATE TABLE Top (
	id INT NOT NULL AUTO_INCREMENT, 
	Nombre VARCHAR(5) NOT NULL, 
	Puntos INT NOT NULL, 
	TimeStamp DATETIME NOT NULL DEFAULT NOW(),
	PRIMARY KEY (id)
);
QUIT;

Instala MySQLdb:

# Por ejemplo, en Arch Linux:
sudo pip2 install MySQL-python
# o
sudo pacman -S mysql-python

Instala Pygame:

# Por ejemplo, en Arch Linux:
sudo pip2 install pygame
# o
sudo pacman -S python2-pygame

Ejecuta bd.py con Python 2.x:

# Por ejemplo, en Arch Linux:
python2 bd.py

About

bd Clone

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.