Hi,
If you do not use freepbx, then you need to create the db , the tables will be autocreated if the mysql user has create permissions, or it will use existing ones. If you still have issues, it is because mysql credentials are wrong somehow.
So, the only thing you have to change is config.php. Did you try to access mysql from the command line with the same credentials as I have suggested?