Free Hosting Tutorials

Creating Mysql Database Users and Changing Password using Sell

Create a new user.
INSERT INTO [table name] (Host,User,Password)

VALUES(‘%’,’user’,PASSWORD(‘password’));

Change a users password.(from unix shell).
mysqladmin -u root -h hostname.blah.org -p password ‘new-password’

Change a users password
SET PASSWORD FOR ‘user’@’hostname’ = PASSWORD(‘passwordhere’);

Allow the user “karthick” to connect to the server from localhost using the password “passwd123”

grant usage on *.* to karthick@localhost identified by ‘passwd123’;

grant all privileges on databasename.* to username@localhost;

  • Most Popular Tutorials