Jump to content

Recommended Posts

[quote author=wildteen88 link=topic=118980.msg486664#msg486664 date=1166366471]
try root as the username and leave the password blank

This is the default account MySQL sets up when you install it. However you can change these during installation.
[/quote]
it doesn't work. it says:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mypass'@'localhost' (using password: NO) in C:\inetpub\wwwroot\login scripts\login.php on line 16
My SQL Error: Access denied for user 'mypass'@'localhost' (using password: NO)
Is mypass the username? What is the code you are using to connect to mysql post it here:

It should be like this:
[code=php:0]$conn = mysql_connect('localhost', 'root', '') or die('Connection error:<br />' . mysql_error());[/code]

If the root user doesn't work then you must of changed the password for it. You can rest the password however it is a little tricky and hard to explain.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.