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

Can't turn on MySQL log for slow queries

I'm trying to log MySQL slow queries, but I can't turn it on, I will explain all my steps: I Edit my.cnf and add the following lines long_query_time = 1 slow_query_log_file = /home/mysql/slow_queries.log slow_query_log = 1 Give mysql user…
Pedro
  • 667
  • 2
  • 9
  • 20
3
votes
2 answers

Why are binlogs on by default in MySQL 8 and will they be deleted automatically?

We recently discoverd that in MySQL 8 default configurations, binlog.* files clutter up in /var/lib/mysql on Ubuntu 20.04 machines. i.e. we have a 4.2 GB database size and around 500 MB binlogs per day. Because of this we run low in disk space. Sure…
Alex
  • 676
  • 1
  • 14
  • 37
3
votes
1 answer

MySQL is not using my certificate, uses its own self-signed

I have tried to find an answer to this and I have come up empty. I have a certificate from LetsEncrypt that I use for all my SSL needs. It is valid for all the DNS names that I am trying to use. Today I tried to get it working for MySQL, but MySQL…
elyograg
  • 239
  • 1
  • 11
3
votes
2 answers

MySQL - Select queries 10x slower on Azure VM vs on-prem VM

We have been working on a project to migrate a MySQL database from an on-premise Linux server to a Windows VM on Azure (IaaS). (There's a specific reason because of which we have gone with the IaaS option instead of the Azure MySQL PaaS…
3
votes
1 answer

Connecting to AWS mysql with mysql front software

I'm trying to connect to my mysql server on aws ec2 ubuntu. I put in the public DNS for the server and user and password for root. I can't get in, is there something special I have to do on the server side regarding ports or something? Thanks.
Jourkey
3
votes
0 answers

MySQL 8 InnoDB taking a long time to start

I upgrade some month ago from Ubuntu 18.04 to 20.04. So MySQL upgrade from 5.7.33 to 8.0.23. I notice after the upgrade that MySQL is slow to start. 2021-02-24T09:20:16.972632Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user
Inglebard
  • 153
  • 3
  • 7
3
votes
3 answers

Open mysql only to localhost and a particular address

My config: ubuntu server 9 and msyql 5 my.cnf = bind-address = 0.0.0.0 my iptables script = iptables -A INPUT -i eth0 -s 99.88.77.66 -p tcp --destination-port 3306 -j ACCEPT I can connect from any place to mysql, not only that IP. I made a…
Rodrigo Asensio
  • 259
  • 2
  • 9
3
votes
1 answer

Delete AWS RDS S3 Exported Snapshots

So I have created S3 Exports from existing snapshots in RDS. I would like to delete duplicated ones. But I don't see any button to delete them. I have already deleted the files from the bucket. But the entry still shows up. Any idea how to delete…
feco
  • 131
  • 2
3
votes
2 answers

Importing old mysql database dump into MariaDB docker container fails: Table 'user' already exists

I'm trying to import an older (~version 5) server into a MariaDB docker container. I created a dump using the mysqldump command (with --all-databases), and when I try to import it I get the following error: ERROR 1050 (42S01) at line 2071: Table…
dkd6
  • 155
  • 1
  • 9
3
votes
1 answer

How to skip-name-resolve in Mysql8 and use IPs instead?

I'm trying to disable the DNS name resolving as I have many other servers connecting to the central database. The DNS resolving is slow and can apparently be disabled like this: [mysqld] pid-file = /var/run/mysqld/mysqld.pid socket =…
Houman
  • 1,545
  • 4
  • 22
  • 36
3
votes
4 answers

Resetting salted Drupal admin password

Have an old VM with Drupal configured on it, and I can't recall the admin password. The password-recovery process sent me a link to reset the password, but the page generated said "Access Denied". I then tried directly editing the Drupal users table…
hewhocutsdown
  • 273
  • 4
  • 13
3
votes
3 answers

Segmentation fault on login to mysql

I recently did a fresh install of Ubuntu on my laptop (HP dv7, AMD Dual Core with 4 gigs RAM). I am working on installing my development environment and tools and one of the first things I was working on is getting MySQL installed. The following…
numberwhun
  • 131
  • 1
  • 3
3
votes
4 answers

mysqld crashing almost every hour - mysqld invoked oom-killer

I am running wordpress on a centOS digital ocean droplet my mysql keeps crashing almost every hour -- with an out of memory error manually restarting mysqld brings it back up via sudo service mysqld restart Does anyone know what could be causing…
Alicia R
  • 31
  • 1
  • 6
3
votes
1 answer

MariaDB table has a metadata lock, but no blocking thread

I have a MariaDB 15.1 installed on a Debian system: $ mariadb --version mariadb Ver 15.1 Distrib 10.4.14-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 A script regularly loads data into a table with LOAD DATA LOCAL INFILE. The script…
monday
  • 185
  • 1
  • 1
  • 5
3
votes
3 answers

MySQL is extremly slow, is it possible that it's because the storage engine is located on NAS?

We have two similar spec HDD CentOS 7 servers for two different clients in different countries, both clients have the same database and same indexes. Client A: The server is only running MySQL 8 and it's extremely fast. Query X takes 11 seconds to…
Lynob
  • 241
  • 1
  • 9
  • 17
1 2 3
99
100