How can I connect to MySQL?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,there,

I have no way to connect to MySQL database which is setup on Linux with
statement below in my MFC application.

mysql_real_connect(MyData,"202.44.131.11","username","password","dbname",MYS
QL_PORT,NULL,0)

However, I can connect to MySQL database which is set up on Windows.

What's the possible problem? BTW, I use libMySQL.lib and libMySQL.dll when
connecting.


--

Best regards.

Susan (Kong Rui)
www.365rainbow.com
susan@xxxxxxxxxxxxxx
Ph: (86)10 65802501 Fax: (86) 10 65802503
803 Huapu Internationational Plaza
19 ChaoyangmenWai Avenue
Beijing 100020 China


.



Relevant Pages

  • Re: Problems migrating from IIS to Apache
    ... I noticed that the tables in the MySQL database on the ... windows server all had lowercase names. ... I think this matters on Linux :-) Anyways, ... then index.php redirects it back to itself over & ...
    (comp.lang.php)
  • Re: HELP: Auto FTP
    ... > Cirene wrote: ... >> I have a linux box and want to auto ftp data from a MySql database to ...
    (alt.os.linux)
  • Re: Post variables not working ?
    ... on the site demo page but not for me. ... I've setup the mysql database for it, and copied the php files my local ...
    (comp.lang.php)
  • HELP: Auto FTP
    ... I have a linux box and want to auto ftp data from a MySql database to ... Any free auto-ftp software available? ...
    (alt.os.linux)
  • Creating a C application to be run on another machine
    ... I want to create a C application which reads/writes data from/to a ... MySQL DataBase. ... I want to compile it on my Linux box, ...
    (comp.lang.c)