mysql - Setting up a local call to DB with an online PHP file - trouble connecting -


Trying to find out what to connect to a local PHP server with an online PHP file. Although I'm getting connection errors

Warning: mysql_connect () [function.mysql-connect]: [2002] No connection can be made by actively denying the target connection (attempt to connect via TCP : // localhost: xxxx) in E: \ web \ example.com \ uploads \ readDB.php on line 8

Especially I'm having trouble

 Mysql_connect ("localhost") 

"" the_sql_server_name \ SQLEXPRESS "," mysql "); Mysql_select_db (" ACME ") or die (mysql_error ()); $ Data = mysql_query ("Choose from the trading account") or die (mysql_error ());

Mys Runs locally (SQL Server Studio Management 2012), and I'm trying to connect to Table Databases specific to DB from table ACCOUNT.

How do I connect to this local table To successfully show up with PHP? I currently use Windows authentication when I run the server, even in case.

I can not find any useful resources, and I The only way to use online is to use PHP as a DB, nothing locally before.

Your problem is in this line:

  mysql_connect ("local Host "," the_sql_server_name \ SQLEXPRESS "," mysql ");  

You typed the the_sql_server_name \ SQLEXPRESS I do not understand why the syntax of the method is:

  mysql_connect ("hostname "," Username "," password ");  

For more information, go to.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -