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
1 answer

Processor selection for MySQL database

I'm currently planning to purchase a server for our MySQL database. I'm deciding whether to get an Intel 2 x quad core Core2Duo processor or 2 x dual core Xeon. Any feedback will be appreciated.
FrancisV
  • 1,766
  • 3
  • 16
  • 18
3
votes
3 answers

Which is faster? 4x10k SAS Drives in RAID 10 or 3x15k SAS Drives in RAID 5?

I am reviewing quote for a server upgrade. (RHEL). The server will have both Apache and MySQL on it, but the reason for upgrade is to increase DB performance. CPU has been upgraded massively, but I know that disk speed is also a factor. So RAID 10…
Jon M
  • 457
  • 1
  • 6
  • 11
3
votes
2 answers

Can't Repair Mysql Table

I have one ARCHIVE table that I simply can't repair, I already try to remove the partitioning but still get this error: alter table promo_tool_view_44 REMOVE PARTITIONING; ERROR 1034 (HY000): Incorrect key file for table 'promo_tool_view_44'; try to…
Pedro
  • 667
  • 2
  • 9
  • 20
3
votes
5 answers

Where is the best place to download old versions of MySQL server

I'm restoring an old server, and I need a copy of MySQL 4.1 for windows. MySql.com only seems to have versions going back to 5.0. I've seen old versions elsewhere, but they all seem to be from fairly sketchy websites. Is there a good unofficial…
DrFredEdison
  • 261
  • 4
  • 12
3
votes
1 answer

Mysql auto_increment reset WITHOUT rebuilding index?

There just HAS to be a way to reset the auto_increment value on a table without rebuilding the entire index. I have a table with over 2 billion rows in it that accidentally got an ID inserted into it near 4.2 billion. From past experience I know…
Sean
  • 379
  • 2
  • 3
  • 8
3
votes
5 answers

Alternative to multiple WordPress installs (and not using WordPress-mu)

I run several instances of WordPress on a server for managing blogs across multiple domains (also hosted on the same server). Some domains are even utilizing multiple WordPress instances just as subdirectories. What is the best way of implementing…
warren
  • 18,369
  • 23
  • 84
  • 135
3
votes
3 answers

sudo apt-get install mysql-server fails

I'm coming from a fresh install of Ubuntu server 9.10 and trying to install mysql-server by using 'sudo apt-get mysql-server' I get the following errors: dan@dev:~$ sudo apt-get install mysql-server [sudo] password for dan: Reading…
danwoods
  • 131
  • 1
  • 3
3
votes
2 answers

There is no replication in a HA Cluster

I had the problem of unrelated data aborting in a HA cluster and my Mysql resource was in standalone on both nodes, I managed to solve the problem and both nodes are synchronized, the problem now is that when checking the var/lib/mysql directory On…
Iván Jf
  • 111
  • 5
3
votes
2 answers

Why is MySQL Replication so complicated?

It seems so simple: I have two servers running MySQL, one has a nice big database of important stuff, the other is an empty shell ready to be used as a replication slave. These are the steps I should need to take to set up replication: Add a user…
Jimmy
  • 293
  • 3
  • 7
3
votes
4 answers

Server uses 100% swap after fresh mysql installation

I set up a new server with 220G RAM and Ubuntu 22.04.1 LTS. After installing MySQL I changed the mysql config to: innodb_buffer_pool_size = 170G innodb_buffer_pool_instances = 64 innodb_buffer_pool_chunk_size = 134217728 innodb_log_file_size =…
Zystrix
  • 31
  • 2
3
votes
2 answers

How to find joins performed without indexes?

I run a WordPress website on Mariadb 10.6, and recently I saw an error Joins performed without indexes in Mysqltuner. Although the number is not very large, Mysqltuner recommends that you keep increasing the Key_buffer_size. However, my VPS doesn't…
Junuk
  • 33
  • 3
3
votes
1 answer

MariaDB using much more memory than it should

We are using MariaDB 10.3.32 on a Ubuntu 20.04.4 machine with 6 GB of memory, about 20 applications running on it. Databases are all InnoDB. Even with mostly default settings (see on the bottom), memory usage increases from day to day, seemingly…
rofire
  • 31
  • 1
  • 4
3
votes
1 answer

mysqld fails to start due to InnoDB

I did install MariaDB on MX Linux, my system info below : System: Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64 root=UUID= ro quiet splash …
chepakwak
  • 51
  • 1
  • 3
3
votes
1 answer

File (FRM) not found? Cant view the tables?

I have 2 version of database backup. Mysqldump > db_backup.sql & FRM files (tables files) The db_backup.sql file is corrupted; it is 0 KB. I think I can't help with it anymore. Now I only have the FRM files. After I copy all the FRM files to my…
deadman
3
votes
2 answers

Tuning mysql's query cache

I'm looking into tuning the query cache on mysql on my VPS [a 360MB setup]. When I started, it was set at 32MB, and I was getting a non-trivial amount of qcache_lowmem_prunes. I added a cronjob to run FLUSH QUERY CACHE periodically, which helped,…
Mikeage
  • 2,741
  • 6
  • 26
  • 37
1 2 3
99
100