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

How do I back-up a MySQL database from the command-line in CentOS?

I need to make a back-up of a database on CentOS 5.5, running MySQL server from the command line. Basically I need to export everything in it.
zozo
  • 783
  • 3
  • 11
  • 22
3
votes
2 answers

How can I put mysql databases in different disk partitions (linux - Ubuntu)?

Possible Duplicate: multiple file systems for mysql hi, How can I put mysql databases in different partition (linux - Ubuntu)? Thanks, yosef
Ben
  • 775
  • 4
  • 9
  • 19
3
votes
3 answers

mysqldump is not dumping my data

I am running mysqldump on Ubuntu Linux (10.0.4 LTS) my mySQL version info is: mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1 I used the following command: mysql -u username -p dbname > dbname_backup.sql However when…
oompahloompah
  • 101
  • 1
  • 2
  • 3
3
votes
3 answers

Is there a way to communicate DBMS with raw memory block or binaries

I am trying to communicate a numerical matrix operations library like LAPACK with any DBMS. Is it possible to send/receive complete matrices as binary or as a direct memory pointers to process them (it will be something like: The Outside library…
edgarmtze
  • 219
  • 1
  • 6
3
votes
4 answers

Transferring data between SQL Server and MySQL

We host a couple of SQL Servers where we are planning to upgrade the environment (still classic asp). We are looking whether to move to a LAMP (or WAMP) environment instead of just following the default route to .net. If we had a MySQL server and…
Dan
  • 783
  • 1
  • 13
  • 21
3
votes
2 answers

Cannot connect: Access denied for user '[user]'@'localhost' (using password: YES)

I'm trying to install a PHP-based tool which connects to a MySQL database, hosted on Ubuntu. I can log into the MySQL database from the command line, but running the app results in this error: Access denied for user '[user]'@'localhost' (using…
Dan
  • 135
  • 1
  • 3
3
votes
5 answers

Permanent SSH Connection via Bash Script?

I have two OpenSolaris servers. The remote server has a MySQL database. MySQL is configured with skip-networking; so, I can't access that database from the first server by simply using the hostname and port. I must have an ssh tunnel setup to…
Justin Noel
  • 576
  • 1
  • 5
  • 9
3
votes
4 answers

mysql 5.0.23 vs 5.5 performance benefits and upgrade issues?

I have been told that mysql 5.5 has a significant performance boost compared to 5.0 Our server handles a lot of data (around 30 million records processed per 5-10 seconds) and requires every drop of performance boost we can give. Will it be…
YD8877
  • 325
  • 1
  • 5
  • 11
3
votes
3 answers

We are moving to two servers from one server due to performance issues. How do we monitor the value of this change?

We are moving to two servers from one server due to performance issues. We are moving our MySQL DB to its own dedicated server and will keep the original machine as the front end machine running nginx/apache (Django backend.) How do we monitor the…
MikeN
  • 8,442
  • 5
  • 23
  • 18
3
votes
1 answer

Why is the MySQL query cache disabled by default?

I've a pretty simple question... Why is the MySQL query cache disabled by default? In most packaged versions of MySQL I've come across the defaults values are: query_cache_type = 1 query_cache_size = 0 This essentially disables the query cache by…
Coops
  • 6,055
  • 1
  • 34
  • 54
3
votes
4 answers

MySQL: how to convert many MyISAM tables to InnoDB in a production database?

We have a production database that is made up entirely of MyISAM tables. We are considering converting them to InnoDB to gain better concurrency & reliability. Can I just alter the myISAM tables to InnoDB without shutting down MySQL? What are the…
Continuation
  • 3,080
  • 5
  • 30
  • 38
3
votes
1 answer

Public Amazon RDS database?

Is there any way to add a wildcard security group to Amazon RDS? I'm trying to connect from an EC2 under the same account, but had no luck with the security groups. So I'm resorting to just opening it up for the time being.
miketucker
  • 31
  • 1
  • 2
3
votes
2 answers

Dual Quad Core Xeon CPU but still high load

I have a dedicated server with following specs: Two Intel Xeon-Harpertown 5430-Quadcore[2.66 Ghz] 4GB DDRII RAM 500GB SATAII HD CentOS 5.5 64-bit Problem is that even with such specs MySQL still takes high CPU usage. It almost remain above 150%…
Ali
  • 251
  • 1
  • 2
  • 9
3
votes
2 answers

Is it faster to create indexes before or after data loading in MySQL?

I have a data replication process that drops and recreates a few tables in a target database, then loads them up with data from a source database (running on another host, but that is immaterial to the question at hand). The target database does…
Josh Glover
  • 399
  • 1
  • 4
  • 9
3
votes
2 answers

How can I verify from the command line that all of the tables in my DB are InnoDB?

How can I quickly verify from the command line that all of the tables in my DB are InnoDB?
markdorison
  • 1,315
  • 2
  • 9
  • 7