Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-16 Thread Érico
ok

I have tried these :

ifconfig -a
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff00
gif0: flags=8010POINTOPOINT,MULTICAST mtu 1280
stf0: flags=0 mtu 1280
fw0: flags=8863UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 4078
lladdr 70:cd:60:ff:fe:eb:72:ea
media: autoselect full-duplex
status: inactive
en1: flags=8863UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
ether e4:ce:8f:04:7c:f8
inet6 fe80::e6ce:8fff:fe04:7cf8%en1 prefixlen 64 scopeid 0x5
inet 169.254.99.150 netmask 0x broadcast 169.254.255.255
media: autoselect
status: active
en0: flags=8863UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
ether c8:2a:14:1a:47:ea
media: autoselect (none)
status: inactive
wc2: flags=822BROADCAST,SMART,SIMPLEX mtu 1500
ether 00:02:55:11:19:76
media: 1000baseT (unknown type)
=


mac:bin ericomtx$ nslookup localhost
;; connection timed out; no servers could be reached

=


mac:bin ericomtx$ netstat -an | grep 3306
tcp46  0  0  *.3306 *.*LISTEN
tcp4   0  0  *.3306 *.*LISTEN

=

mac:bin ericomtx$ netstat -ln | grep mysql
ff801403c280 stream  0  00
ff801403b20000 /tmp/mysql.sock
ff801403a9c0 stream  0  0 ff801bbb78b8
000 /tmp/mysql.sock
ff8013fb0bc0 stream  0  0 ff8014aa8078
000 /opt/local/var/run/mysql5/mysqld.sock
*** here ... this last one is related to a previous mysql macports version
***

=

mac:lib ericomtx$ ps xa | grep mysqld
  231   ??  S  0:00.01 /bin/sh /opt/local/lib/mysql5/bin/mysqld_safe
--datadir=/opt/local/var/db/mysql5
--pid-file=/opt/local/var/db/mysql5/mac.local.pid
  295   ??  S  0:00.74 /opt/local/libexec/mysqld --basedir=/opt/local
--datadir=/opt/local/var/db/mysql5 --user=_mysql
--log-error=/opt/local/var/db/mysql5/mac.local.err
--pid-file=/opt/local/var/db/mysql5/mac.local.pid
--socket=/opt/local/var/run/mysql5/mysqld.sock
 2175 s000  S  0:00.02 /bin/sh
/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/bin/mysqld_safe
--datadir=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/data
--pid-file=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/data/mac.local.pid
 2273 s000  S  0:00.35
/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/bin/mysqld
--basedir=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86
--datadir=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/data
--plugin-dir=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/lib/plugin
--user=mysql
--log-error=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/data/mac.local.err
--pid-file=/Users/ericomtx/development/mysql/mysql-5.6.15-osx10.6-x86/data/mac.local.pid


=

I have uninstalled everything related to mysql ports

these dirs no longer exist :
/opt/local/lib/mysql5


/opt/local/libexec

I don't know from where they are getting called



2014/1/15 Claudio Nanni claudio.na...@gmail.com

 Hi


   |  | ericomtxmacbookpro.local |
  *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
  


 mysql DELETE FROM mysql.user WHERE user='';
 mysql FLUSH PRIVILEGES;

 maybe helps?

 Cheers

 --
 Claudio



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-15 Thread Claudio Nanni
Hi


   |  | ericomtxmacbookpro.local |
  *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
  


mysql DELETE FROM mysql.user WHERE user='';
mysql FLUSH PRIVILEGES;

maybe helps?

Cheers

-- 
Claudio


Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-14 Thread Érico
 yes it is ...

  also , the eclipse is also local ...

  in both ... mysql-admin php application , plus inside eclispe plugin ...

  same behavior in both


2014/1/13 Reindl Harald h.rei...@thelounge.net

 i doubt that the webserver is running on the same
 machine as your mysql command shell

 Am 13.01.2014 23:59, schrieb Érico:
  true
 
  but please check this out :
 
  mysql Select user, host, password from mysql.user;
 
 +--+--+---+
  | user | host | password
  |
 
 +--+--+---+
  | root | localhost|
 *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
  | root | ericomtxmacbookpro.local |
 *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
  | root | 127.0.0.1|
 *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
  | root | ::1  |
   |
  |  | ericomtxmacbookpro.local |
 *E85DC00A0137C6171923BE35EDD809573FB3AB4F |
 
 +--+--+---+
  5 rows in set (0.00 sec)
 
  all passwords are filled in the db ...
 
  also ... I can connect through command line
 
  what I can't do is :
  1. connect or even ping inside eclipse using jconnector
 
  2. connect from a php app (mysql adim) with or with out pwd ...
  providing the error
 
 
Access denied for user 'root'@'localhost' (using password: YES)
 
 
Access denied for user 'root'@'localhost' (using password: NO)
 
 
  2.1 when I use 127.0.0.1 on mysql admin url ... I get a connection closed
 
  so ... my point is :
 
  in both cases  when using 127.0.0.1 or localhost ...
 
  can the OS be blocking the connection ?
 
  if so , how could I check this ?
 
  Regards
  Érico
 
 
  2014/1/13 Reindl Harald h.rei...@thelounge.net mailto:
 h.rei...@thelounge.net
 
  WTF - we are talking about *database connections* and *not*
 http-URL's
  the webserver is only the *messenger*
 
  Am 13.01.2014 18:54, schrieb Érico:
   using both urls I get the same error :
  
   http://localhost/mysql/index.php
   http://127.0.0.1/mysql/index.php
  
   in 127.0.0.1... after I submit the index.php ... it redirects to
 localhost
   too ..
  
   2014/1/13 Reindl Harald h.rei...@thelounge.net mailto:
 h.rei...@thelounge.net
  
  
  
   Am 13.01.2014 18:28, schrieb Érico:
   ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
   Enter password:
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 31
   Server version: 5.6.15 MySQL Community Server (GPL)
  
   but in the browser I get the error :
  
   Access denied for user 'root'@'localhost' (using password: YES)
  
   I can't find any information in error log and access log
  
   is there any command parameter that I should use when starting
 mysql so
   this doesn't happen?
  
   are you using localhost or 127.0.0.1 in the web-application
   root@localhost != root@127.0.0.1 mailto:root@127.0.0.1 =
 different users
  
   localhost: Unix-Socket
   127.0.0.1 http://127.0.0.1: TCP
 
 

 --

 Reindl Harald
 the lounge interactive design GmbH
 A-1060 Vienna, Hofmühlgasse 17
 CTO / CISO / Software-Development
 m: +43 (676) 40 221 40, p: +43 (1) 595 3999 33
 icq: 154546673, http://www.thelounge.net/

 http://www.thelounge.net/signature.asc.what.htm




Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
Hi

I have installed mysql admin on my local environment

I am able to connect to mysql through command line :

ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.6.15 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql

...

but in the browser I get the error :

Access denied for user 'root'@'localhost' (using password: YES)

I can't find any information in error log and access log

is there any command parameter that I should use when starting mysql so
this doesn't happen ?

I am starting it this way :

sudo ./mysql.server start

my /etc/hosts file :

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1 localhost
#fe80::1%lo0localhost
127.0.0.1   ericomtxmacbookpro.local
127.0.0.1   mysqld


Thks
Érico


Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Reindl Harald


Am 13.01.2014 18:28, schrieb Érico:
 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
 Enter password:
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 31
 Server version: 5.6.15 MySQL Community Server (GPL)

 but in the browser I get the error :
 
 Access denied for user 'root'@'localhost' (using password: YES)
 
 I can't find any information in error log and access log
 
 is there any command parameter that I should use when starting mysql so
 this doesn't happen?

are you using localhost or 127.0.0.1 in the web-application
root@localhost != root@127.0.0.1 = different users

localhost: Unix-Socket
127.0.0.1: TCP





signature.asc
Description: OpenPGP digital signature


Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Erick Ocrospoma
From that error I would suspect you are trying to access to a database
where has not external access. And yeah, try by doing

$ mysql -u root -p database -h localhost -P 3306

change localhost by 127.0.0.1 in order to test if both cases work, and
see which of them (localhost/127.0.0.1) is defined in your web app as
you've been told in the mail before.

On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net wrote:


 Am 13.01.2014 18:28, schrieb Érico:
 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
 Enter password:
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 31
 Server version: 5.6.15 MySQL Community Server (GPL)

 but in the browser I get the error :

 Access denied for user 'root'@'localhost' (using password: YES)

 I can't find any information in error log and access log

 is there any command parameter that I should use when starting mysql so
 this doesn't happen?

 are you using localhost or 127.0.0.1 in the web-application
 root@localhost != root@127.0.0.1 = different users

 localhost: Unix-Socket
 127.0.0.1: TCP






-- 





~ Happy install !



Erick.


---

Cellphone   :  +51 950307809
Blog:  http://zerick.me/
LUG:  http://www.utpinux.org
IRC :   zerick
About :  http://about.me/zerick
Linux User ID :  549567

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
using both urls I get the same error :

http://localhost/mysql/index.php
http://127.0.0.1/mysql/index.php

in 127.0.0.1... after I submit the index.php ... it redirects to localhost
too ..


2014/1/13 Reindl Harald h.rei...@thelounge.net



 Am 13.01.2014 18:28, schrieb Érico:
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
  Enter password:
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 31
  Server version: 5.6.15 MySQL Community Server (GPL)
 
  but in the browser I get the error :
 
  Access denied for user 'root'@'localhost' (using password: YES)
 
  I can't find any information in error log and access log
 
  is there any command parameter that I should use when starting mysql so
  this doesn't happen?

 are you using localhost or 127.0.0.1 in the web-application
 root@localhost != root@127.0.0.1 = different users

 localhost: Unix-Socket
 127.0.0.1: TCP






Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
using localhost the coonection works ...
ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
localhost -P 3306
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 97
Server version: 5.6.15 MySQL Community Server (GPL)




but using 127.0.0.1 no :

ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
127.0.0.1 -P 3306
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: YES)
ericomtxmacbookpro:bin ericomtx$



2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 From that error I would suspect you are trying to access to a database
 where has not external access. And yeah, try by doing

 $ mysql -u root -p database -h localhost -P 3306

 change localhost by 127.0.0.1 in order to test if both cases work, and
 see which of them (localhost/127.0.0.1) is defined in your web app as
 you've been told in the mail before.

 On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net wrote:
 
 
  Am 13.01.2014 18:28, schrieb Érico:
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
  Enter password:
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 31
  Server version: 5.6.15 MySQL Community Server (GPL)
 
  but in the browser I get the error :
 
  Access denied for user 'root'@'localhost' (using password: YES)
 
  I can't find any information in error log and access log
 
  is there any command parameter that I should use when starting mysql so
  this doesn't happen?
 
  are you using localhost or 127.0.0.1 in the web-application
  root@localhost != root@127.0.0.1 = different users
 
  localhost: Unix-Socket
  127.0.0.1: TCP
 
 
 



 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql




Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Erick Ocrospoma
I presume your index.php file uses 127.0.0.1. After login to MySQL try this:

$ grant all privileges to *.* 'root'@'127.0.0.1' identified by yourpassword;

Of course this could not be the best solution, it's just to skip it,
you must look at the query/connection on your php file.

On 13 January 2014 12:57, Érico erico...@gmail.com wrote:
 using localhost the coonection works ...
 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h localhost
 -P 3306
 Enter password:
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A


 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 97

 Server version: 5.6.15 MySQL Community Server (GPL)


 

 but using 127.0.0.1 no :

 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h 127.0.0.1
 -P 3306
 Enter password:
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 password: YES)
 ericomtxmacbookpro:bin ericomtx$



 2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 From that error I would suspect you are trying to access to a database
 where has not external access. And yeah, try by doing

 $ mysql -u root -p database -h localhost -P 3306

 change localhost by 127.0.0.1 in order to test if both cases work, and
 see which of them (localhost/127.0.0.1) is defined in your web app as
 you've been told in the mail before.

 On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net wrote:
 
 
  Am 13.01.2014 18:28, schrieb Érico:
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
  Enter password:
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 31
  Server version: 5.6.15 MySQL Community Server (GPL)
 
  but in the browser I get the error :
 
  Access denied for user 'root'@'localhost' (using password: YES)
 
  I can't find any information in error log and access log
 
  is there any command parameter that I should use when starting mysql so
  this doesn't happen?
 
  are you using localhost or 127.0.0.1 in the web-application
  root@localhost != root@127.0.0.1 = different users
 
  localhost: Unix-Socket
  127.0.0.1: TCP
 
 
 



 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql





-- 





~ Happy install !



Erick.


---

Cellphone   :  +51 950307809
Blog:  http://zerick.me/
LUG:  http://www.utpinux.org
IRC :   zerick
About :  http://about.me/zerick
Linux User ID :  549567

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Erick Ocrospoma
I forgot this. Do it too.

On 13 January 2014 13:01, Erick Ocrospoma zipper1...@gmail.com wrote:
 I presume your index.php file uses 127.0.0.1. After login to MySQL try this:

 $ grant all privileges to *.* 'root'@'127.0.0.1' identified by 
 yourpassword;
$ flush privileges;

 Of course this could not be the best solution, it's just to skip it,
 you must look at the query/connection on your php file.

 On 13 January 2014 12:57, Érico erico...@gmail.com wrote:
 using localhost the coonection works ...
 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h localhost
 -P 3306
 Enter password:
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A


 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 97

 Server version: 5.6.15 MySQL Community Server (GPL)


 

 but using 127.0.0.1 no :

 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h 127.0.0.1
 -P 3306
 Enter password:
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 password: YES)
 ericomtxmacbookpro:bin ericomtx$



 2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 From that error I would suspect you are trying to access to a database
 where has not external access. And yeah, try by doing

 $ mysql -u root -p database -h localhost -P 3306

 change localhost by 127.0.0.1 in order to test if both cases work, and
 see which of them (localhost/127.0.0.1) is defined in your web app as
 you've been told in the mail before.

 On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net wrote:
 
 
  Am 13.01.2014 18:28, schrieb Érico:
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
  Enter password:
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 31
  Server version: 5.6.15 MySQL Community Server (GPL)
 
  but in the browser I get the error :
 
  Access denied for user 'root'@'localhost' (using password: YES)
 
  I can't find any information in error log and access log
 
  is there any command parameter that I should use when starting mysql so
  this doesn't happen?
 
  are you using localhost or 127.0.0.1 in the web-application
  root@localhost != root@127.0.0.1 = different users
 
  localhost: Unix-Socket
  127.0.0.1: TCP
 
 
 



 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql





 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567



-- 





~ Happy install !



Erick.


---

Cellphone   :  +51 950307809
Blog:  http://zerick.me/
LUG:  http://www.utpinux.org
IRC :   zerick
About :  http://about.me/zerick
Linux User ID :  549567

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
the granting is not affecting the tables:

mysql grant all privileges on *.* to root@localhost identified by 'pwd';
Query OK, 0 rows affected (0.00 sec)

mysql FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

...

and if I try the granting in 127.0.0.1 :
mysql grant all privileges to *.* 'root'@'127.0.0.1' identified by
kernel26;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to use
near 'to *.* 'root'@'127.0.0.1' identified by kernel26' at line 1

...


in eclipse using jconnector ... I get the same error :
when pinging :

java.sql.SQLException: Access denied for user 'root'@'localhost' (using
password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)



Could not connect to New MySQL.
Error creating SQL Model Connection connection to New MySQL. (Error: Access
denied for user 'root'@'localhost' (using password: YES))
Access denied for user 'root'@'localhost' (using password: YES)




2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 I forgot this. Do it too.

 On 13 January 2014 13:01, Erick Ocrospoma zipper1...@gmail.com wrote:
  I presume your index.php file uses 127.0.0.1. After login to MySQL try
 this:
 
  $ grant all privileges to *.* 'root'@'127.0.0.1' identified by
 yourpassword;
 $ flush privileges;
 
  Of course this could not be the best solution, it's just to skip it,
  you must look at the query/connection on your php file.
 
  On 13 January 2014 12:57, Érico erico...@gmail.com wrote:
  using localhost the coonection works ...
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
 localhost
  -P 3306
  Enter password:
  Reading table information for completion of table and column names
  You can turn off this feature to get a quicker startup with -A
 
 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 97
 
  Server version: 5.6.15 MySQL Community Server (GPL)
 
 
  
 
  but using 127.0.0.1 no :
 
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
 127.0.0.1
  -P 3306
  Enter password:
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
  password: YES)
  ericomtxmacbookpro:bin ericomtx$
 
 
 
  2014/1/13 Erick Ocrospoma zipper1...@gmail.com
 
  From that error I would suspect you are trying to access to a database
  where has not external access. And yeah, try by doing
 
  $ mysql -u root -p database -h localhost -P 3306
 
  change localhost by 127.0.0.1 in order to test if both cases work, and
  see which of them (localhost/127.0.0.1) is defined in your web app as
  you've been told in the mail before.
 
  On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net
 wrote:
  
  
   Am 13.01.2014 18:28, schrieb Érico:
   ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
   Enter password:
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 31
   Server version: 5.6.15 MySQL Community Server (GPL)
  
   but in the browser I get the error :
  
   Access denied for user 'root'@'localhost' (using password: YES)
  
   I can't find any information in error log and access log
  
   is there any command parameter that I should use when starting
 mysql so
   this doesn't happen?
  
   are you using localhost or 127.0.0.1 in the web-application
   root@localhost != root@127.0.0.1 = different users
  
   localhost: Unix-Socket
   127.0.0.1: TCP
  
  
  
 
 
 
  --
 
 
 
 
 
  ~ Happy install !
 
 
 
  Erick.
 
 
  ---
 
  Cellphone   :  +51 950307809
  Blog:  http://zerick.me/
  LUG:  http://www.utpinux.org
  IRC :   zerick
  About :  http://about.me/zerick
  Linux User ID :  549567
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/mysql
 
 
 
 
 
  --
 
 
 
 
 
  ~ Happy install !
 
 
 
  Erick.
 
 
  ---
 
  Cellphone   :  +51 950307809
  Blog:  http://zerick.me/
  LUG:  http://www.utpinux.org
  IRC :   zerick
  About :  http://about.me/zerick
  Linux User ID :  549567



 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Erick Ocrospoma
On 13 January 2014 13:25, Érico erico...@gmail.com wrote:
 the granting is not affecting the tables:

 mysql grant all privileges on *.* to root@localhost identified by 'pwd';
 Query OK, 0 rows affected (0.00 sec)

 mysql FLUSH PRIVILEGES;
 Query OK, 0 rows affected (0.00 sec)

 ...

 and if I try the granting in 127.0.0.1 :
 mysql grant all privileges to *.* 'root'@'127.0.0.1' identified by
 kernel26;
 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
 that corresponds to your MySQL server version for the right syntax to use
 near 'to *.* 'root'@'127.0.0.1' identified by kernel26' at line 1
It's my error :)  It should be:

mysql grant all privileges on *.* to 'root'@'127.0.0.1' identified by
'kernel26';

 ...


 in eclipse using jconnector ... I get the same error :
 when pinging :

 java.sql.SQLException: Access denied for user 'root'@'localhost' (using
 password: YES)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)

 

 Could not connect to New MySQL.
 Error creating SQL Model Connection connection to New MySQL. (Error: Access
 denied for user 'root'@'localhost' (using password: YES))
 Access denied for user 'root'@'localhost' (using password: YES)




 2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 I forgot this. Do it too.

 On 13 January 2014 13:01, Erick Ocrospoma zipper1...@gmail.com wrote:
  I presume your index.php file uses 127.0.0.1. After login to MySQL try
 this:
 
  $ grant all privileges to *.* 'root'@'127.0.0.1' identified by
 yourpassword;
 $ flush privileges;
 
  Of course this could not be the best solution, it's just to skip it,
  you must look at the query/connection on your php file.
 
  On 13 January 2014 12:57, Érico erico...@gmail.com wrote:
  using localhost the coonection works ...
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
 localhost
  -P 3306
  Enter password:
  Reading table information for completion of table and column names
  You can turn off this feature to get a quicker startup with -A
 
 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 97
 
  Server version: 5.6.15 MySQL Community Server (GPL)
 
 
  
 
  but using 127.0.0.1 no :
 
  ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
 127.0.0.1
  -P 3306
  Enter password:
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
  password: YES)
  ericomtxmacbookpro:bin ericomtx$
 
 
 
  2014/1/13 Erick Ocrospoma zipper1...@gmail.com
 
  From that error I would suspect you are trying to access to a database
  where has not external access. And yeah, try by doing
 
  $ mysql -u root -p database -h localhost -P 3306
 
  change localhost by 127.0.0.1 in order to test if both cases work, and
  see which of them (localhost/127.0.0.1) is defined in your web app as
  you've been told in the mail before.
 
  On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net
 wrote:
  
  
   Am 13.01.2014 18:28, schrieb Érico:
   ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
   Enter password:
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 31
   Server version: 5.6.15 MySQL Community Server (GPL)
  
   but in the browser I get the error :
  
   Access denied for user 'root'@'localhost' (using password: YES)
  
   I can't find any information in error log and access log
  
   is there any command parameter that I should use when starting
 mysql so
   this doesn't happen?
  
   are you using localhost or 127.0.0.1 in the web-application
   root@localhost != root@127.0.0.1 = different users
  
   localhost: Unix-Socket
   127.0.0.1: TCP
  
  
  
 
 
 
  --
 
 
 
 
 
  ~ Happy install !
 
 
 
  Erick.
 
 
  ---
 
  Cellphone   :  +51 950307809
  Blog:  http://zerick.me/
  LUG:  http://www.utpinux.org
  IRC :   zerick
  About :  http://about.me/zerick
  Linux User ID :  549567
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/mysql
 
 
 
 
 
  --
 
 
 
 
 
  ~ Happy install !
 
 
 
  Erick.
 
 
  ---
 
  Cellphone   :  +51 950307809
  Blog:  http://zerick.me/
  LUG:  http://www.utpinux.org
  IRC :   zerick
  About :  http://about.me/zerick
  Linux User ID :  549567



 --





 ~ Happy install !



 Erick.


 ---

 Cellphone   :  +51 950307809
 Blog:  http://zerick.me/
 LUG:  http://www.utpinux.org
 IRC :   zerick
 About :  http://about.me/zerick
 Linux User ID :  549567




-- 





~ Happy install !



Erick.


---

Cellphone   :  +51 950307809
Blog:  http://zerick.me/
LUG:  http://www.utpinux.org
IRC :   zerick
About :  http://about.me/zerick
Linux User ID :  549567

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:  

Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
Hi

didn't work

look ... isn't this something related to this :

are you using localhost or 127.0.0.1 in the web-application
root@localhost != root@127.0.0.1 = different users

localhost: Unix-Socket
127.0.0.1: TCP

...

since I am not able to stabilsh a connection even with using eclipse ...

my /etc/hosts file :

##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1 localhost
#fe80::1%lo0localhost
127.0.0.1   ericomtxmacbookpro.local
#127.0.0.1   mysqld





2014/1/13 Erick Ocrospoma zipper1...@gmail.com

 On 13 January 2014 13:25, Érico erico...@gmail.com wrote:
  the granting is not affecting the tables:
 
  mysql grant all privileges on *.* to root@localhost identified by
 'pwd';
  Query OK, 0 rows affected (0.00 sec)
 
  mysql FLUSH PRIVILEGES;
  Query OK, 0 rows affected (0.00 sec)
 
  ...
 
  and if I try the granting in 127.0.0.1 :
  mysql grant all privileges to *.* 'root'@'127.0.0.1' identified by
  kernel26;
  ERROR 1064 (42000): You have an error in your SQL syntax; check the
 manual
  that corresponds to your MySQL server version for the right syntax to use
  near 'to *.* 'root'@'127.0.0.1' identified by kernel26' at line 1
 It's my error :)  It should be:

 mysql grant all privileges on *.* to 'root'@'127.0.0.1' identified by
 'kernel26';
 
  ...
 
 
  in eclipse using jconnector ... I get the same error :
  when pinging :
 
  java.sql.SQLException: Access denied for user 'root'@'localhost' (using
  password: YES)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
 
  
 
  Could not connect to New MySQL.
  Error creating SQL Model Connection connection to New MySQL. (Error:
 Access
  denied for user 'root'@'localhost' (using password: YES))
  Access denied for user 'root'@'localhost' (using password: YES)
 
 
 
 
  2014/1/13 Erick Ocrospoma zipper1...@gmail.com
 
  I forgot this. Do it too.
 
  On 13 January 2014 13:01, Erick Ocrospoma zipper1...@gmail.com wrote:
   I presume your index.php file uses 127.0.0.1. After login to MySQL
 try
  this:
  
   $ grant all privileges to *.* 'root'@'127.0.0.1' identified by
  yourpassword;
  $ flush privileges;
  
   Of course this could not be the best solution, it's just to skip it,
   you must look at the query/connection on your php file.
  
   On 13 January 2014 12:57, Érico erico...@gmail.com wrote:
   using localhost the coonection works ...
   ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
  localhost
   -P 3306
   Enter password:
   Reading table information for completion of table and column names
   You can turn off this feature to get a quicker startup with -A
  
  
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 97
  
   Server version: 5.6.15 MySQL Community Server (GPL)
  
  
   
  
   but using 127.0.0.1 no :
  
   ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin -h
  127.0.0.1
   -P 3306
   Enter password:
   ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
   password: YES)
   ericomtxmacbookpro:bin ericomtx$
  
  
  
   2014/1/13 Erick Ocrospoma zipper1...@gmail.com
  
   From that error I would suspect you are trying to access to a
 database
   where has not external access. And yeah, try by doing
  
   $ mysql -u root -p database -h localhost -P 3306
  
   change localhost by 127.0.0.1 in order to test if both cases work,
 and
   see which of them (localhost/127.0.0.1) is defined in your web app
 as
   you've been told in the mail before.
  
   On 13 January 2014 12:36, Reindl Harald h.rei...@thelounge.net
  wrote:
   
   
Am 13.01.2014 18:28, schrieb Érico:
ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.6.15 MySQL Community Server (GPL)
   
but in the browser I get the error :
   
Access denied for user 'root'@'localhost' (using password: YES)
   
I can't find any information in error log and access log
   
is there any command parameter that I should use when starting
  mysql so
this doesn't happen?
   
are you using localhost or 127.0.0.1 in the web-application
root@localhost != root@127.0.0.1 = different users
   
localhost: Unix-Socket
127.0.0.1: TCP
   
   
   
  
  
  
   --
  
  
  
  
  
   ~ Happy install !
  
  
  
   Erick.
  
  
   ---
  
   Cellphone   :  +51 950307809
   Blog:  http://zerick.me/
   LUG:  http://www.utpinux.org
   IRC :   zerick
   About :  http://about.me/zerick
   Linux User ID :  549567
  
   --
   MySQL General Mailing List
   For list archives: http://lists.mysql.com/mysql
   To unsubscribe:http://lists.mysql.com/mysql
  
  
  
  
  
   --
  
  
  
  
  
   ~ Happy install !
  
  
  
   

Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread shawn l.green

Hello Érico,

On 1/13/2014 1:49 PM, Érico wrote:

Hi

didn't work

look ... isn't this something related to this :

are you using localhost or 127.0.0.1 in the web-application
root@localhost != root@127.0.0.1 = different users

localhost: Unix-Socket
127.0.0.1: TCP

...

since I am not able to stabilsh a connection even with using eclipse ...

my /etc/hosts file :

##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1 localhost
#fe80::1%lo0localhost
127.0.0.1   ericomtxmacbookpro.local
#127.0.0.1   mysqld



The thing to remember is that 'localhost' or '127.0.0.1' is where the 
server believes the connection is coming from. The password you must be 
using in your client connection attempt must match the one used on the 
server for the mysql user 'root'@'localhost' or you will not authenticate.


You also need to remember that if your .php page is on a different 
machine, it is not connecting to the same mysqld that you have running 
in your development machine (your personal environment). Your .PHP page 
is trying to connect to the one running on its host machine. That user 
'root' may have an entirely different password.


Your programs are connecting fine. If they didn't you would get a 
different message. They are failing to authenticate which means that the 
mysqld they are connecting to does not recognize the password you are 
using for the account you are trying to authenticate as.


Regards,
--
Shawn Green
MySQL Senior Principal Technical Support Engineer
Oracle USA, Inc. - Hardware and Software, Engineered to Work Together.
Office: Blountville, TN

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Érico
Hi

no connections outside command line are being accepted . I have connected
through command line , but not using eclipse for example ... it gets the
same error from the web app

my apache and pages are in the same computer that mysql

I am not getting password issues.. otherwise I would not connect through
command line

Thks


2014/1/13 shawn l.green shawn.l.gr...@oracle.com

 Hello Érico,


 On 1/13/2014 1:49 PM, Érico wrote:

 Hi

 didn't work

 look ... isn't this something related to this :

 are you using localhost or 127.0.0.1 in the web-application
 root@localhost != root@127.0.0.1 = different users

 localhost: Unix-Socket
 127.0.0.1: TCP

 ...

 since I am not able to stabilsh a connection even with using eclipse ...

 my /etc/hosts file :

 ##
 127.0.0.1   localhost
 255.255.255.255 broadcasthost
 ::1 localhost
 #fe80::1%lo0localhost
 127.0.0.1   ericomtxmacbookpro.local
 #127.0.0.1   mysqld


 The thing to remember is that 'localhost' or '127.0.0.1' is where the
 server believes the connection is coming from. The password you must be
 using in your client connection attempt must match the one used on the
 server for the mysql user 'root'@'localhost' or you will not authenticate.

 You also need to remember that if your .php page is on a different
 machine, it is not connecting to the same mysqld that you have running in
 your development machine (your personal environment). Your .PHP page is
 trying to connect to the one running on its host machine. That user 'root'
 may have an entirely different password.

 Your programs are connecting fine. If they didn't you would get a
 different message. They are failing to authenticate which means that the
 mysqld they are connecting to does not recognize the password you are using
 for the account you are trying to authenticate as.

 Regards,
 --
 Shawn Green
 MySQL Senior Principal Technical Support Engineer
 Oracle USA, Inc. - Hardware and Software, Engineered to Work Together.
 Office: Blountville, TN


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/mysql




Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Reindl Harald
WTF - we are talking about *database connections* and *not* http-URL's
the webserver is only the *messenger*

Am 13.01.2014 18:54, schrieb Érico:
 using both urls I get the same error :
 
 http://localhost/mysql/index.php
 http://127.0.0.1/mysql/index.php
 
 in 127.0.0.1... after I submit the index.php ... it redirects to localhost
 too ..
 
 2014/1/13 Reindl Harald h.rei...@thelounge.net
 


 Am 13.01.2014 18:28, schrieb Érico:
 ericomtxmacbookpro:bin ericomtx$ ./mysql -u root -p mysql-admin
 Enter password:
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 31
 Server version: 5.6.15 MySQL Community Server (GPL)

 but in the browser I get the error :

 Access denied for user 'root'@'localhost' (using password: YES)

 I can't find any information in error log and access log

 is there any command parameter that I should use when starting mysql so
 this doesn't happen?

 are you using localhost or 127.0.0.1 in the web-application
 root@localhost != root@127.0.0.1 = different users

 localhost: Unix-Socket
 127.0.0.1: TCP



signature.asc
Description: OpenPGP digital signature


Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Reindl Harald
*your application* is connecting to mysql
*your application* is using a hostname
*your application* *may* use 127.0.0.1
*your application* should use localhost to *connect to the databse*
*your application* can only use TCP *if there is* a *mysql user* with *that 
host*

http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html

Am 13.01.2014 20:38, schrieb Érico:
 no connections outside command line are being accepted . I have connected
 through command line , but not using eclipse for example ... it gets the
 same error from the web app
 
 my apache and pages are in the same computer that mysql
 
 I am not getting password issues.. otherwise I would not connect through
 command line
 
 2014/1/13 shawn l.green shawn.l.gr...@oracle.com
 
 On 1/13/2014 1:49 PM, Érico wrote:

 Hi

 didn't work

 look ... isn't this something related to this :

 are you using localhost or 127.0.0.1 in the web-application
 root@localhost != root@127.0.0.1 = different users

 localhost: Unix-Socket
 127.0.0.1: TCP

 ...

 since I am not able to stabilsh a connection even with using eclipse ...

 my /etc/hosts file :

 ##
 127.0.0.1   localhost
 255.255.255.255 broadcasthost
 ::1 localhost
 #fe80::1%lo0localhost
 127.0.0.1   ericomtxmacbookpro.local
 #127.0.0.1   mysqld


 The thing to remember is that 'localhost' or '127.0.0.1' is where the
 server believes the connection is coming from. The password you must be
 using in your client connection attempt must match the one used on the
 server for the mysql user 'root'@'localhost' or you will not authenticate.

 You also need to remember that if your .php page is on a different
 machine, it is not connecting to the same mysqld that you have running in
 your development machine (your personal environment). Your .PHP page is
 trying to connect to the one running on its host machine. That user 'root'
 may have an entirely different password.

 Your programs are connecting fine. If they didn't you would get a
 different message. They are failing to authenticate which means that the
 mysqld they are connecting to does not recognize the password you are using
 for the account you are trying to authenticate as.



signature.asc
Description: OpenPGP digital signature


Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread shawn l.green

Hello Reindl,

On 1/13/2014 3:01 PM, Reindl Harald wrote:

*your application* is connecting to mysql
*your application* is using a hostname
*your application* *may* use 127.0.0.1
*your application* should use localhost to *connect to the databse*
*your application* can only use TCP *if there is* a *mysql user* with *that 
host*

http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html




... snip ...

The problem is, his other clients (his php page,his eclipse environment) 
is where he has problems making the connection from. His direct 
connection (using the mysql command line client) is having no problems.


So, the issues are:
* Why is a client connection, from the same host as the mysqld server, 
initiated from his PHP code failing to connect?


* Why is a client connection, from the same host machine as his mysqld 
server, initiated from his Eclipse programming tool failing to connect?



We are not saying he is using HTTP commands to log into his database.
We have clarified that both his client and his server are on the same host.

My last advice is that the password he is providing through his other 
clients must be incorrect. I even suggested that he may be validating 
his account on one instance but his tools are attempting to connect to a 
different instance.


And whether I say
   mysql -u root -h localhost  (via Unix socket)

or I say
   mysql -u root -h 127.0.0.1  (via TCP socket)

they may /both/ be reported as 'localhost' in the error message because 
of how the reverse DNS lookup happens during the user authentication 
process and the contents of his local /etc/hosts file.

http://dev.mysql.com/doc/refman/5.6/en/connection-access.html


Does that give you a better image of the current problem?
--
Shawn Green
MySQL Senior Principal Technical Support Engineer
Oracle USA, Inc. - Hardware and Software, Engineered to Work Together.
Office: Blountville, TN

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



Re: Access denied for user 'root'@'localhost' (using password: YES) on mysql admin

2014-01-13 Thread Reindl Harald

Am 13.01.2014 21:47, schrieb shawn l.green:
 Hello Reindl,
 We are not saying he is using HTTP commands to log into his database

we excludes obviously the OP or his overall understanding :-)

Am 13.01.2014 18:54, schrieb Érico:
 using both urls I get the same error :

 http://localhost/mysql/index.php
 http://127.0.0.1/mysql/index.php

 in 127.0.0.1... after I submit the index.php ... it redirects to localhost
 too ..



signature.asc
Description: OpenPGP digital signature