Jump to content
correio25

[Resolvido] Access denied for user ''@'localhost' (using password: NO)

Recommended Posts

correio25

Boa tarde,

Estou a fazer uma query à BD mysql e depois apresento o resultado numa tabela.

A seguir, ainda no mesmo ficheiro, realizo a mesma query à mesma BD e apresento o resultado novamente numa tabela, mas agora com uma condição.

Em vez de aparecerem as tabelas estão aparecer warnings.

Já modifiquei alguns privilégios na BD, mas o problema continua.

Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in ...

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in ...

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in ...

Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in ...

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in ...

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in ...

Share this post


Link to post
Share on other sites
HappyHippyHippo

A unica mensagem que interessa e a primeira. Continuas sem permissoes para aceder a base de dados

Once esta a base de dados e qual o novel de permissoes do utilizador "user" ?


IRC : sim, é algo que ainda existe >> #p@p

Share this post


Link to post
Share on other sites
KTachyon

Confirma que lhe deste permissões para aceder sem usar password no localhost.


“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.