Problem with creation of connection to MySql

Stimulsoft Reports.PHP discussion
Post Reply
Mariusz
Posts: 3
Joined: Mon Mar 21, 2016 11:35 pm

Problem with creation of connection to MySql

Post by Mariusz »

Hello,
On my linux hosting I'm trying Stimulsoft Reports.PHP 2016.1 Trial and I have problem with creation connection to MySql.
This is my connection string:
Server=localhost;Database=xxxxx;User=xxxx; Password=xxx;
After clicking Test nothings happens, but on js console:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data in http://mydomena/JS/Samples/scripts/stim ... reports.js

Can you help me?

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

Re: Problem with creation of connection to MySql

Post by Vladimir »

Hello,

Please try to use the sample project from this archive:
https://drive.google.com/file/d/0BxTYlh ... sp=sharing

We tested the MySql connection on our test database using this example and js libraries without any errors.
Please tell us about the results.

Thank you.
Mariusz
Posts: 3
Joined: Mon Mar 21, 2016 11:35 pm

Re: Problem with creation of connection to MySql

Post by Mariusz »

Hello,
Unfortunately nothing changed :( There is the same problem.
You can try testing on:

http://stimulsoft.linuxpl.info/JS/Samples/
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Problem with creation of connection to MySql

Post by Vladimir »

Hello,

Most likely your server is using PHP 5.2 or lower.
Requires PHP 5.3 or above, since in the project we use an anonymous functions.

Please check the version of PHP you are using.

Thank you.
Mariusz
Posts: 3
Joined: Mon Mar 21, 2016 11:35 pm

Re: Problem with creation of connection to MySql

Post by Mariusz »

Ok, that was the problem.
Thank you :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with creation of connection to MySql

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply