|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
How to create a new user and password in mysql? Can any one tell me how to create a new user and password in mysql? When user connect to the local database server as user root it will ask for password. Any recommendations and suggestions are appreciated. |
#2
| |||
| |||
Re: How to create a new user and password in mysql? For adding a new user to MySQL you just need to add a new entry to user table in database mysql. You need to use command mysql> INSERT INTO user in () declare the variable and in values assign the value for the variable. |
#3
| |||
| |||
Re: How to create a new user and password in mysql? You can also specify other privileges to a new user by setting the values of these columns in user table to 'Y' when executing the INSERT query : Select_priv, Insert_priv, Update_priv. To create a user who has access from all machines in a given domain, you can use the “%” wildcard character in the host part of the account name. |
#4
| |||
| |||
Re: How to create a new user and password in mysql? To create user in mysql : Code: CREATE USER 'user20'@'localhost' IDENTIFIED BY 'pass1'; Code: GRANT ALL ON *.* TO 'user21'@'localhost' IDENTIFIED BY 'pass1'; |
![]() |
|
Tags: database server, mysql, password |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to reset User Password via single user mode in mac os x | Jay Scott | Operating Systems | 3 | 10-11-2010 07:00 PM |
How to Create and Change Password, Picture and User Name in Windows 7? | Jagruti23 | Operating Systems | 4 | 12-08-2010 04:33 PM |
Create Disk in case of user password loss | Enriquee | Windows Software | 3 | 12-11-2009 10:05 PM |
Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2 | roshan45 | Software Development | 3 | 07-11-2009 09:36 PM |
domain user password expired but user not prompted to change passw | GunTher | Active Directory | 1 | 28-07-2008 11:53 AM |