espresso Posted March 13, 2012 Share Posted March 13, 2012 hello allI have a problem, I have a data base Myphpadmin,xml file to create the dimensions and measuresthe connection works with iReporthours should I do if I understood the connection with JasperSoft to make olapbut I can not connect to the databaseI insert the data that are:Driver: org.mysql.Driverurl: jdbc: mysql :/ / localhost: 3306/nomedbwhen I go to test the connection tells me failedI inserted anywhere: mysql-connector-java-5.0.5-bin Someone can explain all the steps to configure my database and XML?? I need that datathanksPost Edited by espresso at 03/13/2012 22:38 Link to comment Share on other sites More sharing options...
ogavavka Posted March 17, 2012 Share Posted March 17, 2012 Hi, about your connectionIf you can sucessfully connect to database using iReport then look for driver name and URL in iReportenter into Connections/Datasources select connectionpush "Modify" buttonthere you find which driver to useand URLin my case driver: com.mysql.jdbc.DriverURL: jdbc:mysql://127.0.0.1:3306/databasenamei was trying to upload a image but i receive errors, trying to attach file...About mysql-connector-java.... it must be in server lib folder, in my case: Jasperserver\apache-tomcat\lib\my server version 4.5.0Good luck. Link to comment Share on other sites More sharing options...
espresso Posted March 19, 2012 Author Share Posted March 19, 2012 thanks for the answeriReport with me I can not connect me with JasperSoft success and that I can not follow all the procedures in this guide miente but when I go to add a new data source does not connectI have the version mysql-connector-java-5.1.5-bin Link to comment Share on other sites More sharing options...
ogavavka Posted March 19, 2012 Share Posted March 19, 2012 To help you - need more data:1. Which OS you use ?2. Where mysql server is (on same host with Jasperserver or not) ?Is mysql server listeting for connection on 3306 port and it`s acessible ?to check this try running command "telnet ip_address_of_mysql_server 3306"if it`s in same machine then "telnet 127.0.0.1 3306"if mysql accept connection then you receive something like this " 5.0.67-community-nt"if you receive "Connection failure" or "timeout" then Mysql server is not configured to work with network or firewall blocking it If connection to mysql are sucessfull, then you must check is your login in mysql allowed to work from network ! Link to comment Share on other sites More sharing options...
atifpmalik Posted March 21, 2012 Share Posted March 21, 2012 espresso .. have you been able to figure out what was wrong .. ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now