Re: Problem mysql_connect : True PB ?



hi,

port 3306 is default. should be ok, if you doesn't change my.cnf. in
my.cnf the line "port=3306" must exist.

is there a firewall between the servers?

it's never a good idea to post ip-adresses, usernames or passwords of
your enviroment!

regards
lorenz


On 30 Aug., 11:52, goodm...@xxxxxxxxxxxxxxxxxxxxxx wrote:
Paris,
Le 30 08 MMVII,

Hi,

I have a problem using to connect to MYSQL from one server to another
server.

In other words, On server A, I have my PHP files, and on server B, I
have MySQL installed.
Localhost is fine, but an I.P. as a host lead to an error : Warning:
mysql_connect(): Can't connect to MySQL server on '207

Here is what I got :

.1) CONFIG.PHP
$dbtype = "mysql"; ##Defines Database type
$dbhost = "207.36.15.13:3306"; ##Your host
$dbuname = "maincontheaderbox"; ##Database Name
$dbpasswd = "bobyken"; ##Database Password
$dbase = "z_extras";
maincontheaderbox is the root user getting all previleges.

Comment : I mentioned PORT 3306. Not sure at all of that port (from
OVH french.hosting services)

2) my.cnf

I ensured that my.cnf does not forbid outside mysql connections.
skip-networking.http://guides.ovh.com/ConnexionDistanteMySQL

3) Doc
-http://forum.ovh.com/archive/index.php/t-5716.html
-http://fr.php.net/mysql_connect

.http://drupal.org/node/55108
$db_url = 'mysql://My_Account_Name(A)_username:password@localhost/
My_Account_Name(A)_databaseName';

Many thanks for your help from your knowledge and experience.

Bob


.



Relevant Pages

  • Re: How to Maintain an IIS Server?
    ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
    (microsoft.public.inetserver.iis.security)
  • Re: CEICW fails at firewall config
    ... ISA Server prevents connection to a remote desktop when you connect through ... Remote Web Workplace on a Windows Small Business Server 2003-based computer ... Acceleration Server as a firewall. ... connection uses TCP port 4125. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to Maintain an IIS Server?
    ... >> server running on a Windows 2000 server. ... > before a firewall and antivirus have been installed]. ... > program or executable using that port. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Activesync / Airsync - Alternative Ports
    ... Setup a reverse HTTP proxy. ... Another idea is to use the PPTP capabilities of a Windows Server to allow ... Satellite - Cisco Firewall - Exchange Server ... So on the server side you would configure the port 80 to redirect to ...
    (microsoft.public.pocketpc.activesync)
  • Re: Activesync / Airsync - Alternative Ports
    ... "Chris De Herrera" wrote: ... Another idea is to use the PPTP capabilities of a Windows Server to allow ... Satellite - Cisco Firewall - Exchange Server ... So on the server side you would configure the port 80 to redirect to 8888 ...
    (microsoft.public.pocketpc.activesync)