Jump to content
MakeWebGames

Recommended Posts

Posted

Maybe this is a stupid question, but can you make nwe work with a database where the Databasename is like database_1? if I do that it just say "Database down or wrong DB settings.

Please try again later."

Posted

follow the file location :-"nwe\config"

file name:-config.php

// Database host
$dbhost="localhost";
// Database username
$dbuser="database username";
// Database password
$dbpass="database password";
// Database name
$dbname="Databse Name";
Posted
follow the file location :-"nwe\config"

file name:-config.php

// Database host
$dbhost="localhost";
// Database username
$dbuser="database username";
// Database password
$dbpass="database password";
// Database name
$dbname="Databse Name";

No offence, but did you read what I read? Your answer has nothing to do with the question from what I can see. @Sjobbe, I'm not sure as don't use NWE but try change the DB name to something else and if it works then will know there is conflicts with that name mate. :)

Posted

It Works fine when i don't have _ in the dB name, but i was just wondering about if it is possible to get it to work with _ in the db name

Posted
Sjobbe: when you get this message it means your configuration is wrong. Beside that you can use more or less whatever database name as long as it's accepted by MySQL.

if I make a new install and type ind example database_1 it says Please double check the database username and password. but if I do it on dataname without _ there is no problem.

/Sjobbe

Posted

and does database_1 exists before you install it? If not then that's the reason why it doesn't work. Other than that, I do know MySQL uses the _ (underscore) as special character, so I would use a - (minus) instead.

Posted
and does database_1 exists before you install it? If not then that's the reason why it doesn't work. Other than that, I do know MySQL uses the _ (underscore) as special character, so I would use a - (minus) instead.

yes it does excist. its because the database my friend have atm, when I need to make a new database, it create it and name it, so it if I dont use the main database it will come with a _1, _2 _3 etc. its a part of a webhost he have.

Posted

Well I tested on my side, and it works perfectly with an _1 or _2 (I tested with the name db, and created db_1 and db_2). So it must be something on your side, as I don't see anything on the code which would prevent it.

Posted

Please remember some CPanels require the login username in front of the DB (depends on the server settings).

So if we were to say to login to CPanel the username is nwe, and the database is "database_1", you would essentially put "nwe_database_1".

Posted
yes it does excist. its because the database my friend have atm, when I need to make a new database, it create it and name it, so it if I dont use the main database it will come with a _1, _2 _3 etc. its a part of a webhost he have.

Only read this post now.

Are you perhaps with hetzner? If so, when you request a new database, they would have sent you an email with all the login details.

Posted
Only read this post now.

Are you perhaps with hetzner? If so, when you request a new database, they would have sent you an email with all the login details.

he have a danish company called starthotel / Web10. but I think I will just take it over to my own server instead.

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.   Paste as plain text instead

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