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
1 answer

Optimizing a MySQL table for intense use

I have a table. Due to the nature of the website, in that table, if i have 400+ users or so, it will have in it inserted 100,000 new rows per hour. If i have near 4000 then for 2 hours or so, i will have a minimum of 500,000 rows inserted. This…
dikidera
  • 131
  • 1
  • 2
3
votes
2 answers

Why ibdata1 is still growing when I have used innodb_file_per_table in MySQL 5.1

All my table in the db are created after I enabled the option "innodb_file_per_table", so I don't understand why ibdata1 is still growing from time to time, even with a very slow speed.
Howard
  • 2,135
  • 13
  • 48
  • 72
3
votes
2 answers

Stress Testing Windows Server 2k8 Box

Let me start off by explaining why I want to do this. Everything was running fine. I imported a snapshot of a MySQL DB on another server in prep for setting up master-master replication (this one will become the primary in the array once it's…
ircmaxell
  • 1,201
  • 8
  • 20
3
votes
3 answers

How to check throughput (query per second) of a database?

I have PostgreSQL dbms. I want to check live throughput of the DBMS. I want to build a graph of throughput which will be updated every 10 seconds. How do I do that? Any suggestion for MySQL will also be helpful.
Rahul Prasad
  • 257
  • 3
  • 4
  • 9
3
votes
1 answer

LAMP memory management (CentOS)

First of all, I have to say I am not an expert in server administration. I have done web programming for 10+ years on several platforms, but have most of the time come to a readymade situation where there's IT professionals or a good web hosting…
3
votes
3 answers

Intermittent "Lost connection to MySQL server at 'reading initial communication packet'"

Our web environment consists of two servers. Web front-end. Dell PowerEdge R610, RHEL 5.5, Apache 2.2.17, php 5.2.14. Database server. Dell PowerEdge R710, Windows 2008 R2 Standard x64, MySQL 5.5.11-log x64. Normally these two work perfectly fine…
db2
  • 2,180
  • 3
  • 15
  • 19
3
votes
3 answers

How can I set up a mirror site of PHP & MYSQL between two distant sites?

I have a site which is located in US and I want to set up a mirror site in China, the site is using PHP + MYSQL and the network quality between two servers is terrible. I tried set up a database-sync between two mysql databases but, there will…
Felix Yan
  • 164
  • 1
  • 2
  • 13
3
votes
3 answers

Secure MySQL replication; SSL or SSH tunneling?

I have a Master-Master MySQL replication setup between two servers. I'm about to move one to another location, so replication will be over the Internet and will - of course - need to be secured. From what I can tell, I basically have two…
Andrew Ensley
  • 932
  • 2
  • 17
  • 30
3
votes
1 answer

MySQL-Proxy not loadbalancing

This is my current test setup: SQL0: 192.168.22.64 (master+slave) SQL1: 192.168.22.65 (master+slave) loadbalancer0: 192.168.22.66 loadbalancer1: 192.168.22.67 Virtual IP: 192.168.22.80 The Loadbalancers are connected to eachother using…
Tuinslak
  • 1,465
  • 8
  • 32
  • 56
3
votes
2 answers

When - if at all - should I switch from MySQL to MariaDB?

Now that MySQL is owned by Oracle, the future of the RDBMS seems uncertain. The fork by the main developer of MySQL, Monty Widenius, called MariaDB, is a drop-in replacement for MySQL. Version numbers match up of those two DB-Servers, and MariaDB…
polemon
  • 585
  • 2
  • 8
  • 21
3
votes
1 answer

MySQL InnoDB: how to switch to Barracuda format?

In new MySQL versions Barracuda file format was introduced. So I havew a few questions: Is it working only with file_per_table option? How to switch existing system to it (preferably the whole tablespace) other than by reimporting everything from…
Vladislav Rastrusny
  • 2,671
  • 12
  • 42
  • 56
3
votes
1 answer

ERROR: The partition with /var/lib/mysql is too full!

Possible Duplicate: ERROR: The partition with /var/lib/mysql is too full! Hi I am running in a problem here I have a linux instance running on EC2. All was working fine till last night. Today morning it showed me some error stating that there…
jimy
  • 177
  • 2
  • 3
  • 8
3
votes
3 answers

Why is it advised give mysql user root@localhost a password?

When I installed the MySQL server RPM I got this message: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! If I can only use the mysql root user from localhost (i.e after logging in over SSH), how does a password provide any additional…
Tom
  • 731
  • 3
  • 11
  • 24
3
votes
1 answer

Mysql InnoDB optimisation

(asked on stackoverflow but was suggested to move here!) I'm having some trouble understanding InnoDB usage - we have a drupal based DB (5:1 read:write) running on mysql (Server version: 5.1.41-3ubuntu12.10-log (Ubuntu)). Our current Innodb…
DOS
  • 33
  • 1
  • 3
3
votes
2 answers

Using mysqldump from 5.1 package to backup data from 5.0 server?

I've ran into problems trying to backup data from table City in world database from mysql 5.0 server on local network: mysqldump --tab=/home/developer/Desktop -u developer -h 192.168.10.196 -p world City I'm getting this error: Not dumping…
Stann
  • 523
  • 2
  • 7
  • 16