Is there any way to get Database Name from MySql connection string?
For example, MySQL data string can be any of the two types.
i). mysql://root:password@localhost/test
ii). mysql://root:password@localhost/test?debug=true&charset=BIG5_CHINESE_CI&timezone=-0700
So how to get the database name like 'test'(in this case). From any one of the two above given strings?
Thanks :)