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
2 answers

How can I determine how much memory my MySQL server needs?

I have a virtual server just for MySQL for a handful of apps. It's a 256 MB server. There is currently barely any data in there, but free -m shows full memory usage: total used free shared buffers cached Mem: …
John Bachir
  • 2,364
  • 7
  • 29
  • 37
3
votes
1 answer

File not found error with mysqlimport

I'm setting up a local database for gene annotation following the instructions on this page. They provide an .sql file to create some MySQL table structures (step 4) and several data files to populate the tables (steps 5-7). I've completed the setup…
Daniel Standage
  • 247
  • 1
  • 3
  • 9
3
votes
1 answer

Replication of multiple masters to a single slave server

I am running MySQL 5.1.36 in all my servers. I want to replicate database_A from master_host_A and database_B from master_host_B into a single slave server. All the three MySQL servers are remotely located. Is it possible for me to setup…
Supratik
  • 2,154
  • 10
  • 51
  • 66
3
votes
3 answers

what causes slow ssh connection and slow mysql connection on local server?

There's a huge latency when I try to connect to our server (Ubuntu server 192.168.53.1) through SSH from a client PC (windows 7 + putty: 192.168.53.X) in a LAN. It takes like a minute for the password prompt to show up. There's also a huge latency…
yens resmann
  • 133
  • 1
  • 3
3
votes
1 answer

what is a mysql 'packet', anyway

Mysql 5.1: if we want to use very large blobs, apparently we need very large packets, configured identically on both ends. How large can we go before something explodes? See this.
bmargulies
  • 2,333
  • 3
  • 17
  • 20
3
votes
2 answers

What are some reasons why a MySQL index would be 12X the size of the table?

So we have a table that has two indexes one on the primary key and one other index on another column on the table. The index size is currently 12X larger than the table itself. What are some reasons why this would happen? We've optimized the table…
Jon
  • 151
  • 4
3
votes
1 answer

The cost of MySQL filesort and what's the solution?

I'm new to optimizing MySQL (cheers for having a high traffic site!) and I'm a little confused by filesort. I stumbled onto this article: http://www.mysqlperformanceblog.com/2009/03/05/what-does-using-filesort-mean-in-mysql/ with some quick google…
Ben
  • 3,800
  • 18
  • 65
  • 96
3
votes
2 answers

Login blackout for MySQL

Between 9pm and 6am I run automated jobs to update our databases, and I want to disable a specific list of users from logging into MySQL.
Edward
  • 449
  • 3
  • 12
3
votes
3 answers

Mysql replication using drbd and heartbeat

I am setting up a backup server for an already existing Ubuntu server setup. I'm running DRBD (protocol C) together with heartbeat, which is configured so that in case of an error the MySQL5 Server on the backup server starts. I want to start the…
user58513
3
votes
2 answers

Where can I get php_mysql.dll for Windows?

I just installed Apache 2.2.17, PHP 5.2.14, and MySQL 5.1.51 on Windows XP. Apache is working and is loading PHP properly, but when I try to connect to MySQL, I get "Fatal error: Call to undefined function mysql_connect()". After some googling, I…
Graeme Perrow
  • 555
  • 1
  • 4
  • 16
3
votes
2 answers

How to set up multiple web and database servers?

My websites have been growing in terms of traffic and the load on the mysql has been increasing. I wanted a solution that would help deal with the increased load on mysql (all queries already optimized) because of the increase in traffic + backup…
3
votes
1 answer

PostgreSQL or MySQL for shared hosting

I want to offer SQL shared hosting for customers. Ideally I'd like: access isolation (one user shouldn't see information about other user's databases) SQL disk space quota per SQL user ability to limit or deprioritize CPU usage of intensive queries…
user55488
  • 31
  • 1
3
votes
3 answers

set open_files_limit

When I set open_files_limit = 16k in both: /etc/security/limits.conf and /etc/mysql/my.cnf ulimit -n 16344 but in mysql: show variables like 'open_files_limit'; open_files_limit: 4096 So how does mysql calculate open_files_limit. Is there…
Mario Michelli
  • 131
  • 1
  • 1
  • 3
3
votes
2 answers

Memory leak issue in Centos5

I recently just bought a dedicated server as an upgrade for a small community site from the shared hosting we have had for the last 3 years. I had installed httpd, php and mysql (the usuals for a webserver). I configured httpd for a few virtual…
mNova
  • 33
  • 2
3
votes
4 answers

the right Servers architecture for a large facebook application?

We are a group of 3 students, we created a facebook application with more than 753,320 active users right now, application hosted on LAMP 1&1 server : - AMD Opteron 1352 4 x 2,1 GHz - 4 GB RAM. - 2 x 750 Go (RAID 1 Hardware). - Connection : 100…
Hamza
  • 264
  • 1
  • 5
  • 15