Questions tagged [mysql]

MySQL 8.0 is End Of Life on April 30, 2025. 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.

8796 questions
3
votes
3 answers

How I mirror a MySQL database on demand?

How I make a local MySQL database update a mirror on internet all the time it is possible?
speeder
  • 133
  • 1
  • 5
3
votes
3 answers

Suggestions for spatial database systems

I'm looking for suggestions on a database for large sets of spatial master data. The data itself is not relational, but could be formulated as such. The data as-is is structed as: latitude, longitude, time-series ("array" of ints) Currently, we are…
Catamount
  • 31
  • 1
3
votes
2 answers

Saas application, is managing seperate mysql db's per client pretty straight forward?

When it comes to managing a database, its obviously easier to manage a single database that has all customer data in it (multi-tenant). If I was to create the application with a single client in mind, meaning that each new client means that will…
Blankman
  • 2,961
3
votes
4 answers

How can I create a slave replica of a MySQL server without stopping the master?

To ensure the data on the slave and master are in the same place for replication, the new master should be stopped and data transferred to the new slave before starting the master again, at least this is one option. How can I start replication of a…
3
votes
1 answer

How does MySQL expires the cache?

Suppose the memory is enough, how does MySQL determine whether to fetch from cache or re-query?
db2
3
votes
1 answer

MySQL's innodb_file_per_table and "too many tables"

I'm running MySQL (5.0 but I don't think it matters for anything after 4.1) and I've seen advice about using the innodb_file_per_table configuration option for InnoDB tables. This is usually done so you can better control how much disk space is used…
mpeters
  • 233
3
votes
2 answers

MySQL's "explain select" for Microsoft SQl Server?

Is there something similar to MySQL's "explain select" functionality for MSSQL 2008? From MySQL's documentation: •When you precede a SELECT statement with the keyword EXPLAIN, MySQL displays information from the optimizer about the query execution…
jftuga
  • 5,861
  • 4
  • 45
  • 52
3
votes
2 answers

MySQL CURTIME() is always 00:00:00

I have a MySQL server installed on Solaris 10u8. Until recently, everything was working fine. Then all of a sudden, the current time according to MySQL is always 00:00:00. CURDATE() seems to work fine except that the time it gives is still 00:00:00.…
jamesbtate
  • 567
  • 2
  • 6
  • 16
3
votes
2 answers

Best approach to design this MySQL big database

I'm planing to design a database that contains only 2 tables (stats1 and stats2), but, this tables will contain rows going to 40 000 000 records! All the records will be "positive/unsigned" integers. MySQL client version: 5.0.91 Here's some info…
numediaweb
  • 134
  • 5
3
votes
1 answer

Run multiple instances of MySQL on the same server ( with replication)?

we have a current dedicated box with 8 GBs of RAM ( dual quad core CPU) and our DB has grown over 17 GBs ( over 3 DBs for our application ). Im assuming this is reason enough to move to a machine that has more memory ( putting sharding aside ). The…
Prem
  • 31
  • 2
3
votes
1 answer

PDO_mysql for mac

Has anybody gotten PDO_mysql working on the default PHP installation on a mac? It works with MAMP but that's inconvenient. I'm developing for Zend Framework and mysql, and Zend_db uses PDO. The default php doesn't come with PDO_mysql.
GoatRider
  • 201
3
votes
2 answers

MySQL LOAD DATA INFILE user privilege settings

I understand that users must have FILE privilege on *.* in order to use the LOAD DATA INFILE command without using LOCAL —which sends the file data through the client—but when GRANT ing FILE privilege to a MySQL user, how can you restrict the…
Lèse majesté
  • 379
  • 1
  • 3
  • 11
3
votes
3 answers

Which FTP Daemon should I use if I want to use MySQL for authentication?

We want to set up a FTP Daemon on our Ubuntu 10.04 server that can use a simple (probably custom) built web interface for a FTP server using MySQL for authentication. It'll be public facing but only intended for use by a few customers or clients. I…
wag2639
  • 2,175
3
votes
1 answer

Handler_read_rnd is too high (more than 2GB)

I am running an advertising program and there are some SELECT, UPDATE and DELETE queries when showing ads. Sometimes, displaying ads is fast but sometimes it is too slow. At this time, it is slow and Handler_read_rnd and Handler_read_rnd_next is as…
Prasad N
  • 145
  • 1
  • 2
  • 7
3
votes
1 answer

MySQL & tmpfs : performance

I was wondering if, and how much, using tmpfs could improve MySQL performance and how it should be done ? My guess would be to do mount -t tmpfs -o size=256M /path/to/mysql/data/DatabaseName , and to use the database normally but maybe I'm wrong…
Serty Oan
  • 855
1 2 3
…
99
100