Kategoriarkiv: Old Base

Proftpd passive mode behind firewalls

(By BT) I could not get my Proftpd working in passive mode, whilst it was behind a firewall. The solution seemed to be, to tell the server that it was behind a specific firewall (the MasqueradeAddress directive), that it should … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

MySQL: Getting a random roll of the dice

CREATE TABLE dice ( d_id int(11) NOT NULL auto_increment, roll int, PRIMARY KEY (d_id) ); insert into dice (roll) values (1); insert into dice (roll) values (2); insert into dice (roll) values (3); insert into dice (roll) values (4); insert … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

MySQL: MERGE: Several tables can be merged into one

CREATE TABLE log_01 ( pkey int(11) NOT NULL auto_increment, a int, b varchar(12), timeEnter timestamp(14), PRIMARY KEY (pkey) ) type=MyISAM; CREATE TABLE log_02 ( pkey int(11) NOT NULL auto_increment, a int, b varchar(12), timeEnter timestamp(14), PRIMARY KEY (pkey) ) type=MyISAM; … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

Mysql transactions

Transactions: Not all table types support transactions. BDB and INNODB type do support transactions. Assuming the server has NOT been started with –skip-bdb or –skip-innodb the following should work: mysql> create table tran_test (a int, b int) type = InnoDB; … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

Mysql show status information on table / show create

Show status information on a table. Note, if the database was started with –safe-show-database or –skip-show-database some of these commands may not work. Note the “\G” option may provide a nicer format. Show the create statement: mysql> show create table … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

How to create and use temporary tables in MySQL?

The temporary tables could be very useful in some cases to keep temporary data. The most important thing that should be know for temporary tables is that they will be deleted when the current client disconnects You could try to … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

MySQL: Find out who is doing what, and kill the process if needed.

mysql> show processlist; show processlist; +—–+——+———–+———+———+——-+——-+——————+ | Id | User | Host | db | Command | Time | State | Info | +—–+——+———–+———+———+——-+——-+——————+ | 657 | prog | localhost | weather | Sleep | 28619 | | NULL | … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

NIC Configuration in Debian

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Endian safe export of Pickled GDBM Cabinet Files

You proberly wont need this unless you work for an old institution which uses GDBM, Python, Solaris to one of their core business and need to export this to a modern Linux Server. (i did once) #!/usr/bin/env python import sys … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

(Gratis)DNS Hacks

Æ, Ø og Å Domæner http://xn--5cab8c.dk-hostmaster.dk/ http://josefsson.org/idn.php GratisDNS, udtræk zoner: https://ssl.gratisdns.dk/dzshow.phtml?user=USER&password=PASS&domain=domain.com

Udgivet i Knowledge Base, Old Base | Skriv en kommentar