RE: Can't get a login shell for some databases SOLVED

2008-04-21 Thread Pam Astor
>>> The ANSI-SQL syntax is to just use GRANT to create users. You will >>> still need to use GRANT twice for both users: joe@'%' and joe@'localhost'. >>> >>> But I find the MySql syntax for creating user with CREATE USER and then >>> GRANT easier to follow: >>> >>> CREATE USER joe@'%' IDENTIFIE

RE: Granting users localhost access

2008-04-20 Thread Pam Astor
> Date: Sat, 19 Apr 2008 20:06:49 +0200 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: mysql@lists.mysql.com > Subject: Re: Granting users localhost access > > Hi Pam, > > If you want to grant a specific user remote access i.e. from a shell or > from an application that resides on a

RE: Granting users localhost access

2008-04-19 Thread Pam Astor
> > I am sorry I do not understand you.> > > > If I Flush privilages, will this > > flush all privilages for the user?> > If so, I can not do that because > > these users> > are already used to log into an existing database via a > > functioning php script and have> > privilages to edit tables,

RE: Granting users localhost access

2008-04-19 Thread Pam Astor
> > OK I tried running:> > > > update mysql.user set host = 'locahost' where > > user = 'AUserName';> > Substituting AUserName for a real username,> > > > > > got the return:> > > > Query OK, 0 rows affected (0.00 sec)> > Rows > > matched: 1 Changed: 0 Warnings: 0> > > > and I tried to login an

RE: Granting users localhost access

2008-04-19 Thread Pam Astor
> This should do the trick: > update mysql.user set host = 'locahost' where user = 'username' > Hi Thanks, OK I tried running: update mysql.user set host = 'locahost' where user = 'AUserName'; Substituting AUserName for a real username, got the return: Query OK, 0 rows affected (0.00 sec) Ro

Granting users localhost access

2008-04-19 Thread Pam Astor
How do I grant users, who already have a password, localhost access? I don’t want to change their passwords at this time. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
>> One more thing, I have already created these users and don't want to mess >> their >> passwords up or break their associated php scripts access. >> >> So how do I grant users, who already have a password, localhost >> access? > > just copy the row in the mysql table > > -- > Sebastian Mend

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> The ANSI-SQL syntax is to just use GRANT to create users. You will > still need to use GRANT twice for both users: joe@'%' and joe@'localhost'. > > But I find the MySql syntax for creating user with CREATE USER and then > GRANT easier to follow: > > CREATE USER joe@'%' IDENTIFIED BY 'whatev

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> A user in MySql is not just a username, but a username and a host. > > The host of '%' denotes all hosts accept 'localhost'. > > Therefore you usually require two entries for each user: > > CREATE USER ben@'%' INDENTIFIED BY 'ben'; > CREATE USER ben@'localhost' INDENTIFIED BY 'ben'; > > Does

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > would be much more easier if you would send this output here (with faked > names, passwords and hosts ...) OK...here it is: SELECT * from mysql.

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> connectiong from shell means connecting as localhost by default, connecting > from PHP can be some different server and/or PHP uses the full IP > address/hostname of the server > > check/compare the privileges for your users for 'localhost' and '%' I ran “SELECT * from mysql.user;” the com

Can't get a login shell for some databases

2008-04-17 Thread Pam Astor
Hi, I have about a half dozen small databases associated with a couple of small shopping carts, discussion forums, etc. All six databases have usernames and passwords associated with them, and all the databases are connected to the php based forums and shopping carts, no problems wi

viewing passwords as root

2008-04-17 Thread Pam Astor
Hi, Is there a way to view mysql user passwords once logged in as the MySQL root user in v 5.0.22? Or are they encrypted even from the MySQL toot user? _ More immediate than e-mail? Get instant access with Windows Live Messenger.