Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » MySQL Access Denied
MySQL Access Denied [message #439563] Mon, 15 November 2010 13:02 Go to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Greetings Renegade Community.

I'm looking for someone who is highly knowledgeble with MySQL to help figure out a problem that i've been having ever since i obtained MySQL.

Every time i run though the configurator, it gets to 'Applying Security Settings' and fails with the error code:

"(1045) Access Denied to root@localhost (using password: YES)"

For the life of me, i cannot figure out why... I've tried removing all trace of MySQL and reinstalling, only to give the same error. No firewall is running on the system, and port (3306) has been triggered, ranged and forwarded to the local ip.

According to Google searches, i'm told to use the command:

"GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password';"

However no where does it say how to execute that command. I've tried executing it through mysql.exe, and it just throws the default help file back at me, and though mysqladmin.exe, it says "Unknown Command: GRANT".

I'm at a loss here, can anyone please help?
Re: MySQL Access Denied [message #439574 is a reply to message #439563] Mon, 15 November 2010 15:14 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Sorry mate but I can't help you. I did once have access issues but that was because a previous configuration run had failed.
A reinstall solved it for me (make sure you remove all leftovers (ie MySQL database settings)).


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: MySQL Access Denied [message #439576 is a reply to message #439563] Mon, 15 November 2010 15:29 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Zion wrote on Mon, 15 November 2010 14:02


According to Google searches, i'm told to use the command:

"GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password';"

That's an SQL query. Honestly I'm not sure what you're doing if you don't understand what that is or how it's used, but I won't judge. Razz Look into phpMyAdmin (assuming you're using PHP) for help in that area.

As for the configurator problem, I believe I had a similar error after installing MySQL once and then not remembering what password I used. If I tried to change it or login with anything at all, it would never work. I'm pretty sure the only solution is to COMPLETELY uninstall MySQL, making sure it deletes ALL related files (most importantly the database file itself).


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: MySQL Access Denied [message #439578 is a reply to message #439563] Mon, 15 November 2010 15:47 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
The database will be used for storage not related or accessed by php, so php is not an issue here.

The GRANT command was what was returned by google...

I will try removing the database file and see what happens.

------------------------------------------

I deleted the database directory, and ran the installer again. The config completed itself, and popped up, however when i try to login to create a database, it still gives the Access Denied error... Looks like it's no luck.

[Updated on: Mon, 15 November 2010 21:33]

Report message to a moderator

Re: MySQL Access Denied [message #439597 is a reply to message #439563] Tue, 16 November 2010 01:49 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
What do you use to login? The standard MySQL console or PHPMyAdmin?

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: MySQL Access Denied [message #439600 is a reply to message #439563] Tue, 16 November 2010 04:38 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Command Prompt.

This has nothing to do with php...
Re: MySQL Access Denied [message #439619 is a reply to message #439563] Tue, 16 November 2010 08:44 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
PHPMyAdmin is a MySQL management system. I always use this when I use MySQL Smile

You are login in using this right?
mysql -u root -p

The it'll prompt you for a pass which you will enter.

I'm assuming you remember your pass and have caps -lock off ;P


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 16 November 2010 08:46]

Report message to a moderator

Re: MySQL Access Denied [message #439620 is a reply to message #439563] Tue, 16 November 2010 08:52 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
mysql --user=root --password=root mypassword 


Retruns the error, Access Denied for 'root'@'localhost'

-------------------------------------

I've just tried the comand you gave, and it worked with a bunch of commands, and now the program trying to use the database seems to be working too...

Not sure what i was doing wrong with the above command i was giving it... Very bizarre indeed, but it's sorted now, thanks guise. :3

[Updated on: Tue, 16 November 2010 09:08]

Report message to a moderator

Re: MySQL Access Denied [message #439625 is a reply to message #439563] Tue, 16 November 2010 11:27 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I never saw that command. I don't think it recognizes it. If it does it's probably
mysql --user=root --password=mypassword 


But no need to worry about that if it works now ^^


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 16 November 2010 11:29]

Report message to a moderator

Re: MySQL Access Denied [message #439637 is a reply to message #439563] Tue, 16 November 2010 15:41 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: paint.net
Next Topic: Advice on video-capturing
Goto Forum:
  


Current Time: Sun May 05 03:04:27 MST 2024

Total time taken to generate the page: 0.00744 seconds