Expert MySQL / Charles A. Bell, APress, 2007
Here is a book on the internals of MySQL, which will be useful when you want to improve or extend it. The book should also be interesting to you if you are planning to create a complex server app like MySQL. Or maybe you want to embed MySQL? I like this book, though the text is repetitive in places. 500 pages.