Sorry, but: uhm, what?
May let me suggest you to re-phrase your question?
It's not really clear what you're asking.
If you want to check if you have access to database connectivity you could check if modules like mysql/i/nd or pdo are present - if they're not loaded one may think of implement a mysql driver by using fsockopen - and I'm sure someone already has done it.
The other way would be: On whatever server you want to run your code one, unless you're its admin, you can always ask the admin if php, any database (there'Re more than just mysql/mariadb) and the required connector are installed.
This question somehow reminds me of what I got once from someone:
"Yea, we'd like to develop some sort of firewall-breaking proxy code ... blah blah blah" - I just replied: "Well, if you have your software run at some remote location and it requires a connection back to your server tell the admin to set up a VPN - or at least open the required firewall ports." - We argued about this for about 1 or 2 weeks and then I said: "Well, k, I don't even know my way around DotNet / C# and I think your approach doesn't seem doable - aside from all of the security issues - I'm out". TLDR: If you have some requirements don't try to figure out a away around it - talk to the admins to check if the requirements are met and demand what you need. That's a way to go within hours instead of wasting weeks on something doomed to fail.
posted 1 month ago
I was able to find it under XAMPP (Conrol panel V 3.2.4 ) and I just started 'MySQL' from it then executed my SQL query in My Sql data base( not sure whether i have selected correct data base here) then i got this error :-
CREATE TABLE `task_list` ( `task_list_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `task_details` text NOT NULL, `task_status` enum('no','yes') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;'
But when I just clicked on 'Go' button there then got this meesage ' MySQL returned an empty result set (i.e. zero rows). (Query took 2.2344 seconds.'
Is it any error or my table got created successfully ?