If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Importing *.sql into mySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-04, 13:29
baynezy baynezy is offline
Registered User
 
Join Date: Jul 2004
Location: London, England
Posts: 71
Angry Importing *.sql into mySQL

Hi,
I am relatively new with mySQL and I am having big problems importing a *.sql file into mySQL. It was sent to me by a client of mine to work with.

I have tried what is suggested in the logs but it keeps telling me "ERROR 1045: Access denied for user: 'username@localhost' <Using Password: YES>

I am actually typing the following:-
C:\mysql\bin>mysql -u username -p -D database < c:\latestDB.sql

I am running mySQL and Clients 4.0.17
on Windows XP Pro

Please help as it is driving me mad, and I can't see what I am doing wrong.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-11-04, 23:04
yellowmarker yellowmarker is offline
Registered User
 
Join Date: Jul 2004
Location: Dundee, Scotland
Posts: 107
The permissions on the MySQL server will need to be configured to accept connections to the specific MySQL database via the MySQL username you specify, and to do the specific operations you need (e.g. insert, create tables). this is a common wall to hit when first using MySQL.

I assume you can connect to MySQL using:
shell> mysql --user=root mysql

Then try a variation of:
mysql> GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

I also came across this which might be of use:
http://www.itlab.musc.edu/mysql_user...rs_readme.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On