Questions tagged [mysql]

MySQL 8.0 is End Of Life on April 30, 2025. 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.

8796 questions
3
votes
2 answers

MySQLadmin drop database - bash script

I have a bash script which downloads a sql.gz file, extracts it and then import it, however before importing, I drop the existing DB, then import the new DB onto the server. All is well and the script does what it is supposed to, only one thing : I…
Mutahir
  • 2,377
3
votes
2 answers

Login blackout for MySQL

Between 9pm and 6am I run automated jobs to update our databases, and I want to disable a specific list of users from logging into MySQL.
Edward
  • 449
3
votes
3 answers

Mysql replication using drbd and heartbeat

I am setting up a backup server for an already existing Ubuntu server setup. I'm running DRBD (protocol C) together with heartbeat, which is configured so that in case of an error the MySQL5 Server on the backup server starts. I want to start the…
user58513
3
votes
2 answers

MySQL: Weird log message in the slow queries log

I found in the slow queries log there are a bunch of these logs, what exactly does it mean? It looks like mysql is keep restarting itself? I'm using mysql 5.0.77. Any idea what might be causing this? Thanks! /usr/libexec/mysqld, Version: 5.0.77-log…
fei
  • 131
3
votes
2 answers

Where can I get php_mysql.dll for Windows?

I just installed Apache 2.2.17, PHP 5.2.14, and MySQL 5.1.51 on Windows XP. Apache is working and is loading PHP properly, but when I try to connect to MySQL, I get "Fatal error: Call to undefined function mysql_connect()". After some googling, I…
3
votes
2 answers

How to set up multiple web and database servers?

My websites have been growing in terms of traffic and the load on the mysql has been increasing. I wanted a solution that would help deal with the increased load on mysql (all queries already optimized) because of the increase in traffic + backup…
3
votes
1 answer

PostgreSQL or MySQL for shared hosting

I want to offer SQL shared hosting for customers. Ideally I'd like: access isolation (one user shouldn't see information about other user's databases) SQL disk space quota per SQL user ability to limit or deprioritize CPU usage of intensive queries…
3
votes
3 answers

set open_files_limit

When I set open_files_limit = 16k in both: /etc/security/limits.conf and /etc/mysql/my.cnf ulimit -n 16344 but in mysql: show variables like 'open_files_limit'; open_files_limit: 4096 So how does mysql calculate open_files_limit. Is there somewhere…
3
votes
2 answers

Memory leak issue in Centos5

I recently just bought a dedicated server as an upgrade for a small community site from the shared hosting we have had for the last 3 years. I had installed httpd, php and mysql (the usuals for a webserver). I configured httpd for a few virtual…
mNova
  • 33
3
votes
4 answers

the right Servers architecture for a large facebook application?

We are a group of 3 students, we created a facebook application with more than 753,320 active users right now, application hosted on LAMP 1&1 server : - AMD Opteron 1352 4 x 2,1 GHz - 4 GB RAM. - 2 x 750 Go (RAID 1 Hardware). - Connection : 100…
Hamza
  • 264
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
  • 291
  • 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
  • 991
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
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 2 3
…
99
100