MySQL

From CSBLwiki

(Difference between revisions)
Jump to: navigation, search
(Command)
Line 43: Line 43:
</pre>
</pre>
===Command===
===Command===
-
*temporary table
+
;temporary table
<pre>
<pre>
CREATE TEMPORARY TABLE tmptable SELECT * FROM table1...
CREATE TEMPORARY TABLE tmptable SELECT * FROM table1...
</pre>
</pre>
-
*check warnings
+
 
 +
;check warnings
<pre>
<pre>
SHOW WARNINGS LIMIT 1
SHOW WARNINGS LIMIT 1
 +
</pre>
 +
 +
;Pfam
 +
<pre>
 +
# archaea에서 발견되는 pfam domain의 수
 +
select distinct(reg.auto_pfamA) from pfamA_reg_full_significant reg, pfamseq seq where reg.auto_pfamseq=seq.auto_pfamseq AND seq.taxonomy like '%Archaea;%'
</pre>
</pre>

Revision as of 08:15, 23 May 2011

Contents

Tutorial

mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
LOAD DATA INFILE 'filename' INTO TABLE 'tablename';
LOAD DATA LOCAL INFILE 'filename' INTO TABLE 'tablename' FIELDS ENCLOSED BY "\'";
mysql -u user -p 'database' < script.sql

Configuration

>/etc/init.d/mysql restart # be careful to the command (actually a script) in the same directory
[client]
default-character-set=utf8
[mysqld]
character-set-client-handshake=FALSE
default-character-set=utf8
character-set-server=utf8
[mysqldump]
default-character-set=utf8
[mysql]
default-character-set=utf8

Command

temporary table
CREATE TEMPORARY TABLE tmptable SELECT * FROM table1...
check warnings
SHOW WARNINGS LIMIT 1
Pfam
# archaea에서 발견되는 pfam domain의 수
select distinct(reg.auto_pfamA) from pfamA_reg_full_significant reg, pfamseq seq where reg.auto_pfamseq=seq.auto_pfamseq AND seq.taxonomy like '%Archaea;%'

Error Log

MediaWiki internal error.

Exception caught inside exception handler

Database

UMLS

Personal tools
Namespaces
Variants
Actions
Site
Choi lab
Resources
Toolbox