Mysql Problem Syntax

I have root access to a linux box with red hat, php and mysql. now i'm trying to install a picture program that i purchased called i-rater. Now i've done everything properly concerning the instructions and with the php but when it's time to install the databases from install.sql that's where there's a problem.


It tells me to install the install.sql by doing the following:

4. Install MySQL tables from admin/sql/install.sql.

mysql platinum < admin/sql/install.sql
(where platinum is your data base name )

or

mysql> source admin/sql/install.sql

I did the first syntax in which I got the error:

ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)


Then I tried the other one in which I have to connect to mysql.. This is what I recieved: ERROR 1046: No Database Selected


So how do i select the datase in the second code? Or how do I do it with the first one? Please help! Thanks

 

 

 

 

Top