Difference between revisions of "SQL"
(→See also) |
m |
||
Line 13: | Line 13: | ||
== Dealing with duplicates on import == | == Dealing with duplicates on import == | ||
See [[Backup]] | See [[Backup]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Documentation == | == Documentation == | ||
Line 76: | Line 39: | ||
*[http://www.cs.huji.ac.il/~ittaia/papers/AAY-OPODIS05.pdf Skip B-Trees] | *[http://www.cs.huji.ac.il/~ittaia/papers/AAY-OPODIS05.pdf Skip B-Trees] | ||
*[http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server] ''- Yoshinori Matsunobu's blog'' | *[http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server] ''- Yoshinori Matsunobu's blog'' | ||
+ | |||
+ | == Database procedures == | ||
+ | *[[Reset MySQL root password]] | ||
+ | *[[Renaming MySQL tables and databases]] | ||
+ | *[[Rename a MediaWiki database]] | ||
+ | *[[Reset a wiki user password]] | ||
+ | *[[Set a user preference]] | ||
+ | *[[Manually backup a wiki]] | ||
+ | *[[Add a wiki database]] | ||
== See also == | == See also == | ||
− | |||
*[https://mariadb.org/en/about/ MariaDB] ''- see [[PeerPedia]] Feb 2013 update for more info'' | *[https://mariadb.org/en/about/ MariaDB] ''- see [[PeerPedia]] Feb 2013 update for more info'' |
Revision as of 22:42, 8 April 2015
SQL (Structured Query Language) is a computer language used to create, retrieve, update and delete data from relational database management systems. SQL has been standardised by both ANSI and ISO.
SQL is commonly spoken either as the names of the letters ess-cue-el, or like the word sequel. The official pronunciation of SQL according to ANSI is ess-cue-el. However, each of the major database products (or projects) containing the letters SQL has its own convention: MySQL is officially and commonly pronounced "My Ess Cue El"; PostgreSQL is expediently pronounced postgres (being the name of the predecessor to PostgreSQL); and Microsoft SQL Server is commonly spoken as Microsoft-sequel-server. See MediaWikiLite for information about SQLite support in MediaWiki, or MSSQL for information about Microsoft SQL Server support. We're now using MariaDB for our SQL server which is a drop-in replacement for MySQL but is fully open source and more efficient too.
Contents
Backup & restore
See backup for details about this as it's doesn't outside the SQL environment so doesn't belong in this article. But don't forget to set the default character set to the same as the dump used when you import the data!
Fixing crashed tables
To fix a crashed table just use repair TABLENAME from the MySQL command line, or to automatically scan all tables and fix them run the following from the shell.
Dealing with duplicates on import
See Backup
Documentation
- SQL Tutorial - A nice tutorial on SQL
- Official MySQL Documentation
- W3C SQL Tutorial (QuickRef)
MySQL vs MSSQL
MySQL News & Information
- Falcon Overview - the new MySQL 6 Falcon storage engine
- MySQL Stored procedures & triggers
RODBC
Using RODBC to interact with R requires the user to configure the system as described in the file README after installing RODBC.
- See
- http://www.unixODBC.org
- http://www.easysoft.com/developer/interfaces/odbc/linux.html (tutorial using unixODBC)
Towards SQL for P2P environments
- PeerPedia
- MediaWikiLite
- The PIER Project
- Prefix Hash Trees
- Skip B-Trees
- Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server - Yoshinori Matsunobu's blog
Database procedures
- Reset MySQL root password
- Renaming MySQL tables and databases
- Rename a MediaWiki database
- Reset a wiki user password
- Set a user preference
- Manually backup a wiki
- Add a wiki database