From: Ugur Arpaci Date: September 11 2010 9:35pm Subject: C++ connection problem List-Archive: http://lists.mysql.com/connector-cplusplus/39 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=00c09f8e5d39889b4e049002a309 --00c09f8e5d39889b4e049002a309 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable When i try to connect with the following function i recieve 1045 error as follows. What is the matter? if(mysql_real_connect(conn, server,user, password, database, 0, NULL, 0)=3D=3DNULL) { printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn)); exit(1); } Output: 1045: Access denied for user --=20 U=C4=9Fur ARPACI --00c09f8e5d39889b4e049002a309--