In front of a unity3d connection MySQL database tutorial, a netizen asked me about Webplayer download how to connect MySQL database, this out a series of tutorials
1, first handle the MySQL database initialization under the virtual host.
MySQL Manager creation--Database--table SQL
Script
CREATE TABLE ' Getfh_15188775_linmdb '. ' U_table ' (' pname ' text not null, ' ppwd ' text NOT NULL)
Insert 3 Data separately
Insert INTO ' getfh_15188775_linmdb '. ' U_table ' (' pname ', ' ppwd ') VALUES (' admin ', ' 123 '); INSERT INTO ' getfh_15188775_ Linmdb '. ' U_table ' (' pname ', ' ppwd ') VALUES (' test88 ', ' linm '); INSERT into ' getfh_15188775_linmdb '. ' U_table ' (' pname ', ' Ppwd ') VALUES (' Unity ', ' Testunity3d ');
2, write a simple php file, upload to the virtual host space test database connection
Please seriously hand over again, refused to reach the party, or the following PHP code has difficulty,
The code is very simple, need certain PHP basic knowledge, own Baidu a bit will, will not Baidu,,,, oneself wall go
Test the virtual host run address,, xxx/uphp.php "xxx for your virtual host network address"
If the data in the database is read successfully
The server side of the basic has been configured, not to be continued ...