PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Problem adminstering users and creating databases
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Problem adminstering users and creating databases

Réponse
 
LinkBack Outils de la discussion
Vieux 01/02/2008, 16h57   #1
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Problem adminstering users and creating databases

I have set the 'root' password for my mysql instillation using :-

SET PASSWORD FOR root = PASSWORD( '###');

Since doing this I can no longer create databases under a new user name and
password.

I am confused as to how I go about creating and adminstering new users and
databases.

If someone could set me straight on how to do this please.

Many thanks in advance,

Aaron


  Réponse avec citation
Vieux 01/02/2008, 17h45   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem adminstering users and creating databases

Aaron Gray wrote:
> I have set the 'root' password for my mysql instillation using :-
>
> SET PASSWORD FOR root = PASSWORD( '###');
>
> Since doing this I can no longer create databases under a new user name and
> password.
>
> I am confused as to how I go about creating and adminstering new users and
> databases.
>
> If someone could set me straight on how to do this please.
>
> Many thanks in advance,
>
> Aaron
>
>
>


The manual is a good place to start...

http://dev.mysql.com/doc/refman/5.1/...ement-sql.html

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 01/02/2008, 17h57   #3
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem adminstering users and creating databases

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:v6-dnYmHiseKxj7anZ2dnUVZ_gydnZ2d@comcast.com...
> Aaron Gray wrote:
>> I have set the 'root' password for my mysql instillation using :-
>>
>> SET PASSWORD FOR root = PASSWORD( '###');
>>
>> Since doing this I can no longer create databases under a new user name
>> and password.
>>
>> I am confused as to how I go about creating and adminstering new users
>> and databases.
>>
>> If someone could set me straight on how to do this please.
>>
>> Many thanks in advance,
>>
>> Aaron
>>
>>
>>

>
> The manual is a good place to start...
>
> http://dev.mysql.com/doc/refman/5.1/...ement-sql.html


Ah I have been looking at OReilly's MySQL Packet Reference which only covers
version 4.0 which does not show CREATE USER command.

Many thanks,

Aaron


  Réponse avec citation
Vieux 01/02/2008, 18h12   #4
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem adminstering users and creating databases

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:v6-dnYmHiseKxj7anZ2dnUVZ_gydnZ2d@comcast.com...
> Aaron Gray wrote:
>> I have set the 'root' password for my mysql instillation using :-
>>
>> SET PASSWORD FOR root = PASSWORD( '###');
>>
>> Since doing this I can no longer create databases under a new user name
>> and password.
>>
>> I am confused as to how I go about creating and adminstering new users
>> and databases.
>>
>> If someone could set me straight on how to do this please.
>>
>> Many thanks in advance,
>>
>> Aaron
>>
>>
>>

>
> The manual is a good place to start...
>
> http://dev.mysql.com/doc/refman/5.1/...ement-sql.html


I am getting an error when logging on on a newly created user :-

ERROR 1045 (28000): Access denied for user 'test3'@'localhost' (using
password: YES)

Using :-

mysql -p -u test3

I am doing the following while logged on as 'root' to create the user :-

CREATE USER test3;
SET PASSWORD FOR test3 = PASSWORD('xyzzyx');

,

Aaron


  Réponse avec citation
Vieux 01/02/2008, 18h31   #5
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem adminstering users and creating databases

Aaron Gray wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:v6-dnYmHiseKxj7anZ2dnUVZ_gydnZ2d@comcast.com...
>> Aaron Gray wrote:
>>> I have set the 'root' password for my mysql instillation using :-
>>>
>>> SET PASSWORD FOR root = PASSWORD( '###');
>>>
>>> Since doing this I can no longer create databases under a new user name
>>> and password.
>>>
>>> I am confused as to how I go about creating and adminstering new users
>>> and databases.
>>>
>>> If someone could set me straight on how to do this please.
>>>
>>> Many thanks in advance,
>>>
>>> Aaron
>>>
>>>
>>>

>> The manual is a good place to start...
>>
>> http://dev.mysql.com/doc/refman/5.1/...ement-sql.html

>
> I am getting an error when logging on on a newly created user :-
>
> ERROR 1045 (28000): Access denied for user 'test3'@'localhost' (using
> password: YES)
>
> Using :-
>
> mysql -p -u test3
>
> I am doing the following while logged on as 'root' to create the user :-
>
> CREATE USER test3;
> SET PASSWORD FOR test3 = PASSWORD('xyzzyx');
>
> ,
>
> Aaron
>
>
>


See the notes on the CREATE USER page:

CREATE USER 'test3'@'localhost';

Do not use the PASSWORD function. MySQL encrypts it for you:

SET PASSWORD FOR 'test3'@'localhost' = 'xyzzyx';

Or, all in one statement:

CREATE USER 'test3'@'localhost' IDENTIFIED BY 'xyzzyx';


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 01/02/2008, 18h44   #6
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem adminstering users and creating databases

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:B96dnRVP9K1A-D7anZ2dnUVZ_orinZ2d@comcast.com...
> Aaron Gray wrote:
>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>> news:v6-dnYmHiseKxj7anZ2dnUVZ_gydnZ2d@comcast.com...
>>> Aaron Gray wrote:
>>>> I have set the 'root' password for my mysql instillation using :-
>>>>
>>>> SET PASSWORD FOR root = PASSWORD( '###');
>>>>
>>>> Since doing this I can no longer create databases under a new user name
>>>> and password.
>>>>
>>>> I am confused as to how I go about creating and adminstering new users
>>>> and databases.
>>>>
>>>> If someone could set me straight on how to do this please.
>>>>
>>>> Many thanks in advance,
>>>>
>>>> Aaron
>>>>
>>>>
>>>>
>>> The manual is a good place to start...
>>>
>>> http://dev.mysql.com/doc/refman/5.1/...ement-sql.html

>>
>> I am getting an error when logging on on a newly created user :-
>>
>> ERROR 1045 (28000): Access denied for user 'test3'@'localhost' (using
>> password: YES)
>>
>> Using :-
>>
>> mysql -p -u test3
>>
>> I am doing the following while logged on as 'root' to create the user :-
>>
>> CREATE USER test3;
>> SET PASSWORD FOR test3 = PASSWORD('xyzzyx');
>>
>> ,
>>
>> Aaron
>>
>>
>>

>
> See the notes on the CREATE USER page:
>
> CREATE USER 'test3'@'localhost';
>
> Do not use the PASSWORD function. MySQL encrypts it for you:
>
> SET PASSWORD FOR 'test3'@'localhost' = 'xyzzyx';
>
> Or, all in one statement:
>
> CREATE USER 'test3'@'localhost' IDENTIFIED BY 'xyzzyx';


Great that did the trick, obviously I was creating a hashed password value.
Duh !

Thanks alot,

Aaron


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13828 seconds with 14 queries