How does php connect to the mysql database & nbsp; $ con = mysql_connect ("test121106.ec666.net", "test121106", "Dkfnemtg23") of the route, how should I write this statement with known information? how can I connect php to the mysql database of the course of operation?
$ Con = mysql_connect ("test121106.ec666.net", "test121106", "Dkfnemtg23 ");
This is not the case. how should I write this statement?
The known information is
FTP domain IP: 182.236.163.57
FTP domain Port: 21
FTP account: test121106
FTP password: Dkfnemtg23
MySQL address: localhost
MySQL account: test121106
MySQL password: Dkfnemtg23
Test121106.ec666.net
Http://phpadmin.ec666.net
------ Solution --------------------
MySQL address: localhost
??
------ Solution --------------------
Navicat for mysql
------ Solution --------------------
$ Con = mysql_connect ("182.236.163.57: 21", "test121106", "Dkfnemtg23 ");
------ Solution --------------------
When remotely connecting to the mysql database, you need to authorize the mysql database
------ Solution --------------------
Reference:
Reference: never do things that are impossible
After you write the code, upload it over ftp. You can.
Currently, most IDEs support website uploads.
My boss said that the test should be completed on this database (some database operations such as table creation)
Didn't I give you the phpadmin logon address? If only these operations are involved. Why = non-write code is not allowed