data for php.settings in drupalsite

wmaarten80

New Member
Messages
6
Reaction score
0
Points
0
hi, i've just tried uploading my drupalproject but i can't get it to work online. The error message is:

The mysqli error was: Can't connect to MySQL server on '10.33.248.75' (111).

so the question is what to put instead of localhost in the file php.settings file

on this line; $db_url = ‘mysqli://username:password@localhost/databasename’;

---------- Post added at 10:12 AM ---------- Previous post was at 09:52 AM ----------

ok the problem seems to be something else: this is the message.

The mysqli error was: Access denied for user 'maar10w_opium'@'10.33.248.75' (using password: YES).

anyone know how to fix htis?
 

GtoXic

x10 Support
Messages
636
Reaction score
17
Points
0
don't use localhost, that's the problem. Use
Code:
$db_url = 'mysqli://username:password@SERVERURL/databasename';
instead
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Use localhost, not the IP, eg:

Code:
$db_url = 'mysqli://maar10w_opium:yourpassword@localhost/yourdatabase';

Leave "localhost" as it is.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Use localhost, not the IP, eg:

Code:
$db_url = 'mysqli://maar10w_opium:yourpassword@localhost/yourdatabase';

Leave "localhost" as it is.
 
Top