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

Is there a MySQL performance benchmark to measure the impact of utf8_unicode_ci versus utf8_general_ci?

I read here and there that using the utf8_unicode_ci collation ensures a better treatment of unicode text (for example, it knowns how to expand characters such as 'œ' into 'oe' for searching and ordering) compared to the default utf8_general_ci…
MiniQuark
  • 3,875
  • 2
  • 21
  • 23
13
votes
1 answer

Grant users access to mysql with a dash in the database name

Unfortunately, I have a database name with a dash in it. How do I grant access to that database as mysql reports a syntax error. e.g. GRANT SELECT,INSERT,UPDATE,DELETE ON astpp.* TO 'portal'@'localhost' IDENTIFIED BY 'Ab7g12Xh35' WITH GRANT…
hookenz
  • 14,472
  • 23
  • 88
  • 143
13
votes
8 answers

How to completely remove MySQL from Windows?

(I realize there are similarly-titled questions, but this one is really 'how do I reset the password', and this one doesn't specify an OS and has only gotten Linux-oriented answers.) On Windows XP, I just uninstalled MySQL and deleted the folder…
Nathan Long
  • 1,545
  • 7
  • 22
  • 38
12
votes
9 answers

How can I reset the password for MySQL?

I have an old MySQL installation for which I do not have the password. How can I reset the password? My first idea was to completely remove it and reinstall with a new password. I am using Windows Vista.
Ankur
  • 2,379
  • 7
  • 22
  • 24
12
votes
4 answers

Slave replication stops with Last_SQL_Errno: 1032

I have added an extra Slave server to an existing MySQL Replication. The Master server and the old Slave server are working fine without any issue, but the newly added server is stoping with the following error: Last_SQL_Errno: 1032 …
adminz
  • 397
  • 2
  • 6
  • 20
12
votes
1 answer

How is using a MySQL password from the command line insecure?

I've got a few BASH tools that use the mysql -e "{command}" function. Entering the password every time I use these tools would be a pain, so, to avoid having the password written in a plaintext file with the code, I store it in memory (using read…
Andrew
  • 223
  • 2
  • 6
12
votes
6 answers

Check if mySql is installed on server

Is there a way to determine if mySql has been installed on a Linux server?
Elitmiar
  • 775
  • 3
  • 15
  • 31
12
votes
1 answer

Can I copy the entire /var/lib/mysql folder to a different server? (mysql vs mariadb, different versions)

I used to have a Linux system (LMDE) with MySQL. The system used innodb_file_per_table for most of the databases. (not sure about the version, whatever is the "latest" in LMDE) I am now on a new system (Manjaro/Arch) with MariaDB. $ mysql…
donquixote
  • 491
  • 1
  • 4
  • 14
12
votes
5 answers

Cause of error: Invalid (old?) table or database name 'lost+found'

My MySQL log shows duplicated errors: 141223 5:47:21 [ERROR] Invalid (old?) table or database name 'lost+found' I have a database named #mysql50#lost+found but I cannot seem to delete it. mysql> show databases; +---------------------+ | Database …
user1032531
  • 568
  • 2
  • 11
  • 26
12
votes
4 answers

MySQL connection works with localhost but not with 127.0.0.1

I have a pretty standard MySQL installation on Debian Wheezy (apt-get install mysql-server mysql-client) which I have done successfully lots of times before. When I try to connect via localhost, everything works. But connecting via 127.0.0.1 gives…
Philipp Jardas
  • 231
  • 1
  • 2
  • 7
12
votes
2 answers

First attempt to migrate EC2 MySQL to Amazon RDS no going well - SUPER privileges

I've been trying to move an existing db from MySQL running on EC2 to a new Amazon RDS instance (an experiment to see if we can move across). So far, it's not going well. I'm stuck at the initial import before setting up replication (instructions…
dsl101
  • 433
  • 1
  • 8
  • 14
12
votes
5 answers

Is it bad to have a very full hard drive on a high traffic database server?

Running an Ubuntu server with MySQL for a high traffic production database server. Nothing else is running on the machine except the MySQL instance. We store daily database backups on the DB server, is there any performance hit or reason why we…
MikeN
  • 8,442
  • 5
  • 23
  • 18
12
votes
2 answers

Run OPTIMIZE TABLE to defragment tables for better performance

I am running Linux 64-Bit OS. My mysql tuner is saying the things below: -------- General Statistics -------------------------------------------------- [--] Skipped version check for MySQLTuner script [OK] Currently running supported MySQL version…
Barkat Ullah
  • 145
  • 1
  • 3
  • 9
12
votes
3 answers

What is more important for a database server? Mem? Mem speed? Cores?

I am going to be moving my database server to somewhat better new hardware. The current database server does not have any problems except that it is running Centos 4. The current hardware is 2 quad core xeon 5335, 4 15K RPM in RAID 10 and 4GB(yes,…
12
votes
4 answers

Increase InnoDB buffer pool size

I am having difficulty setting the buffer pool size and log file size for MySql InnoDB. I am far from a MySql expert but have been reading around and it seems that to change this I just add these lines to my /etc/mysql/my.cnf # Set buffer pool size…
tgrosinger
  • 231
  • 1
  • 2
  • 7