I am new to the php and mysql world right now i am using default username and password in the mysql database i.e. root and password blank, i want to know how can i create new user in mysql when i use wamp server?
You can using command GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON wapcontent.* TO wapcontent@'%' IDENTIFIED BY '123456'; FLUSH PRIVILEGES;
Yes, the command specified by sources68 would create a new user for you. This command should be run from the MySQL prompt of the server. You can connect to the mysql prompt from the command line. The location might be similar to "C:\Program Files\MySQL\MySql Server 5.1\bin". You have to get inside the bin directory of mysql from command line and type "mysql -u root -p"password" -P 3306" to get connected to the MySQL prompt.
You can create user from command prompt using following command grant CREATE,INSERT,DELETE,UPDATE,SELECT on mydb.* to username@localhost;set password for username = password('mysecretpassword');
I have installed MySql using WAMP. create a database and an administrator for that database: 1. create a user using "mysqladmin...create" command 2. login with this user using "mysql" command 3. Grant the user with database priviliges with the GRANT command 4. activate those priviliges with Flush priviliges command.