mySQL Connection prompt

Stimulsoft Reports.PHP discussion
Post Reply
rahulmes
Posts: 16
Joined: Fri Apr 08, 2011 2:12 am
Location: India

mySQL Connection prompt

Post by rahulmes »

I have created a report that retrieves data from a mySQL database. Everything is working fine, but the problem is that I am prompted to enter the user name and password each time I generate the report in ViewerFx. I have tried unchecking the 'Prompt User Name and Password' checkbox in the Edit connection dialog box, but if I do so, the connection is not being made and the report is not generating. If I check the box and say Test, enter the credentials in the prompt box, then the connection takes place and the report generates. How can I generate the report without entering the credentials each time? This is my connection string: Server=localhost;Port=3306;Database=crm;User=root; Password=webadmin123;

Thanks.
rahulmes
Posts: 16
Joined: Fri Apr 08, 2011 2:12 am
Location: India

mySQL Connection prompt

Post by rahulmes »

Any reply, please. Thanks.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

mySQL Connection prompt

Post by Vladimir »

Hello,

If you use the connection string with defined 'User' and 'Password' parameters without the 'Prompt User Name and Password' option, when used this specified values to connect to the database. If you set the 'Prompt User Name and Password' option, the user name and password will be asked for each generation of the report.

If you specified the correct user id and password and the connection does not occur correctly, please try to upgrade to the latest prerelease build.

As well make sure no extra spaces in the connection string (in your example, before a password parameter a space is present).

Thank you.
rahulmes
Posts: 16
Joined: Fri Apr 08, 2011 2:12 am
Location: India

mySQL Connection prompt

Post by rahulmes »

Thanks, Vladimir. It was the extra space which was causing the problem. It is working fine now.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

mySQL Connection prompt

Post by Andrew »

Hello,

Thank you for letting us about the issue solved.

Let us know if you have additional questions.
Thank you.
Post Reply