On 6/9/06, Ankush Grover <ankush174@xxxxxxxxx> wrote:
> [root@bde root]# mysqladmin -u root -p create kaushal > Enter password: > mysqladmin: CREATE DATABASE failed; error: 'Access denied for user: > 'root@localhost' to database 'kaushal'' > hey, You can create the database from the mysql prompt mysql> create database kaushal; I tried the same command on my system and there was no error mysqladmin -u root -p create kaushal and I checked the database was indeed created. Did you supplied the correct password ? Regards Ankush Grover
Ankush, I know this command to create database at the mysql > prompt, but can you please let me know why mysqladmin -u root -p create kaushal doesnot work I am able to login to MySQL server using [root@bde root]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 25 to server version: 3.23.54 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> But why am I not able to create database at the root # prompt using mysqladmin command Do let me know if you want more info on this Thanks Kaushal