Questions tagged [mysql]

MySQL is an Open Source database now owned by Oracle. The MySQL documentation is expansive and incredibly useful.

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 changes ownership hands over the last 4 years. Sun purchased MySQL in Janaury 2008 for $1B. Some 15 months later, before the ink could fully dry, Oracle buys Sun. This made MySQL a subsidiary of 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 that Oracle has not taken to the cause to fix fast enough.

In light of this and in keeping with spirit of open source liberty and freedom, forks of MySQL have propelled in the OpenSource 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. Tuning the Engine Settings for
    • Server Process Internals
    • Operating System
    • Memory
  5. User Grants

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. 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:

1942 questions
73
votes
2 answers

How to remove 1000-row limit in MySQL Workbench queries?

During execution of an SQL Query in MySQL Workbench, the query is automatically limited to 1000 rows. How does one prevent the tool from imposing this limit?
Brian Hooper
  • 1,945
13
votes
1 answer

Why does MySQL leap from version 5.7 to 8.0?

I recently upgraded MySQL 5.7 to 8.0 via homebrew, as it warned me about not being the latest version. I was surprised to see MySQL was version 8.0 as from what I recall the latest version was 5.7. Then I found out there are no 6 and 7 versions…
Blaszard
  • 525
11
votes
1 answer

MySQL database across multiple servers

Ok, really don't know how to ask what I am looking to find out which is likely why my reading and research otherwise is yielding nothing relative per say. So what I currently have is a single MySQL database, and I know sooner or later the data is…
chris
  • 688
9
votes
3 answers

How to restore mysql database using files on data folder?

I cannot run my mysql since yesterday, and I cannot access it, so I decided to reinstall it. I've backed up the data folder, which I presume contains all I need to restore the database after I reinstall mysql. I've copy pasted and overwrite the old…
Vylix
  • 1,748
9
votes
5 answers

How can i retreive a mysql database from a hard drive?

My mythtv box crashed because of a corrupted hard drive. I can see my data when connected it to another computer. I need to know how I can retrieve the database so I can load it on my new drive.
Jeremey
6
votes
4 answers

SQLyog alternative

Do you know any app similar to SQLyog (sql gui admin tool)? Especially, I am looking for opinion from users who had used SQLyog and found "something better".
JohnM2
  • 841
6
votes
2 answers

Which DIR is the MySQL base directory after yum installed mysql

Seems that I cannot locate mysql DIR only bunch of binary files under /usr/bin I used yum to install mysql mysql-server mysql-devel and tried to install mysql and I used /init.d/mysqld to have started it. But when I want to compile PHP , the…
Hao
  • 375
5
votes
2 answers

Does binary logging for MySQL slow down performance?

The question is simple. Does turning on binary logs in MySQL slow down performance considerably, i.e. will it write large amount of data to disk thereby causing high I/O, will it hog memory, does it have any implications for the CPU ? Thanks
Adergaard
  • 151
  • 1
  • 3
5
votes
3 answers

MySQL localhost connect works but 127.0.0.1 does not

Does anyone know what the error could be when I can connect to my MySQL server via localhost but not via 127.0.0.1? AFAIK, these should be routed identically and no additional TCP layer should be created when using the IP. $ mysql -u root -h…
4
votes
3 answers

Public MySQL servers for use in sample code

Similar to how the IETF's example.com domain's web and email services can be safely used in code samples, is there a public MySQL server I can safely(*) use in some sample code? ("Safe" in that it wouldn't mind the minuscule amount of traffic users…
smokris
  • 1,602
4
votes
1 answer

Can you change the mysql prompt?

I use the "mysql" command-line tool all the time, and frequently forget what database (schema) I'm on. Is there a way to change the prompt? It'd be much more useful to see foo_bar_schema> than mysql> all the time.
Ken
  • 43
3
votes
1 answer

MySQL Notifier High Severity Error at startup

When I start MySQL Notifier up, an error like this is shown: "High Severity Error" "Object reference not set to an instance of an object." And when I click over "Show Details" I can see the the program's exception stack trace: at…
safejrz
  • 213
3
votes
1 answer

How can I enforce atomic inserts?

I'm working on an application backed by a MySQL instance, and I've encountered strange behavior involving what seems to be "phantom" inserts. Given a table with an auto-incrementing integer key, I perform the following: INSERT ... // generates ID…
3
votes
3 answers

Cleaning up a text file with a variety of CR and LF line breaks

I'm trying to import into mySQL a text file containing memos. I don't know how they managed to do this, but while the memo field is consistently terminated by CR LF, parts of the text itself contains a mixture of CR, LF, and CR LF line breaks as…
Ivan
  • 165
3
votes
1 answer

Only test databases showing from MySQL prompt

This is my first time using MySQL. I have Windows and XAMPP installed . I have created a database called "Students" through my Java program that shows up as a folder in the C:\xampp\mysql\data directory, and in localhost/phpmyadmin/. I can query…
mxl_
  • 1,165
1
2 3
8 9