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

Linking databases securely through firewall, MSSQL to MySQL

I am currently in discussions with DBA and IT Security staff within my company, and am being told that the only way to securely link to our master database (MSSQL behind a firewall) to our web apps is to make a backup file, FTP the file to the web…
ctrane
3
votes
2 answers

Online Schema Change Strategies for Large MySQL Tables

I'm curious to hear strategies and methods people use for performing alters on very large tables in MySQL. Large could be any number of rows or size that would be impacting to alter. For the sake of conversation, let's say 2 million+ rows to which…
sinping
  • 2,070
  • 14
  • 13
3
votes
4 answers

How to create a SQL Server database from a mysqldump file automatically on a daily basis?

Recently, a vendor announced that they were upgrading their processes, and an automated, daily data dump we are getting from them will now come in a MySQL datadump format. Unfortunately, we're a Microsoft-only shop, so we can't import those files…
Sean
  • 131
  • 1
  • 2
3
votes
2 answers

Weird MySQL Users Been Created (eg. bug115166_10073) and not by me

Have just been looking at my MySQL user permissions during a security audit and have noticed about 20 MySQL users have been created with random names such as 'bug115166_10073'. They don't have any permissions enabled at all and I'm the only one who…
BIOSTALL
3
votes
2 answers

Can I mysqldump an entire DB connection?

I am hosted on a Media Temple DV 3.5 server and looking to upgrade from mysql 5.0.90 to the latest mysql so I can use triggers and foreign keys. I am a bit nervous to do so because I don't have a 'test' server to match my production server. We have…
JM4
  • 1,144
  • 3
  • 18
  • 29
3
votes
2 answers

Why isn't the MySQL Profiler working for me?

I'm trying to analyse my database but I can't get profiler to work. According to the mysql documentation it should be available since MySQL 5.0.37 and turning it on is as simple as executing the following statement mysql> set profiling=1; Query…
3
votes
4 answers

Automatically restoring a dump.sql file to another server weekly

I am currently trying to find a way to automatically restore a dump.sql file to another server weekly. I haven't found the code to do this yet in either mysql or command prompt but I am looking. The main problem I can see is that the server creates…
Anthony
3
votes
6 answers

Way to inexpensively temporarily increase storage on production servers?

We have a set of 6 servers in production for storing some massive databases. Right now they have 280Gb of disk space striped and mirrored across 15K SCSI Drives, our existing database fills them to 213Gb. The new data structure is approximately 1.1x…
Zee
  • 133
  • 4
3
votes
2 answers

Issuing client SSL certificates for MySQL server to customers - is this safe?

I have MySQL installed on a VPS, which I will use to host multiple databases for customers, who will use them from a front-end. I have forced all communication to each database to be via SSL, and I will generate a seperate set of client SSL…
Lewis Bassett
  • 161
  • 1
  • 6
3
votes
4 answers

How to troubleshoot a big memory issue with Apache and mySQL

I've read a lot of this website to optimize my server but nothing has really helped me :( Im having a memory trouble I think , I have just one website (Drupal) with 860K page views month but when the traffic increase, the load average goes up over…
atom
  • 41
  • 1
  • 6
3
votes
2 answers

Transfer database data from xampp on Windows to Ubuntu

Which is the fastest way to transfer mysql databases from xampp on Windows to a MySql server on Ubuntu?
albertopriore
  • 131
  • 1
  • 3
3
votes
2 answers

Is it considered a bad idea to have a publicly facing MySQL or SQLServer Database?

If I wanted to create a publicly facing database for purposes of connecting it to a client MS Word or Open Office Writer installation, would this be considered a dangerous security practice? What if I have set access permissions to various tables…
leeand00
  • 4,869
  • 15
  • 69
  • 110
3
votes
4 answers

MySQL Redundancy for High-Availability over the internet

I am testing out some infrastructure options before I start writing a web application. I would like to have two separate MySQL database servers at different physical locations, but if one of them goes down, I would like to be able to fail over to…
muncherelli
  • 759
  • 1
  • 4
  • 22
3
votes
4 answers

Dealing with low level attackers?

I have a small games site with 400 members (~50 active) built around a MySQL database. I'm the sole developer, and I'm an amateur, so I make my fair share of mistakes. To help protect myself, the site, and my members' contributions I have the…
Drew
  • 661
  • 6
  • 9
3
votes
1 answer

Granting privileges to mysql user not working

I am logged in to mysql as root. I can add a user like this: CREATE USER test01@localhost IDENTIFIED BY 'test01'; When I attempt to grant privileges to the test01 user, nothing seems to happen: GRANT SELECT,INSERT,UPDATE,DELETE ON test_database.*…
Mike Moore
  • 223
  • 2
  • 7
  • 15