Hi everyone, I’m having an issue after deploy app. I’m using Tomcat8 and MySQL, everithing is running ok. I reach the app deployed from web browser and if I test database conection from console is running too: root@pgi:~# mysqladmin -u root -p status Enter password: Uptime: 51967 Threads: 1 Questions: 45 Slow queries: 0 Opens: 115 Flush tables: 1 Open tables: 34 Queries per second avg: 0.000
The problem is when I try to query the database from app, I can’t login. I can’t reach the db from app-.
this is the spring conf conection file:
<property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3306/xxxxx_db" /> <property name="username" value="test" /> <property name="password" value="xxxxxxxxxxx" />
is there some extra config in this scenario? Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!