Re: Remote MySQL



keiler <keilerg@xxxxxxxx> wrote:
I need to connect to a remote MySQL data base, but I don?t find the way.
I have a similar data base in my computer and I get the connection in this
way:
conn=database('red_neuronal','root','','com.mysql.jdbc.Driver',
'jdbc:mysql://localhost/red_neuronal')

When I try to connect to other computer, where there is the same data
base, I use:
conn=database('red_neuronal','root','','com.mysql.jdbc.Driver',
'jdbc:mysql://10.34.13.50/red_neuronal')
but I get the error:
null, message from server: "Host 'biouci-14.uci.cu' is not allowed
to connect to this MySQL server"

Please help me

That would likely be a problem with the permissions you have on the remote
server. To confirm, try connecting using the command line mysql client
application (i.e. without MATLAB at all) and see what it tells you.

I expect you are going to need to give yourself permission to connect from
your localhost explicitly, or from all hosts.

Ask you database administrator for some help with that, or read about the
grant command in the mysql manual. Something like this:

GRANT all ON red_neuronal.* TO 'scott'@'%' IDENTIFIED BY 'tiger';

And if you have not already done so, make sure you set a root password for
the database.

--
Dr Tristram J. Scott
Energy Consultant
.



Relevant Pages

  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... How does it relate to e.g. a script performing a large mysql query? ... 2.b) how the connection is set up. ... the server stops the script execution. ...
    (comp.lang.php)
  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... the way the client is implemented in the php mysql extension and 2.b) how the connection is set up. ... the server stops the script execution. ...
    (comp.lang.php)
  • Re: hitting the limits
    ... relatively straight forward MySql database. ... 10K visitors a month and an 80Mb database are nothing. ... heavily loaded server. ... But the connection will hang around until the garbage ...
    (comp.lang.php)
  • Re: VFP8 & MySQL
    ... > VFP functions like NVL to a MySQL one, definitely it made the switch very ... > About your connection problem, I have mine setup as default for 100 ... As for the server, we left it ... The server crashed and corrupted the database. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Shorewall and MySQL problem - solved
    ... Well, now the system accepts any connection besides mysql for ip,ip,ip ... It is a solution for mysql, but your server is now more at risk from ... firewall via poor programming practices. ...
    (comp.os.linux.networking)