C
charly
Greetings,
I've installed mysql on my linux Box and the server is up and running.
I then tried to access my server via JDBC and could not while my Java
code is ok (comes from my course
but we worked under W2K there
)
and I get the following msg :
Server configuration denies access to data source.
I googled and found some info regarding the hosts file which needed to
be set, it was the commonest error and so on ...
<QUOTE>
If you look at your mysql database user table. It probably has an entry for
localhost and bizservers.com. If you change the bizservers.com to be the
same as /etc/hosts or change the order in /etc/hosts or us the IP address in
the mysql database it will work.
</QUOTE>
So I cat my /etc/hosts :
127.0.0.1 localhost
127.0.0.1 localhost.lan.com localhost
10.0.0.1 me.lan.com me
I setted my hosts file and still no go ; Moreover my user's table in
Mysql has a root user on localhost, my firewall allows traffic on localhost.
I posted on a linux group but got no answer so if anybody here can help
a student revise his exams and practise Java
Thx a lot !
I've installed mysql on my linux Box and the server is up and running.
I then tried to access my server via JDBC and could not while my Java
code is ok (comes from my course
and I get the following msg :
Server configuration denies access to data source.
I googled and found some info regarding the hosts file which needed to
be set, it was the commonest error and so on ...
<QUOTE>
If you look at your mysql database user table. It probably has an entry for
localhost and bizservers.com. If you change the bizservers.com to be the
same as /etc/hosts or change the order in /etc/hosts or us the IP address in
the mysql database it will work.
</QUOTE>
So I cat my /etc/hosts :
127.0.0.1 localhost
127.0.0.1 localhost.lan.com localhost
10.0.0.1 me.lan.com me
I setted my hosts file and still no go ; Moreover my user's table in
Mysql has a root user on localhost, my firewall allows traffic on localhost.
I posted on a linux group but got no answer so if anybody here can help
a student revise his exams and practise Java
Thx a lot !