New link in the top of page "IRC Chat".
Register | Login
Views: 122459236
Main | Memberlist | Active users | Calendar | Last Posts | IRC Chat | Online users
Ranks | FAQ | XPW | Stats | Color Chart | Photo album
03-28-24 06:03 AM
0 users currently in Help & Suggestions.
Xeogaming Forums - Help & Suggestions - 1.92 and 1.a2 help | |
Next newer thread | Next older thread
User Post
Zyphyr
Newcomer








Since: 02-17-08

Since last post: 5873 days
Last activity: 5872 days
Posted on 02-17-08 04:33 PM Link | Quote
Greetings, i've tried setting up an acmlm board with both version 1.92 and 1.A2. They both give me these 2 errors.

In lib/function when I replace $localhost with my MySQL host, it gives me this error

Warning: mysql_connect(): Unknown MySQL Server Host 'mysql4freehostiacom' (1) in /home/www/innocentbystanders.freehostia.com/lib/function.php on line 15

When I leave $localhost alone, it gives me this error

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/innocentbystanders.freehostia.com/lib/function.php on line 15


On 1.92 I opened up my PhPadmin and installed the install.sql file and on 1.A2 I installed the dump.sql file. I'm sure i've done everything right and I can't figure out why it would be giving me this error. Can anybody help me with this problem?
Xeoman

Ball and Chain Trooper
Administrator








Since: 08-14-04
From: 255

Since last post: 18 days
Last activity: 13 hours
Posted on 02-17-08 07:01 PM Link | Quote
I'm really rusty on this, maybe DarkSlaya can help more than I can but ...

1. What exactly do you mean by replacing $localhost? You're not deleting that right?

2. My function.php is heavily edited, but what is on line 15? (if it's not confidential).

3. Above all, you've edited your config.php file correctly right?

Note: I'd recommend using 1.92 over the A series (which is what we based this board off of, well after awhile). The A series is heavily cluttered with tons of unfinished code and broken junk that doesn't function right, both have their loopholes though. But overall, 1.92 is more of a "package" I'd say.


(Last edited by Dergoex on 02-17-08 10:03 PM)
Zyphyr
Newcomer








Since: 02-17-08

Since last post: 5873 days
Last activity: 5872 days
Posted on 02-18-08 06:11 AM Link | Quote
It gives me the same error on both 1.92 and 1.A2. by replacing localhost, I mean i'm erasing it from lib/function and replacing it with my MySQL host because I read a thread on acmlm's board that said with freehostia you can't have localhost, you have to replace the code on line 15 with your MySQL host. And this is line 12 of 1.92(15 of 1.A2):

$sql=mysql_connect($sqlhost,USERname,PASS) or die('< body bgcolor=0 text=ffea>< font face=arial color=white>< br>< center>< b>Couldn't connect to MySQL server');

(I had to put a few spaces in there or the code wouldn't have showed up. This forum doesn't have code tags)


I've tried leaving $localhost on there, putting my MySQL host in there, i've put my password as NULL, dumped my MySQL database and made a new one to try and see if that worked Nothing's worked
VGFreak877

Glunk








Since: 08-17-04
From: Hillsborough, New Hampshire

Since last post: 3455 days
Last activity: 3266 days
Posted on 02-18-08 08:47 AM Link | Quote
As far as I know, you have to leave $localhost alone and add a user to your database.

For example:

//MySQL setup
$sqlhost="localhost"; (This shouldn't be touched.)
$sqluser=(Assign the database at least one user. Example: name_nihongo)
$sqlpass=(Assign that user a password. Example: 12345)
$dbname=(Assign the database a name. Example: name_forumtest)

You have to make sure to enable your user in the database or else it won't work.
Zyphyr
Newcomer








Since: 02-17-08

Since last post: 5873 days
Last activity: 5872 days
Posted on 02-18-08 09:36 AM Link | Quote
I did that and it still gives me the error:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/innocentbystanders.freehostia.com/lib/function.php on line 15
Kard Ayals
The Ultimate
Lv108
Posts2915
Counter2
Mv7Jm26
Hp2189/2189
Sp709/709
Atk361 Int279
Def389 Spd281
Hit254 Res275
Exp13225408
Next295091
Banhammer
Shining Armor
Admin Shield
Judge Hat
Admin Shoes
POWAR

Posted on 02-18-08 10:08 AM Link | Quote
The only thing I can see is that could be wrong is your host.



You don't need to touch anything in function.php, you just have to get your mysql host right. Since it's obviously not local host, you'll have to make sure it's in the form of "mysql.host.com" or whatever they have (it's gonna be a URL).
Zyphyr
Newcomer








Since: 02-17-08

Since last post: 5873 days
Last activity: 5872 days
Posted on 02-20-08 10:19 AM Link | Quote
I tried that and it still gives me the error

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/innocentbystanders.freehostia.com/lib/function.php on line 15
Kard Ayals
The Ultimate
Lv108
Posts2915
Counter2
Mv7Jm26
Hp2189/2189
Sp709/709
Atk361 Int279
Def389 Spd281
Hit254 Res275
Exp13225408
Next295091
Banhammer
Shining Armor
Admin Shield
Judge Hat
Admin Shoes
POWAR

Posted on 02-20-08 12:35 PM Link | Quote
hmmm...

try putting in "innocentbystanders.freehostia.com:3306". Assuming innocentbystanders.freehostia.com is your server name.

(basically, look at this link)
Zyphyr
Newcomer








Since: 02-17-08

Since last post: 5873 days
Last activity: 5872 days
Posted on 02-20-08 04:40 PM Link | Quote
I have everything set up, How do I add new schemes/ranks

Also, I downloaded the Admin+. I uploaded it, but it's not working.


EDIT: I got the schemes and ranks down, but I still haven't figured out what to do about the Admin+ and where can I get the RPG hack for the profiles?


(Last edited by Zyphyr on 02-20-08 09:23 PM)
Next newer thread | Next older thread
Xeogaming Forums - Help & Suggestions - 1.92 and 1.a2 help |



xeogaming.org

AcmlmBoard 1.92++ r4 Baseline
?2000-2013 Acmlm, Emuz, Blades, Xkeeper, DarkSlaya*, Lord Alexandor*
*Unofficial Updates
Page rendered in 0.967 seconds.
0.067