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
https://forums.phpfreaks.com/topic/171961-there-is-no-test-registered/
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?

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');

}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.