Jump to content

There is no 'test'@'%' registered


solon

Recommended Posts

Hey guys , i get the following error and i have no idea why and how to fix it!

 

There is no 'test'@'%' registered

 

I should say that "test" is the username i had previously on my database. Now i changed that to "test2" and on a different server. I check very carefully on every page that had these info and changed it from "test" to "test2".

 

Any help would be great!

 

Thanks in advance,

Solon

 

Link to comment
Share on other sites

And just how do you think someone on a forum would be able to help you with your code that is producing that message without seeing the code responsible for that message?

 

I'll guess it is some javascirpt validation code in your form that is messing up the data being put into your query?

Link to comment
Share on other sites

The reason i did not post the code is because i dont know what part of the code produces the error. There are 4 files included in 1 and over 3000 lines of code. Although the only part that has to do with actually connecting to the db is

 

<?php

$conn=mysql_connect('localhost','test2','password');
if (!$conn = mysql_connect('localhost', 'test2', 'password') ) {
	die(mysql_error());
}

if (!mysql_select_db('dbname',$conn) ) {
	die('Could not select database');

}
?>

Link to comment
Share on other sites

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.