All of the above is great advice. I'll add my 2/100th's of a dollar, from someone who has not only been in the studio as a member of a band but as a "sideman", in which time is
the boss' money:
Make sure
all your gear is functioning at 100%. If you're miking an amp, make sure you've got no hum for the electronics and no rattling from the cab. New batteries for active basses and efx, even if you're using adapters - you very well might find some hum introduced from the power and have to unplug. If you're not super-proficient at setting up your bass, have it done by a professional... but not right before the session. I've found it best to have it done a week or two beforehand, as to let it settle in. The same with restringing,
unless you want that Über-bright new string sound. Which leads to...
Know the sound you want to have, but be flexible about changing it to suit the needs of the music. The tone you use to play alone while practicing as well as the one you use for live gigs may not fit in the context of a studio session. A good engineer knows what frequencies to work with to make you sound the best
as a band, and not just you alone as a bassist. Use and trust that experience. If possible, speak to him/her before the session to find out their preferred recording methods for bass - be it a DI, miked amp, or combination of both. Choose your battles wisely. If your tone is unusual to begin with, you might have to "fight" to take it to tape. For winning this, you might have to give up using your exotic effect during the guitar solo. Pick what's most important to you.
Know your strengths and weaknesses. If you know you can nail that one insane riff but not make it through in entire song without a dropped note or two, that's okay. Take that almost perfect take and punch in - it'll save time over multiple takes of trying to get 100% in realtime. Know if you need to play in the same room as the drummer for visual cues (in which case you'll have to be sure you can work with a headphone mix) or if playing in the control room with kickin' monitors is better for you.
Generally it comes down to one phrase:
"Have a plan for everything". Think of every scenario and plan a workaround. Busted string? Have spares. If you only own one bass, beg, borrow, or steal a second. Starting at 3:00? Be there at 2:30. Stay sober, for the music's sake as well as not spilling a beer in a console worth more than your year's salary.

Charts aren't cheating, they're professional.
...but have fun while you're doing all of the above.
