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

Should I have one MySQL instance for all our apps, or one instance for each?

We're a small startup and I need to setup several applications, almost all of which require a database. I face the choice of setting up one instance of MySQL, with one database for each of our applications, or of setting up a separate instance of…
lindelof
  • 919
  • 1
  • 8
  • 11
3
votes
3 answers

The MySQL service is in the status "starting" on windows

I have several months working to "MySQL-5-1-47" on windows 2003. When I restarted, the service "MySQL" stay in this state "starting". The only way to raise the service was running the program directly: C:\Program Files\MySQL\MySQL Server…
andres descalzo
  • 209
  • 2
  • 4
  • 11
3
votes
3 answers

Using Truecrypt to secure mySQL database, any pitfalls?

The objective is to secure my database data from server theft, i.e. the server is at a business office location with normal premises lock and burglar alarm, but because the data is personal healthcare data I want to ensure that if the server was…
Saul
  • 281
  • 3
  • 9
  • 17
3
votes
3 answers

MySQL replicate structure only

Can I set up MySQL as a slave only replicating structure changes? (CREATE / ALTER TABLE etc.). I've got 2 reasons for this: Multiple developers with development branches in code which should always work with a 'fresh' datastructure, fetched from a…
Wrikken
  • 981
  • 9
  • 22
3
votes
1 answer

MySQL thread get stuck in end-state

One of our replication master production servers is showing some really odd behavior for which I can't seem to find a solution. Some threads on this server get stuck in state 'end'. This happens purely random, but when this occurs the thread is…
3
votes
3 answers

Error connecting to remote MySQL server [ERROR 1042 (HY000): Can't get hostname for your address]

I have MySQL 5.5 Server setup on a Windows machine. I am able to connect to the server from console / app running on the same machine but not from a remote machine. While connecting using the following command: mysql -h xx.xx.xx.xx --port=3306 -u…
M.N
  • 337
  • 3
  • 7
  • 15
3
votes
1 answer

mysql dump of table limit 100

I want to take a dump of a database, but the condition is to have only 100 records from each table in the DB?
bvishal4u
  • 316
  • 1
  • 3
  • 7
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
  • 4
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…
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,891
  • 10
  • 39
  • 68
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…
davidmytton
  • 666
  • 3
  • 7
  • 17
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
  • 2
  • 11
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,731
  • 4
  • 42
  • 51
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
  • 14