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
22
votes
2 answers

Best MySQL cache settings for 8gb RAM dedicated MySQL server using only InnoDB (5gb database)

I'm a pretty big noob when it comes to setting up MySQL for performance. And honestly I'm not worried about the fine tuning to squeeze every last bit of performance out of MySQL, but I do know that the most important thing to do that provides some…
billmalarky
  • 323
  • 1
  • 2
  • 4
22
votes
3 answers

How can artificially create a slow query in mysql?

I'm giving a hands on presentation in a couple weeks. Part of this demo is for basic mysql trouble shooting including use of the slow query log. I've generated a database and installed our app but its a clean database and therefore difficult to…
Gray Race
  • 853
  • 3
  • 11
  • 22
22
votes
3 answers

Which MySQL users have access to a database?

How can I tell which MySQL users have access to a database and what privileges they have? I seem to be able to get this information from phpMyAdmin when I click "Privileges". . . Users having access to "mydatabase" User Host …
Philip Durbin
  • 1,591
  • 2
  • 15
  • 24
22
votes
3 answers

Is there any way to disable grouping databases in phpMyAdmin?

If you have db names like test_db1 test_db2 phpmyadmin would create a group test. The group appears in the left side-bar with related databases displayed under it. How can I disable this feature?
Eugene Yarmash
  • 2,433
  • 5
  • 34
  • 54
22
votes
4 answers

Can MySQL effectively take advantage of 64 GB RAM?

We have been running into a problem where querying a table that has approximately 50 million rows, and has an index size of 4 GB (table size of about 6 GB) results in the database server swapping memory, and slowing down dramatically. I'm pretty…
Galen
  • 323
  • 2
  • 5
22
votes
8 answers

Where does MySQL store its database files on OS X?

As I would like to move those files from one server to another server, while the database is offline.
Alessandro Vernet
  • 557
  • 2
  • 4
  • 9
22
votes
5 answers

Allowing wildcard (%) access on MySQL db, getting error "access denied for ''@'localhost'"

I've created a database and a user, and allowed access via the following: create user 'someuser'@'%' identified by 'password'; grant all privileges on somedb.* to 'someuser' with grant option; however, when I try to connect to MySQL I get the…
Wayne Molina
  • 915
  • 4
  • 13
  • 24
21
votes
6 answers

Fatal error: Can't open and lock privilege tables: Table storage engine for 'user' doesn't have this option

This error message shows up when I use ubuntu 16.04 and the latest mysql 5.7.19-0ubuntu0.16.04.1 in a Docker image. What could be done to fix this? To reproduce the error Get the Dockerfile: FROM ubuntu:16.04 RUN apt update RUN…
Wolfgang Fahl
  • 593
  • 1
  • 6
  • 14
21
votes
1 answer

Access to MySQL server via VirtualBox

I am trying to get MySQL server (which is inside VM) to respond to client (which is on the host machine). All methods return same: Host '10.0.2.2' is not allowed to connect to this MySQL server I have ensured proper port forwardind. I also ensured,…
defance
  • 313
  • 1
  • 2
  • 8
21
votes
4 answers

Out of resources for mysqldump

I'm trying to do a mysqldump on a Windows server and I get the following error message : mysqldump: Got error: 23: Out of resources when opening file '.\db\sometable.MYD' (Errcode: 24) when using LOCK TABLES Here's the command I'm running :…
Philippe Carriere
  • 313
  • 1
  • 2
  • 9
20
votes
3 answers

Highest value of max_connections in AWS RDS micro instance

Currently, the value for the max_connections parameter in a MySQL RDS t1.micro server model is {DBInstanceClassMemory/12582880} is 32. Since my server does not allowing any more connections after 32, what is the Maximum safe value for…
Straw Hat
  • 345
  • 1
  • 3
  • 12
20
votes
3 answers

Cant connect to mysql using self signed SSL certificate

After creating a self-signed SSL certificate, I have configured my remote MySQL server to use them (and SSL is enabled) I ssh into my remote server, and try connecting to its own mysqld using SSL (MySQL server is 5.5.25).. mysql -u -p --ssl=1…
carpii
  • 541
  • 2
  • 4
  • 12
20
votes
5 answers

Is MySQL supposed to be installed alone

I often hear people making statements such as "our MySQL server machine failed", which gives me the impression that they dedicate a single machine as their MySQL server (I guess they just install the OS and only MySQL on it). As a developer not a…
sameold
  • 993
  • 3
  • 11
  • 20
20
votes
4 answers

Store the MySQL client password, or setup password less authentication

I am using the mysql command line client and I do not want to need to provide the password every time I start the client. What are my options?
Trip
  • 401
  • 3
  • 6
  • 9
20
votes
4 answers

Should I worry about mysql sleep status process in processlist

During website operation, in mysql process list, I see a couple of processes with the "command" column marked as "SLEEP". Should I worry? How to stop this?
Hao
  • 525
  • 2
  • 8
  • 17