How PHP connects to the MySQL database of the transport process

Source: Internet
Author: User
How PHP connects to the MySQL database of the shipping process
$con =mysql_connect ("Test121106.ec666.net", "test121106", "Dkfnemtg23");
This is not going to work, how should I write this statement?


The known information has these

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--------------------
MySQL database authorization required for remote connection to MySQL database
------Solution--------------------
references :
references: Never do things that can't be done

After you have written the code, pass it through the FTP. You can do it.
Most Ides now support site uploads

Interview my boss says you need to complete the test on this database (some database operations such as creating tables)

Didn't give you phpadmin's login address? If this is the only operation. why = Not write code is not
  • Related Article

    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.