On Wed, 28 Oct 2009 19:40:18 -0200, Marcel Bonnet wrote > Cara, veja se isso resolve: mysql> grant all on scrat.* to 'usuario'@'%'; > note a aspa simples no '%' > Copiando tuas linhas não deu certo, mas veja assim como te mostrei acima: > > [marcelbon...@moon /usr/home/marcelbonnet]$ mysql -u root -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 13 > Server version: 5.0.86 FreeBSD port: mysql-server-5.0.86 > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > statement. > > mysql> create user 'usuario'@'%' identified by '123qwe456'; > Query OK, 0 rows affected (0.00 sec) > > mysql> grant all on scrat.* to 'usuario'@'%'; > Query OK, 0 rows affected (0.00 sec) > > mysql> exit > Bye > [marcelbon...@moon /usr/home/marcelbonnet]$ mysql -u usuario -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 14 > Server version: 5.0.86 FreeBSD port: mysql-server-5.0.86 > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > statement. > > mysql>
Rapaz o que tava faltado foi um FLUSH PRIVILEGES para forçar a atualização dos caches internos do mysql nas versões anteriores que eu utilizava, como a sua 5.0.x tbm funciona os comandos dados sem a necessidade do flush, porém dentro do manual do MySAQL nos comandos create user, grant e drop user nenhuma reverencia direta a necessidade de utilizar o FLUSH, mas é isso ai vicendo e aprendendo .... do manuel do MySQL: FLUSH PRIVILEGES Reloads the privileges from the grant tables in the mysql database. On Unix, this also occurs if the server receives a SIGHUP signal. The server caches information in memory as a result of GRANT, CREATE USER, CREATE SERVER, and INSTALL PLUGIN statements. This memory is not released by the corresponding REVOKE, DROP USER, DROP SERVER, and UNINSTALL PLUGIN statements, so for a server that executes many instances of the statements that cause caching, there will be an increase in memory use. This cached memory can be freed with FLUSH PRIVILEGES. > > 2009/10/28 Nilton Jose Rizzo <[email protected]> > > > > > Pessaos alguem pode me ajudar .... > > > > Estou com problemas com um server Mysql 5.1.38 em um FreeBSD 7.2STABLE > > > > O caso é o seguinte .. criei um usuario com senha da seguinte forma > > > > create user 'usuario'@'%' identified by '123qwe456'; > > > > grant all on banco.* to 'usuario'; > > > > bom quando eu logo dessa forma > > > > mysql -u usuario -p > > > > ele diz: > > > > myserver# mysql -u usuario -p > > Enter password: > > ERROR 1045 (28000): Access denied for user 'usuario'@'localhost' (using > > password: YES) > > > > e quando faço : > > > > server# mysql -u usuario > > Welcome to the MySQL monitor. Commands end with ; or \g. > > Your MySQL connection id is 86137 > > Server version: 5.1.38 FreeBSD port: mysql-server-5.1.38 > > > > Type 'help;' or '\h' for help. Type '\c' to clear the current input > > statement. > > > > mysql> > > > > o que fazer??? a senha ta lá o usuario ... sempre fiz assim e funcionou já > > olhei no site do mysql e nada ... ta la igualzinho a isso só que não > > fuinciona > > eu instalei via ports será que esquici de algo? > > > > muito estranho nema o DBdesign consegue logar ... estranho ... > > > > > > > > > > > > -- > > Nilton José Rizzo > > 805 Informatica > > Disseminando tecnologias > > 021 2413 9786 > > > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd -- Nilton José Rizzo 805 Informatica Disseminando tecnologias 021 2413 9786 ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

