Confused?
The error file you have submitted looks like you trying to set up a Moodle database, but it fails because you forgot to use the
'use moodle'
(or whatever your database is called) command first.
Authentication from an external database should work, but there are lots of reasons why it might not. We really need to see the exact errors to get a clue. You might also want to check your web server error log, to see if there are more useful errors there. One for the general problems or, perhaps, authentication forum rather than this though.
General developer forum
Databases: Database Configuration.
This discussion has been locked so you can no longer reply to it.