Questions tagged [mysql]

MySQL is an open-source database owned by Oracle. ServerFault topics include how to run the server. For more MySQL specific questions like backup/restore/recovery/configuration, dba.stackexchange.com is probably a better home.

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. MySQL is officially pronounced /maɪˌɛskjuːˈɛl/ ("My S-Q-L"), but is often pronounced /maɪˈsiːkwəl/ ("My Sequel"). It is named for My, the daughter of Michael Widenius (the original developer of MySQL)

The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. MySQL was originally owned and sponsored by a single for-profit firm, the Swedish company MySQL AB.

MySQL has changed ownership when Sun purchased MySQL in Janaury 2008 for $1B. Some 15 months later, before the ink could fully dry, Oracle bought Sun. This made MySQL a subsidiary of the Oracle Corporation.

Ever since Oracle has stepped into the picture, they have made good on their promises to make steady strides in MySQL development, which have come to fruition heretofore by means of better performance and configurability. However, older bugs still exist in MySQL, which Oracle has fixed fast enough for many in the MySQL community.

In light of this, and in keeping with spirit of open source liberty and freedom, forks of MySQL have surfaced in the Open Source DB World as viable alternatives:

MySQL can run on multiple platforms (32-bit and 64-bit)

  • Linux (Redhat Enterprise, Oracle Enterprise, Generic, Linux6 as for 5.5.17)
  • Sun Solaris
  • Mac OS X
  • Free BSD
  • Microsoft Windows
  • Source Code

MySQL features the use of several storage engines

Each Storage Engine has Distinct Properties that make efficient usage of data depending on

  1. Read Performance
  2. Write Performance
  3. Storage Requirements
  4. Memory Utilization
  5. Tuning the Engine Settings for
    • Internal Use
    • Multiple CPUs
    • OS Usage

For example, InnoDB has undergone a facelift which now allows it to take advantage of multiple CPU architectures. It was first introduced in MySQL 5.1.38 InnoDB Plugin. Those changes have now been fully incorporated in MySQL 5.5's InnoDB (Note: Percona Server already had these enhancements in 5.0 and 5.1. Oracle is nicely catching up). The necessary options have default settings that must be tuned to engage multicore activity.

Other third party storage engines have been used in MySQL including:

CLOUD DATABASES

Xeround Cloud Service Offers the XEROUND Storage Engine. It is ACID-compliant and a Whitepaper about it was released Feb 2012. The three storage engines supported are : XEROUND, MyISAM, and MEMORY.

8677 questions
3
votes
4 answers

Replicate main MySql db to a development server to play with real data

I have a main architecture with a MySql db, replication and backup, it's working fine. Now I also have a development server where I play with the code and I would like to use the data from the main db to play too, with reads and writes. How can I…
Bastian
  • 283
  • 3
  • 16
3
votes
3 answers

MySQL - Identifying a never ending, server crashing query

My server keeps crashing from OOM errors cause by MySQL. I am convinced there is a query on this site that is wrong, too long and causes this issue. My server and MySQL logs show very little strain until the spike and issue happens. I would really,…
maestrojed
  • 221
  • 2
  • 2
3
votes
4 answers

How to config mysql-server for heavy load

Im in the process of setting up a new database server. I have been running a few mysql database servers before and it has been working okay. But i would like to hear the recommended setup for my server. For example, what should i set the max…
Rasmus
  • 31
  • 1
  • 2
3
votes
1 answer

Restoring MySQL dump - ERROR 2006 (HY000)

I am just trying to restore a mysql dump. Below are the command and error message. Can anybody give me some clues how to approach this? 10:54:16 Restoring C:\Users\matcheek\Documents\dumps\Dump20120405-1.sql Running: mysql.exe…
matcheek
  • 231
  • 5
  • 14
3
votes
3 answers

I/O intensive MySql server on Amazon AWS

We recently moved from a traditional Data Center to cloud computing on AWS. We are developing a product in partnership with another company, and we need to create a database server for the product we'll release. I have been using Amazon Web Services…
rhossi
  • 33
  • 4
3
votes
1 answer

MySQL com_select?

I'm looking to tune my query cache a bit. According to 7.6.3.4. Query Cache Status and Maintenance in the manual: The Com_select value is given by this formula: Qcache_inserts + Qcache_not_cached + queries with errors found during the…
symcbean
  • 21,009
  • 1
  • 31
  • 52
3
votes
1 answer

DRBD Not starting on Fresh AWS 64-bit Ubuntu 11.10

I followed these instructions precisely (I've done this from scratch using 11.04 and 11.10 with the same results using AMI's ) (using 11.04) Community AMI: ami-e016ca89 https://help.ubuntu.com/11.04/serverguide/C/drbd.html and (using 11.10)…
Kladskull
  • 1,255
  • 5
  • 15
  • 32
3
votes
3 answers

What backup method should I choose to backup database on high-load server

I have a mysql (MyISAM) database with size around 30Gb. It has single large table (and some smaller ones but it makes no difference). It performs around 2000 selects (single row by primary key)/second, 300 updates/second and 50 inserts/second. We…
Poma
  • 1,299
  • 6
  • 24
  • 35
3
votes
3 answers

I can't connect to MySql from another machine

I have installed Apache, PHP, MySql on a Windows 2008 Server. The problem is that I am trying to connect to MySql from my home machine. I have enabled TCP/IP networking in the MySql Configuration Wizard and opened the port (3306) in the firewall…
Jesper
  • 153
  • 1
  • 1
  • 5
3
votes
1 answer

completely remove mysql-server from Ubuntu

I want to completely remove and re-install mysql on Ubuntu 11.10. I've tried removing it by running: apt-get remove --purge 'mysql-.*' But when I re-install it, the old databases are still there, so it obviously wasn't completely removes. How do I…
Dónal
  • 281
  • 6
  • 12
3
votes
1 answer

disable/delete phpmyadmin aws ec2 lamp

i am pretty new to dedicated hosting and aws cloud. i was able to setup my instance with a lamp stack and installed phpmyadmin, moved it away from the 'www' directory and gave it an alias in my httpd.conf but i've read that disabling all together…
t q
  • 253
  • 1
  • 5
  • 15
3
votes
1 answer

mysqldump doesn't export all records from table

I'm using mysqldump to move the database to another server. Everything works fine, except that mysqldump doesn't export all records from one table. The table contains about 500 records, and mysqldump exports only about 100 records. I've noticed…
3
votes
1 answer

How do you move MySQL's data directory?

Our I.T. dept would like me to configure a MySQL server to use a non-default data dir (/data). We're using MySQL 5.0.45-7.el5 on RHEL 5. What is the general procedure for doing that? Are there any caveats or gotchas I should know about before I get…
Agvorth
  • 2,459
  • 4
  • 29
  • 29
3
votes
0 answers

Cannot connect to MySQL on RDS (Amazon Web Services) from my laptop

I'm having some trouble connecting to a MySQL 5.1 server on an RDS instance on AWS from my laptop. The detailed description of the problem is here: https://forums.aws.amazon.com/thread.jspa?messageID=323397 In short: I have 2 MySQL servers, both…
Bruno Reis
  • 315
  • 3
  • 11
3
votes
3 answers

Multiple SSH sessions in a single command

I'm trying to copy a database from one server to another. I tried using the following command and it's getting tied up on entering the ssh passwords. If I put in one server's password, it complains about the other and vice versa. ssh root@server1…
Drew
  • 243
  • 1
  • 7