How does php connect to the mysql database of the course of operation?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.