- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- MySql errors on RH linux 7.2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 03:13 AM
12-10-2003 03:13 AM
I have one problem running MySql on Linux.. this is th error:
javax.jdo.JDOFatalDataStoreException: Cannot initialize datasource with URL "jdbc:mysql://172.21.0.82:3306/RobotReservas" and JDBC driver com.mysql.jdbc.Driver due to a java.sql.SQLException: Server configuration denies access to data source (errorCode=0, SQLState=08001)
NestedThrowables:
java.sql.SQLException: Server configuration denies access to data source
at com.libelis.lido.ds.jdbc.k.getConnection(k.java:66)
at com.libelis.lido.ds.jdbc.c.b.h(b.java:91)
at com.libelis.lido.ds.jdbc.n.
at com.libelis.lido.ds.jdbc.m.d(m.java:63)
at com.libelis.lido.c.
at com.libelis.lido.d.a(d.java:619)
at com.libelis.lido.internal.k.b.a(b.java:50)
at com.libelis.lido.d.
at com.libelis.lido.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:380)
at robotPack.ReservaTestArchivo.
at robotPack.ReservaTestArchivo.main(ReservaTestArchivo.java:207)
NestedThrowablesStackTrace:
java.sql.SQLException: Server configuration denies access to data source
at com.mysql.jdbc.MysqlIO.init(Unknown Source)
at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.Driver.connect(Unknown Source)
at com.libelis.lido.ds.jdbc.k.getConnection(k.java:58)
at com.libelis.lido.ds.jdbc.c.b.h(b.java:91)
at com.libelis.lido.ds.jdbc.n.
at com.libelis.lido.ds.jdbc.m.d(m.java:63)
at com.libelis.lido.c.
at com.libelis.lido.d.a(d.java:619)
at com.libelis.lido.internal.k.b.a(b.java:50)
at com.libelis.lido.d.
at com.libelis.lido.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:380)
at robotPack.ReservaTestArchivo.
at robotPack.ReservaTestArchivo.main(ReservaTestArchivo.java:207)
Process exited with exit code 0.
It could be Kernel parameters problems?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 04:03 AM
12-10-2003 04:03 AM
Re: MySql errors on RH linux 7.2
service iptables stop
or
service ipchains stop
Then re-test.
If the problem goes away, make appropriate firewall adjustments. /etc/sysconfig/iptables or /etc/sysconfig/ipchains
The firewall causing the issue may be on another machine.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 04:30 AM
12-10-2003 04:30 AM
Re: MySql errors on RH linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 04:40 AM
12-10-2003 04:40 AM
Re: MySql errors on RH linux 7.2
In your case login as root type and execute the following ( But Beware that this will stop your firewall in other words open your system to the outside world )
to do this just type
#service ipchains stop
then test again if this is good
start the firewall again
to do this type
#service ipchains start
then do the command
#ipchains -L
and tell you what is seen (cut and paste here if this is allright for you to edit this here )
we will see how to futher help
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 04:50 AM
12-10-2003 04:50 AM
Re: MySql errors on RH linux 7.2
thanks
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 04:55 AM
12-10-2003 04:55 AM
Re: MySql errors on RH linux 7.2
[root@salato-apl10 sysconfig]# ipchains -L
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT tcp -y---- anywhere anywhere any -> ftp
ACCEPT tcp -y---- anywhere anywhere any -> ssh
ACCEPT tcp -y---- anywhere anywhere any -> telnet
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere anywhere n/a
REJECT tcp -y---- anywhere anywhere any -> 0:1023
REJECT tcp -y---- anywhere anywhere any -> nfs
REJECT udp ------ anywhere anywhere any -> 0:1023
REJECT udp ------ anywhere anywhere any -> nfs
REJECT tcp -y---- anywhere anywhere any -> x11:6009
REJECT tcp -y---- anywhere anywhere any -> xfs
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:17 AM
12-10-2003 05:17 AM
Re: MySql errors on RH linux 7.2
When you stopped ipchains, What where the test results ? good, any more error's ?
or is it still the same ?
?
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:39 AM
12-10-2003 06:39 AM
Re: MySql errors on RH linux 7.2
[root@salato-apl10 sysconfig]# service ipchains stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
[root@salato-apl10 sysconfig]# ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 07:33 AM
12-10-2003 07:33 AM
Re: MySql errors on RH linux 7.2
What I mean is when ipchains is stopped
if you do the Mysql test do you have the mysql java error ? still ! yes or no ?
if not
then it is in ipchains
else it is something different
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 07:38 AM
12-10-2003 07:38 AM
Re: MySql errors on RH linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 08:14 AM
12-10-2003 08:14 AM
Re: MySql errors on RH linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 08:23 AM
12-10-2003 08:23 AM
Re: MySql errors on RH linux 7.2
When you get your results, if ipchains clears up the situation, correcting the issue will be straightforward.
Databases use ports and sockets to run data connection sessions. All you need to do is look at the mysql configuration file for what ports(in oracle the port numbers are in the init.ora file) it needs open.
Then find an ipchains port configuration, say for port 22 thats open the way you need, duplicate it in the ipchains file and change the port number.'
Then service ipchains start and re-run the test.
The strange thing about this whole issue is the last line of the orginal post
Process exited with exit code 0.
That usually means everythig worked right.
Looking forward to your results.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 09:53 AM
12-10-2003 09:53 AM
Re: MySql errors on RH linux 7.2
Can you access your MySQL database out-side of the Java class? (i.e. from command line 'mysql -p -uroot mysql').
Ensure that the User and DB tables allow access from the host you are coming from for the user you are using on the database (select, from user and db, where user = '