Buy this book:
Boatowners Manual for Mechanical and Electrical Systems - Nigel Calder
... I second that... There are lots of mechanical and electrical system issues that are covered in that book. I knew "how to sail" when I got my first boat... meaning I knew how to make the boat go... and was fairly handy as a homeowner/DIY car repair guy... but the mechanical systems and electrical systems specific to boats has different issues than the systems in your car/house which you might not expect.
Ironically, ask SAILboat owners what they spend the most time/energy/headaches working on in maintaining their boats, and many (most?) will tell you they spend lots of time with their heads and shoulders crammed into bilges and engine compartments, and various places fiddling with engines, wiring, pumps, plumbing, and things that don't at first glance seem like they'd be big parts of being a SAILor (spoiler: they are). That book, specifically, is a great way to get started, and to keep around as a reference when you don't understand some system (or part of a system) that's new to you.
If you only buy one book (imho) it should be that one, and if you want to buy two books... buy that one to keep on the boat, and then buy a second copy of the same book for home
