php 如何连接运程的 mysql 数据库

WBOY
Release: 2016-06-13 12:56:03
Original
912 people have browsed it

php 怎么连接运程的 mysql 数据库
 $con=mysql_connect("test121106.ec666.net","test121106","Dkfnemtg23");
这样不行,请问这个语句应该怎么写


已知的信息有这些

FTP域IP: 182.236.163.57 
FTP域端口: 21 
FTP帐号:   test121106
FTP密码:Dkfnemtg23
MySQL地址: localhost  
MySQL帐号: test121106
MySQL密码: Dkfnemtg23

test121106.ec666.net
http://phpadmin.ec666.net 


------解决方案--------------------
 MySQL地址: localhost  
??
------解决方案--------------------
navicat for mysql
------解决方案--------------------
 $con=mysql_connect("182.236.163.57:21","test121106","Dkfnemtg23");

------解决方案--------------------
远程连接 mysql 数据库时,需要对 mysql 数据库授权
------解决方案--------------------
引用:
引用:永远不要去做不可能做到的事情

你把代码写好后,通过 ftp 传上去。就可以了
目前大多 ide 都支持网站上传

面试我的老板说,需要在这个数据库上完成测试(一些创建表格之类的数据库操作)

不是给你phpadmin的登录地址了么?如果仅仅是这些操作。何必=非写代码不可
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!