> Hi Sinisa,
You are right , I did a select * from user and the host field is indeed localhost. How
can I update that field , and I do not have a host table. Should I modify anly this
table or not ?
Another question, how can I add a user and also a machine ( host field ) ? I want to
set
up a new user on the test database and I want to connect to that database from
ares.main.ro ?
Thanks you for your time,
Regards,
Nicu
> Nicu Popovici writes:
> > Hello Gurus,
> >
> > I managed to compile and link my sample file substituting mysql_init() with
> > my_init() and mysql_real_connect() to mysql_connect(). I get now the following
>error
> >
> > ----------------------
> > Failed to connect to database! Error jHost 'ares.main.ro' is not allowed to connect
> > to this MySQL server [nicu@ares QA]$
> >
> > Any ideea why or where to look for an answer ?
> >
> > Regards,
> > Nicu
> >
> >
>
> Hi!
>
> The above has nothing to do with your program.
>
> Simply, ares.main.ro has not been entered in hosts table in mysql
> database.
>
> Read more on the `Access denied' in our manual.
>
> The fact that there are no mysql_init and mysql_real_connect in the
> library speaks that you made some problems in building it, or that you
> have used some very old version.
>
> Regards,
>
> Sinisa
>
> ____ __ _____ _____ ___ == MySQL AB
> /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
> /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
> /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
> /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
> ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
> /*/ \*\ Developers Team
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php