MySql no Linux não conecta

3 respostas
rafael_jesus

Cannot Connect to Database Server
Your connection attempt failed for user ‘root’ from your host to server at localhost:3306:
User ‘root’ has exceeded the ‘max_questions’ resource (current value: 10)

Please:

1 Check that mysql is running on server localhost

2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)

3 Check the root has rights to connect to localhost from your address (mysql rights define what clients can connect to the server and from which machines)

4 Make sure you are both providing a password if needed and using the correct password for localhost connecting from the host address youre connecting from

Galera, já desentegrei o mysql do meu ubuntu 2 vezez e não consego conectar…

Vou explicar o que eu fiz:

Não sei por qual motivo eu criei uma connexão no server administrator, fui em option file >> networking >> Advanced modifiquei o MAX_CONNECTORS_ERROS de 0 mudei para 10 e MAX_RETRY_COUNT de 0 foi pra 10 tbm…O problema é que não consigo voltar para 0 de novo…ahhamm, mas Rafael pq vc não vai la no my.cnf e os modifica…no my.cnf não aparece os atributos que eu modifiquei, só aparece o nr_connectios = 100…

Não sei mais o que fazer, desistalei 2 vezes…TUDO… e instalei novamente e tudo que eu acesse aparece User ‘root’ has exceeded the ‘max_questions’ resource (current value: 10)…

Ao testar a connection ela conecta tranquilo, mas para abrir não…

Conto com vcs!!!

3 Respostas

ViniGodoy

E isso fez seu caps lock parar de funcionar?

Por favor, não poste títulos usando SOMENTE LETRAS MAIÚSCULAS.

Outra coisa, você já verificou as 4 coisas que ele pede para verificar na mensagem de erro?
E já procurou por esse erro no google?

rafael_jesus

Opaaah amigão…tranquilo…foi mal aii…

User ‘root’ has exceeded the ‘max_questions’ resource (current value: 10) essa é a questão, pq eu havia mudado em NetworkingMAX_CONNECTORS_ERROS de 0 mudei para 10 e MAX_RETRY_COUNT de 0 foi pra 10, só para teste, porém quando eu vou até lá e a mudo, ele volta a 10…então fui até o arquivo my.cfn e não vi nada em que pudesse ser alterado…Antes estava funcionando normalmente o mySQL…nem sei o que fazer mais

Se alguém puder ajudar pelo amor de Deus estou a disposição…

Abracs!!

rafael_jesus

Fui no site do mySQL e havia uma dúvida respondida, segue resposta:

Not to worry. This setting is a per hour setting, so you should be able to log in in a short time and update the mysql.user table for the user account in question. You can use

UPDATE mysql.user SET max_questions=0 WHERE User=‘root’;

setting to 0 is unlimited queries…

Alternately, you can use:

GRANT USAGE ON . TO ‘root’@'localhost’
WITH MAX_QUERIES_PER_HOUR 0;

Estou no trabalho agora quando chegar em casa farei isso e posto de volta aqui, ok???

Abrcs

Criado 22 de setembro de 2011
Ultima resposta 23 de set. de 2011
Respostas 3
Participantes 2