Within IPS 4 you can use an external database as a login handler. You would do this from the following location in your admin CP
System>Settings>Login & Registration
From here you can then set up the relevant details needed for connection
Database Connection Details
In the first section you will need to enter all the details to connect to your mysql data. Ensure these details are 100% connect and can be connected to from the server where your IPS installatio