Re: mysql from localhost vs. remote
Michael Hoennig [EMAIL PROTECTED] wrote: Hi mysql list members, We use the following statements to setup users and rigts for a mysql server which is accessible locally and via internet: INSERT INTO mysql.user VALUES ('%','xyz00',PASSWORD('...'), 'N','N','N','N','N','N','N','N','N','N','N','N','N','N'); INSERT INTO mysql.db VALUES ('%','xyz00_%','xyz00','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); The server runs on 66.70.34.150:3307. We can connect via socket locally and via Host:Port remote: remote-system mysql -h 66.70.34.150 -P 3307 -u xyz00 -p = works local-system mysql -S /var/run/mysql-ext/mysql.sock -u yxz00 -p = works But we can NOT connect locally by host:port: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p = ERROR 1045: Access denied for user: 'xyz00@localhost' (Using password: YES) On a mysqld which is accessible only locally the both INSERT statements above would have localhost instead of %. Why does localhost not qualify for %? Probably because you already have entry for 'localhost','%' or something to that effect. -- Dimitry - 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
Re: mysql from localhost vs. remote
Hi Dimitry, But we can NOT connect locally by host:port: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p = ERROR 1045: Access denied for user: 'xyz00@localhost' (Using password: YES) On a mysqld which is accessible only locally the both INSERT statements above would have localhost instead of %. Why does localhost not qualify for %? Probably because you already have entry for 'localhost','%' or something to that effect. nope, there is not such an entry. But IF we add it, we can login. This just means that we have to insert two entries (% and localhost) each. It looks clumsy to me. Michael -- Hostsharing eG / c/o Michael Hönnig / Boytinstr. 10 / D-22143 Hamburg phone:+49/40/67581419 / mobile:+49/177/3787491 / fax:++49/40/67581426 http://www.hostsharing.net --- Webhosting Spielregeln selbst gemacht - 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
Re: mysql from localhost vs. remote
Hi I see: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p hmm. I always use: mysql -u xyz -p -h ... -P 3306 Is the -O option in the right place. Maybe it sould be -P like PORT. Isn't ?? Regards. I. Piasecki - webmaster www.b-c.pl - Original Message - From: Michael Hoennig [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 15, 2002 3:37 PM Subject: Re: mysql from localhost vs. remote Hi Dimitry, But we can NOT connect locally by host:port: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p = ERROR 1045: Access denied for user: 'xyz00@localhost' (Using password: YES) On a mysqld which is accessible only locally the both INSERT statements above would have localhost instead of %. Why does localhost not qualify for %? Probably because you already have entry for 'localhost','%' or something to that effect. nope, there is not such an entry. But IF we add it, we can login. This just means that we have to insert two entries (% and localhost) each. It looks clumsy to me. Michael -- Hostsharing eG / c/o Michael Hönnig / Boytinstr. 10 / D-22143 Hamburg phone:+49/40/67581419 / mobile:+49/177/3787491 / fax:++49/40/67581426 http://www.hostsharing.net --- Webhosting Spielregeln selbst gemacht - 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 -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] - 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
Re: mysql from localhost vs. remote
Hi Ireneusz, Hi I see: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p hmm. I always use: mysql -u xyz -p -h ... -P 3306 Is the -O option in the right place. Maybe it sould be -P like PORT. Isn't?? sorry, typo in my mail. -P of course. Alles Gute wünscht Michael -- Hostsharing eG / c/o Michael Hönnig / Boytinstr. 10 / D-22143 Hamburg phone:+49/40/67581419 / mobile:+49/177/3787491 / fax:++49/40/67581426 http://www.hostsharing.net --- Webhosting Spielregeln selbst gemacht - 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
Re: mysql from localhost vs. remote
Michael Hoennig [EMAIL PROTECTED] wrote: But we can NOT connect locally by host:port: local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p = ERROR 1045: Access denied for user: 'xyz00@localhost' (Using password: YES) On a mysqld which is accessible only locally the both INSERT statements above would have localhost instead of %. Why does localhost not qualify for %? Probably because you already have entry for 'localhost','%' or something to that effect. nope, there is not such an entry. But IF we add it, we can login. This just means that we have to insert two entries (% and localhost) each. It looks clumsy to me. One question - are sure that you have wrote -O instead -P as listed ? local-system mysql -h 66.70.34.150 -O 3307 -u xyz00 -p -- Dimitry - 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