Local anaesthetic?

I am in my second trimester and have a painful tooth! My dentist has advised to check with my doctor if I can take the local anaesthetic injection. Has anybody had this? Is it safe during pregnancy? And does anybody know about root canal in pregnancy? Thanks in advance xx