Russell J.T. Dyer
To Fortunata Serio, my mother, who gave me life, taught me to be kind and loving, and to speakwhich is a precursor to being a writer.
And to Andrew Gambos, who had the thankless job of being my stepfather, but taught me how to assert myself in life and in my career.
If you purchased this ebook directly from oreilly.com, you have the following benefits:
If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.
Before you begin to read the main chapters of this book to learn about MySQL and MariaDB, it might be useful to understand what we were trying to accomplish when we first created MySQL about 20 years ago and MariaDB about 5 years ago, as well as the current state of these database systems and my expectations of them going forward. And Id like to encourage you in your decision to learn these database systems and to assure you that they will be in use for a long time and that you will benefit from the time and energy you put into reading this book and learning what it has to teach you.
Origins of MySQL
When my business partner David Axmark and I started MySQL, there werent any good, free, open source database systems. There was mSQL , which wasnt open source, but it inspired us to create a new database system for our clients, which would later become MySQL. We had no plans to do anything more with this embryo of MySQL other than satisfy the needs of our clients. We were learning, discovering, and creating out of practical concerns and needs, much as you might and perhaps should be doing as a reader of this book and a newcomer to MySQL and MariaDB.
Although we had accomplished our task in creating a straightforward database to meet ourrequirements, it wasnt long before we noticed that there were many other organizations that werelooking for a solution similar to what we had already developed. So we decided to make the softwareavailable to the public and we named it MySQL .
Part of our motivation for doing this was that we felt that it was a way in which we could give something back to the open source community that would be very useful. Most open source projects at that time werent as useful. We wanted to make the world a little betterwe had no idea at that time how much of an impact MySQL would have on the world. At the same time, we were hoping that by going public with the software, it might finance further development of MySQL for as long as we might want. We had expectations of getting rich from MySQL. We hoped only to be able to work full-time on this project because we believed in it. The result, though, was that we contributed much to the worldmuch more than we thought possible.
Given the fact that over 80% of the websites in the world are now running on MySQL, one could easily argue that we accelerated the growth of the internet and almost everything that has grown out of it. The impact its had is immeasurable. Many of the sites and businesses that have been successful, including the ones that are now huge, probably would never have started if it were not for MySQL being free and dependable. At that time, those founders and startup companies just didnt have the financial resources to start their sites. The cost of commercial database software was a barrier to some of the most creative web-based organizations being launched, including organizations like Google, Wikipedia, and Facebook. Plus, the commercial database systems posed other problems for startups of that time. First, they were too slowthey werent optimized for the Web and that was critical for organizations like these. The commecial alternatives were also too difficult to use and manage, requiring higher paid developers.
Because of these factors, we were able to give fledgling organizations what they needed to become the significant components of the Internet and a major part of the lives of most people in the world today. We were a critical component of the development of the Internet and we still are. Theres nothing to indicate that we wont continue to be so. The growth of MySQL and especially of MariaDB is increasing. Its not decreasing as some people expected with the introduction of new databases systems and methods such as NoSQL.
MySQL became a dominant database system long ago. Once something becomes dominant, its difficult to replace it. Even if something better comes along, people prefer whats already familiar to them and what they already know and are using. For something to replace MySQL as the dominant open source database, it would have to be not only critically better, but also offer a way for people to migrate without much effort, and without wasting all of the knowledge they accumulated from their current system. This is why MariaDB can replace MySQL: its basically the same thing, but with more features and more potential for the future.
State of MySQL and MariaDB
MySQL and MariaDB arent perfectno database is that, nor will ever be thatbut MySQL and MariaDB are good enough for most people and theyre excellent in many ways. The balance we strive for is to develop a database system that works easily on the Web and has one of the fastest connectors. Thanks to the fact that were using threads, we can handle much higher loads than other database systems. We used some of the most advanced technologies available when we started MySQL and we have always striven to adapt to new hardware and to optimize the software for all commonly used systems and methods of deployment. Because were continuously improving the software, we can have a new release each month for the community edition and we can have a new version every year. Thats an indication that things are happening and improving regularly.
As someone learning and intending to use MySQL and MariaDB, you can take comfort in that we are always improving and adjusting for a changing environment. You can count on us for the future. I think thats the main thing: people like that they can depend on us. Although it may be fun and exciting to learn something new, after a while it can become tiresome to have to learn a totally new system every couple of years. You wont have to do that with MySQL and MariaDB.
I mentioned before about how difficult it is to supplant a dominant software. In the case ofMariaDB, its not much of a change in practice for those who have been using MySQL. As a result,most people can migrate to MariaDB without the usual obstacles, but they can take advantage of thenew features included in MariaDB and the ones that are planned when theyre added. MariaDB isrelevant because we continue to make improvements and we care about giving developers what they needto get the most out of their databases.
Beyond the Server
In addition to web usage, MySQL and MariaDB can be used for stand-alone applications, embedded with other software. Embedded MySQL and MariaDB are growing more than ever. Many applications are moving to cloud environments, but database systems that many businesses used in the past are typically too expensive to use in a cloud environment. As a result, they need an inexpensive database system that is easily deployed in a cloud environment. For this situation, MySQL and MariaDB are the obvious choices.