Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
Keep getting this error message:
Step 2) Connect to the database
Attempting to attach to database
Error description: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) E:\web\public_html\andrewc07\forums\includes\class _core.php on line 273
The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.
However, my database server is not called localhost and mysql2.loosefoot.com. How do i get vBullitin to look at the relevant database.
|
Neil
Member
Registered: 2nd Nov 03
Location: Newcastle Drives: E46 MSport Coupe
User status: Offline
|
Tells you there really. In includes/config.php you need to change this line:
$config['MasterServer']['servername'] = 'localhost';
|
Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
Parse error: parse error, unexpected $end in E:\web\public_html\andrewc07\forums\includes\config.php on line 171
|
Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
Line 273 contains the following code:
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
|
Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
http://www.vbulletin.com/forum/showthread.php?t=220211
|
Neil
Member
Registered: 2nd Nov 03
Location: Newcastle Drives: E46 MSport Coupe
User status: Offline
|
what does line 171 say?
|
Neil
Member
Registered: 2nd Nov 03
Location: Newcastle Drives: E46 MSport Coupe
User status: Offline
|
Also is this bit from vbulletin post at the end of the file?
ÿÿÿ
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
bin vbulletin while your ahead
[Edited on 14-02-2007 by Steve]
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
I used IPB, preferred it to VB at the time.
|
Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
quote: Originally posted by NeilM
Also is this bit from vbulletin post at the end of the file?
ÿÿÿ
Sorted it now. That was part of the problem! Took me hours
|