List:General Discussion« Previous MessageNext Message »
From:Joe Ellis Date:November 16 2001 3:13pm
Subject:Re: CGI and MySQL
View as plain text  
you're probably not running the server on port 3306.  when you start the 
mysql server, use --port=3306

George.Coicici@stripped wrote:

> Hi,
> I'm currently working on a project in which I am working with CGI scripts
> for a web based user interface, and MySQL for my database. I'm a student at
> a University of Waterloo (in Canada). The program is a hotel reservation
> system (irrelevant) and I'm coding in C and C++. The system is being
> developed on a Solaris box. , and my problem is that the CGI script is on a
> different server than the one where my database is one. In fact, my
> database is located on my Win2k box at home. I noticed that the
> mysql_real_connect() method in the MySQL C API, has a specification for the
> IP address, and port. However when I specify the IP address of my box at
> home and a port 3306 (definitely not in use) and leave the password and
> user NULL (because I haven't set up a password and user) it tells me it
> cannot connect to the MySQL server on port 3306. I know the problem isn't
> that I'm not running the daemon, because I check that already. Is there
> something I'm missing or is this even possible???
> Please reply to the above email address AS WELL AS TO:
> georgecoicici@stripped
> I appreciate any assistance you can offer.
> Thank you
> George
> ---------------------------------------------------------------------
> Before posting, please check:
>   (the manual)
>           (the list archive)
> To request this thread, e-mail <mysql-thread91497@stripped>
> To unsubscribe, e-mail <>
> Trouble unsubscribing? Try:

Joe Ellis
79:6f:75 68:61:76:65 74:6f:6f 6d:75:63:68
74:69:6d:65 6f:6e 79:6f:75:72 68:61:6e:64:73

CGI and MySQLGeorge.Coicici16 Nov
  • Re: CGI and MySQLGerald Clark16 Nov
  • Re: CGI and MySQLJoe Ellis16 Nov
  • Re: CGI and MySQLBruce Ferrell16 Nov