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.

8729 questions
95
votes
8 answers

How can I show mysql locks?

Is there anyway to show all the locks that are active in a mysql database?
Amandasaurus
  • 32,281
  • 69
  • 194
  • 263
72
votes
3 answers

How do I change the privileges for MySQL user that is already created?

I understand how to create a new user with privileges, but what is the correct way to change privileges for users that are already created? We are running a DB audit and some of the users have way more access then is needed. Plus I don't know the…
Clutch
  • 970
50
votes
4 answers

MySQL warning "IP address could not be resolved"

I've got MySQL Master/Slave setup and I've noticed the following warnings in the mysql log files on both servers: [Warning] IP address 'xxx.xxx.xxx.xxx' could not be resolved: Name or service not known I've checked and the DNS lookups works fine…
HTF
  • 3,198
39
votes
1 answer

What is the difference between wait_timeout and interactive_timeout?

What is actual difference between wait_timeout and interactive_timeout?
Ashish
  • 401
37
votes
5 answers

How to find and fix fragmented MySQL tables

I used MySQLTuner which pointed out some tables were fragmented. I used mysqlcheck --optimize -A to optimize all tables. It fixed some tables but MySQLTuner still finds 19 tables fragmented. how can I see which tables are in need of…
28
votes
3 answers

MySQL users changed their IP address. What's the best way to deal with this?

I have a number of users who are connecting to MySQL over a VPN, so we have grants along the lines of grant select on foo.* to user@ipaddress1 and so on. This week, the IP used on the VPN changed to address2, so user@ipaddress1 grants no longer…
cjc
  • 25,114
27
votes
1 answer

Mysqldump complains about chosen databases regardless of command line

Mysqldump complains about command line options I have never specified. I don't have shell aliases nor a custom .my.cnf file set. What am I doing wrong? Using the --database long option: $ mysqldump --user cloud -p --database cloud >…
andyn
  • 372
  • 3
  • 6
23
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 …
22
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
  • 565
  • 2
  • 8
  • 17
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…
21
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
  • 411
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 :…
19
votes
2 answers

Cannot proceed because system tables used by Event Scheduler were found damaged at server start

I'm trying to copy data from one MySQL database to another on a different server using Navicat for MySQL. However, I keep getting this error when I try to do the transfer. I've run mysql_upgrade already and it completed, but I'm still getting this…
17
votes
2 answers

How do I ignore errors with mysqldump?

When dumping a database, I'm getting mysqldump: Couldn't execute 'show create table `some_table`': execute command denied to user 'some_user'@'%' for routine 'some_routime' (1370) and then the dumping just stops. How do I make mysqldump continue…
Chad Johnson
  • 489
  • 2
  • 7
  • 14
16
votes
6 answers

MySQL refuses to accept remote connections

I've just installed a fresh ubuntu server with mysql (percona 5.5), but it refuses to accept connections from remote hosts Here is what happens if I try to connect to this server remotely: mysql -h10.0.0.2 -uroot -pmypassowrd ERROR 2003 (HY000):…
Temnovit
  • 1,127
  • 6
  • 19
  • 27
1
2 3
58 59