- Home /
Unity5 check database connection c#
Hello,
I created a mysql database in xampp and unity connects to it trough php. It checks my username and password for my login system. That works fine but my question is : can I look if unity connects to the database at the setup of my c# script? So that if it does then a Cylinder should turn green and if it doesn't the cylinder should turn red.
i am very good with unity and c# networking connections but not familiar with sql data bases or what kind of responses they give or need. I would assume this wouldnt be an open TPC style connection. why not ask for a small test file from the server to confirm on start? I would like to see an answer to this. I've always wondered how to setup SQL for a server. goodluck!
Your answer
![](https://koobas.hobune.stream/wayback/20220612174303im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PHP is not able to input data from Unity to an empty SQL 0 Answers
Remember currently logged in player 1 Answer
Why it doesn't save data on the online database? 0 Answers
SocketException: No connection could be made because the target machine actively refused it. 0 Answers
Storing Player Sessions 0 Answers