0

I've created a fresh new DB ("rpgame") in MySQL on my linux server - but I'm getting access denied errors when trying to connect to it. The user it's connecting as is [email protected].

I've tried debugging a bit, please see the screenshot. It seems that the password area is missing for the entry I'm trying to login as. Is that a problem? Anyone know how I can fix it? mysql user access dump

if that's appearing as small for you as it is for me, try this link: runic-paradise.com/files/sampledb.png

3
  • 1
    Google: mysql change password and try it out?
    – PeeHaa
    Dec 4, 2013 at 11:44
  • Is root@ each of the hostnames considered a unique user to MySQL?
    – runelynx
    Dec 4, 2013 at 11:45
  • @PeeHaa - Ok used SET PASSWORD FOR 'user-name-here'@'hostname-name-here' = PASSWORD('new-password-here'); -- and the entry is no longer blank. Now to try it....
    – runelynx
    Dec 4, 2013 at 11:47

1 Answer 1

1

If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:

Setting root user password

$ mysqladmin -u root password NEWPASSWORD

Verifying its working

$ mysql -u root -p'PASSWORD' db-name-here

Not the answer you're looking for? Browse other questions tagged or ask your own question.