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

MySQL Slave Health Check

I am working on a project like creating database config on fly , got an array of read replicas for mysql instance and keeping one open connection to each and keeping their statics in that service so when a client tries to connect a read replica than…
Kevin Lee
  • 93
  • 1
  • 5
3
votes
3 answers

Export massive MySQL database, from a shared level hosting account

I need to export a huge database, with thousands of tables and millions of rows. I'm on shared hosting so I can't use command line exports, and I really have no easy way to get to this data other than through phpMyAdmin or php. cPanel's default…
Cyclone
  • 206
  • 3
  • 8
3
votes
1 answer

Postfix Add Custom Header Based on MySQL Result

I have a quick question about accessing a MySQL database via Postfix and adding a custom header to an email based on the result. So we have setup an Ubuntu server with Postfix which is using a MySQL DB for virtual addresses, now my question is this:…
thiesdiggity
  • 437
  • 1
  • 9
  • 22
3
votes
2 answers

multiple mysql processes caused DB table to crash

My website has several PHP+MySQL applications. I noticed my website has been very unstable after I installed Limesurvey. myisam tables crashed every 3-4 days. I copied mysql logs here: 110812 04:10:47 mysqld started 110812 4:10:47 [Note]…
user895701
  • 31
  • 2
3
votes
2 answers

upgrade ubuntu 9.04

I have a production server running Ubuntu 9.04 with LAMP stack. I need to update the server to Ubuntu 10.10 but I am afraid it will also upgrade the MySQL, Apache and PHP packages. Can I upgrade Ubuntu 9.04 Server without affecting MySQL and Apache2…
Jericho
  • 31
  • 1
3
votes
1 answer

MySQLWorkbench Connection Problems

I have problems connecting to my MySQL server using MySQLWorkbench. I believe it's some type of permissions issue, to ensure I am able to use this, can you help me with the necessary setup steps? I have done the following: Setup a user called…
3
votes
1 answer

InnoDB erratic performance

I'm doing some tests with a really simple InnoDB table (named Test) with the following structure: Id int(10) unsigned NOT NULL AUTO_INCREMENT UserId int(10) NOT NULL Body varchar(512) COLLATE utf8_unicode_ci NOT NULL CreatedAt datetime NOT NULL one…
user257938
  • 31
  • 1
3
votes
2 answers

Why mysql cluster does not use multiple cores of the CPU?

I have a problem with the ndbmtd process. When I use following configuration I expect both cores on our server with Intel(R) Pentium(R) CPU G6950 @ 2.80GHz will be fully utilized. Unfortunately this is not happening. Only core with id=0 is used.…
John
  • 1,493
  • 3
  • 26
  • 46
3
votes
1 answer

Best Way to store sessions in a High Availability / High Performance way in Multiple Server Environment

I have an application (Magento) that has an abstracted session storage layer. I'm trying to visualize the best way to store sessions. mysql Database? I'm thinking a dedicated database with a very large innodb_buffer_pool_size so its basically like…
Bryan Ruiz
  • 131
  • 3
3
votes
1 answer

MySQL table does not exist

I am getting following error in err file. 110803 6:51:26 InnoDB: Error: table `ims`.`temp_discoveryjobdetails` already exists in InnoDB internal InnoDB: data dictionary. Have you deleted the .frm file InnoDB: and not used DROP TABLE? Have you used…
Phanindra
  • 203
  • 1
  • 4
  • 11
3
votes
2 answers

MySQL won't start in MAMP server

I had MAMP successfully running in one of the user, but since I have created a new user to separate things between two developers, its throwing tantrums. I am pretty new to Mac itself but managed to find users with similar problems. In my old user,…
Aman Alam
  • 149
  • 1
  • 7
3
votes
3 answers

How to detect if InnoDB has pool size big enough?

I found out how much the innodb pool size has allocated memory from show innodb status but I couldn't figure out how much actually it uses. Maybe it needs more or I can take some memory off from it? How to find it out? Oh and one question, as I'm…
Rihards
  • 769
  • 2
  • 12
  • 22
3
votes
1 answer

mysql server restarts every 30 seconds

I'm running Ubuntu 10.10 and mysql server keeps restarting, every 30 seconds or so. If I tail /var/log/syslog I get the following: Jul 26 11:41:57 ubuntu init: mysql post-start process (7981) terminated with status 1 Jul 26 11:41:57 ubuntu kernel:…
Dave Harding
  • 141
  • 1
  • 6
3
votes
2 answers

Better alternative to mysqldump

Is there a better (free) alternative to mysqldump? Because lately i'm having problems with corrupted database dumps. Mysqldump creates faulty sql code and when trying to restore the DB it fails with a lot of sql errors So is there something better?
Gabriel
  • 193
  • 1
  • 8
3
votes
2 answers

Best Mysql DB Engine When Insert update delete query is not made

What should be the best Mysql db engine When query like Update, Insert, Delete are barely made (99% of time are not made) The database has a lots entry mainly numeric data type, the select query are based on conditional statement which compares…
Isdev
  • 207
  • 1
  • 2
  • 5