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 over ssh tunnel

I have a very strange problem with SSH Tunnel. I want to connect to a remote MySQL Server using an SSH Tunnel. I have created the tunnel with great success in the past, but for a strange reason it's not OK now. The Tunnel is created as: ssh…
Peter
  • 822
  • 2
  • 10
  • 23
3
votes
2 answers

yum install mysql-server.x86_64 - Transaction Check Errors

I think yum is having problems installing MySQL 5.1 because there is already a pre-existing MySQL 5.5 installation. I wanted to cleanly remove MySQL 5.5 (I had problems with 5.5 with PHP and Python). I removed every folder and file associated with…
hobbes3
  • 615
  • 2
  • 10
  • 23
3
votes
3 answers

MySQL Master-Master Replication Lag

I have configured two MySQL servers (MySQL-1, MySQL-2) in master-master replication in the same datacenter using a local backend connection with the following options: innodb_flush_log_at_trx_commit=1 sync_binlog=1 We use a load balancer to round…
Justin
  • 5,328
  • 19
  • 64
  • 84
3
votes
3 answers

Best my.cnf configuration for a 8GB MySQL server with MyISAM use only

I am preparing a large Drupal 6.x based installation and have setup a dedicated MySQL server with 8GB of RAM. Drupal 6.x uses only MyISAM engine and there will be around 500 concurrent users using the site through two web nodes. Here is a dump of…
Mohammad Emran
  • 195
  • 1
  • 2
  • 8
3
votes
3 answers

MySQL wants a password but it's empty

mysql -uroot ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) mysql -uroot -p Enter password: <-- leave blank, hit enter without entering anything mysql> <-- i am logged in NOTE: This is a…
gAMBOOKa
  • 999
  • 6
  • 19
  • 34
3
votes
2 answers

tc prio qdisc for priorization of mysql traffic

I am struggling with tc prio qdisc for a few hours now. I have read the lartc Documentation, Examples and HowTos, but this whole thing is kinda new for me and somewhat confusing :) So this is my scenario: A couple of fileservers serving a…
Niko S P
  • 1,182
  • 8
  • 16
3
votes
3 answers

Two server with same data in case one goes down

I actually own two linux web servers and I was wondering how I could make them work together in case one goes down. From what I found, cluster seems to be the closest, because it would replicate the data (for mysql as example) from srv1 to srv2, and…
Cyril N.
  • 624
  • 1
  • 10
  • 36
3
votes
3 answers

Good practices for backing up MySQL on a large scale

I am a newbie to DB and in particular to MySQL. Are there any good practices to backup MySQL on a large scale? For example, there are a few things I've already found. Use mysqlbackup (physical backup) instead of mysqldump. increase key_buffer_size…
com
  • 261
  • 2
  • 15
3
votes
1 answer

How to convert Mysql database to Postgresql in Linux?

I have a large Mysql database containing tens of tables which I need to convert to Postgresql. I have tried a couple of ancient Perl scripts which I found here and there but none of them did the job correctly. So wondering if there is any free and…
alfish
  • 3,127
  • 15
  • 47
  • 71
3
votes
0 answers

What are the risks of running a database on a server without ECC RAM?

A lot of branded servers come with ECC RAM, but it is expensive. For a database server or other critical servers, what would be the impact of not using ECC RAM? Data corruption? (I suppose the database software should handle this already,…
Howard
  • 2,135
  • 13
  • 48
  • 72
3
votes
3 answers

cannot start mysql 5.1 windows service under normal user account

MySQL 5.1 service can start under Local System account or Administrator User account. But MySQL 5.1 service cannot start under normal user account. It gives: Error 1067:The process terminated unexpectedly. What could be the issue?
Jordan
  • 31
  • 1
  • 2
3
votes
1 answer

MySQL max_allowed_packet greater than 1024 MB

I have a DB which is greater than 1GB (~1,4GB). The DB upload was stopped at 1GB, because, max_allowed_packet is 1073741824 (1GB). In file /etc/my.conf i set max_allowed_packet=2048M. How can I increase max_allowed_packet 1073741824 to bigger? Thank…
Nauris
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Logging mysql queries under MAMP Pro (MAC)

I am using MAMP Pro 2.0.5 (latest) and copied the my-medium.cnf file and placed it into /mamp/conf/ and renamed it to my.cnf under the [mysqld] i placed log = /Volumes/www/public/logs/mysql-queries.log to get the log going ( i want to log all…
Exploit
  • 165
  • 1
  • 5
3
votes
1 answer

Resetting root password for MySQL problems (Mac OS X Lion)

I've been trying to reset the root password, and have been following these instructions: [DEAD-LINK] However, when I use the command: /usr/local/mysql/bin/mysqld_safe --skip-grant-tables I receive the following output: 111217 10:00:42 mysqld_safe…
user1072337
  • 31
  • 1
  • 2
3
votes
3 answers

Copy MySQL to RAM as a poor man's memcached replacement?

What about this idea: I've got a 4GB MySQL database, with few UPDATEs. On system startup I copy it to RAM and run it from there. Every couple of hours or even on UPDATES, I dump it to disk. ...as a kind-of poor-man's replacement for revisiting all…
isync
  • 703
  • 2
  • 8
  • 20