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

Document and best practices for configuration of a dedicated server (Centos) to serve just one website

I have just bought a dedicated server and they provide me a IP address, access info as root and machive with Centos 5. I would like to serve my django app in that machine but because I have no experiences such server issues I don't know what is the…
3
votes
1 answer

Should I expect problems with a different version of the MySQL PHP extension vs the MySQL server?

I have a server that has a PHP MySQL extension version 5.0.77 while the MySQL version is 5.1.34. Some pieces of software/scripts are warning me that I may have problems. What kind of problems should I expect and should I be concerned about it? (I'm…
Darryl Hein
  • 1,712
  • 2
  • 19
  • 21
3
votes
1 answer

MySQL Multi-Master Replication vs. MySQL Cluster

I need a MySQL database that is fast and supports many connections. Most of the connections will only be reading, but a few will be reading/writing. All connections will need to read and write at least some data. I have 4 test servers to dedicate…
Brad
  • 1,419
  • 22
  • 43
3
votes
3 answers

phpmyadmin connecting to a remote server

I have two servers (ubuntu 10.04 amd 64). one i plan on the webserver, the other i plan on being the database server. The webserver is the only server with access to the outside world. I installed a LAMP stack with phpmyadmin. On the database…
rizzo0917
  • 84
  • 1
  • 4
3
votes
2 answers

mysql server 5.1 config on win 2008 (experts help required)

I'm running MySql server 5.1.52-community on win 2008 R2 x64 standard edition. its production server. when the application layer "another server" introduce too much requests/ tcp connections/ "more than 2000 queries per second" the application layer…
Jawad Al Shaikh
  • 254
  • 1
  • 3
  • 15
3
votes
2 answers

Dns server which is better bind or mydns?

I am going to start a new website which is going to require DNS servers. It might have over 10,000 zones and will get more zone files as we get bigger. The problem is, which dns server software do you think is more efficent: mydns which uses mysql…
Nesh A
  • 39
  • 1
  • 2
3
votes
1 answer

2x SSD's in RAID1 for MySQL server

I'm in need to upgrade my MySQL machine, as currently I am running 2x SATA 7200rpm drives in RAID0. This of course is quite dangerous incase one of the drives fails. As I do not need too much storage (all my db's together are about 20 - 25gb), I…
Mr.Boon
  • 1,471
  • 4
  • 24
  • 43
3
votes
1 answer

MySQL think 'außer' equals to 'auser'

I tried to migrate some tables from one MySQL database to the other, but I encountered an error: ERROR 1062 (23000) at line 108: Duplicate entry 'außer' for key 'PRIMARY' And I tried to find why, in the target database, i ran mysql> select 'außer'…
Fang-Pen Lin
  • 282
  • 1
  • 3
  • 12
3
votes
3 answers

When I am root, "mysql" connects without a password, even though I've set one

When I am root, "mysql" connects without a password, even though I've set one: # mysqladmin -u root password 'whatever' # mysql -u root -p Enter password: (typing the 'whatever' above) Welcome to the MySQL monitor. Commands end with ; or \g. Your…
John Smith
  • 31
  • 2
3
votes
1 answer

setting table_cache in line with opened_tables

My MySQL server is VERY busy. It has 750k opened tables. I have been reading that I should increase table_cache in line with opened_tables but I have no idea how I am meant to scale it? If I set table_cache to 750k what would happen?
webnoob
  • 465
  • 2
  • 16
  • 35
3
votes
1 answer

MySQL Logging - Is it worth it?

If I were to enable MySQL logging by doing the following, what are the advantages and disadvantages? What do you do personally? general_log_file = /var/log/mysql/mysql.log general_log = 1 log_slow_queries =…
psp
  • 3,173
  • 3
  • 15
  • 14
3
votes
3 answers

Question: MySQL db Migration from Server(A) to Server(B), which tables?

When migrating a MySQL database from Server(A) to Server(B) which tables should be dumped and migrated to Server(B), including user grants? I don't want to have to manually re-enter user accounts and passwords. I wish to do this using a third part…
Steve
  • 31
  • 2
3
votes
2 answers

mk-table-sync in a master-slave scenario: Changes not replicated to the slave

I have being employing mk-table-sync to synchronise tables from a master to slave on mysql 5.1. Unfortunately, while differences are correctly detected, modifications done on the master (DELETE,REPLACE,ecc.) do not seem to be propagated to the…
Fulvio Scapin
  • 115
  • 1
  • 6
3
votes
1 answer

XFS Check/Repair Fails

I have a mysql database server on an EC2 instance with 3 drives in a Raid 0 array. This morning the server crashed and after inspecting the logs, I noticed a Structure Needs Cleaning error(i.e. System Error Code 117). With that I attempted to run an…
Bryan
  • 245
  • 2
  • 7
3
votes
2 answers

How to adjust MySQL performance

I'm facing a real problem with MySQL instance for a service online. We use hibernate and c3p0 pool with these settings:…
black sensei
  • 609
  • 3
  • 10
  • 25