Jump to content
  • 0

[Help]Can't make php site connect to mysql.


Question

Posted

guys, i am trying to upload picasoooo's website 3, but i can't connect mysql with site. i have written all of my database info and i get this:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/a4806022/public_html/config/_config_procs.php on line 3

 

4 answers to this question

Recommended Posts

  • 0
Posted

Just check "Enable root acces from remote machines"

 

16.jpg

done, now error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/a4806022/public_html/config/_config_procs.php on line 3

 

My _config_procs.php:

<?php

$L2JBS_config["javascript_sort_method"]="bubble";

  $link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);

  if (!$link)

    die("Couldn't connect to MySQL");

  @mysql_select_db($L2JBS_config['mysql_db'], $link)

    or die ('Error '.mysql_errno().': '.mysql_error());

 

?>

 

my config file:

<?php

$L2JBS_config["mysql_host"]="127.0.0.1"; // MySQL IP

$L2JBS_config["mysql_port"]=3306; // MySQP port

$L2JBS_config["mysql_db"]="l2jdb"; // l2jdb or your lineage 2 server database name

$L2JBS_config["mysql_login"]="root"; // MySQL Login name

$L2JBS_config["mysql_password"]="(here i have my pass, don't see it)"; // MySQL Password

$htitle="Site Title here"; // Site Title

$fut="Napas © ServerName <br>2007"; // You can change only server name . You must leave Napas ©

$top="100"; // How many players must be in top100

$hserver="127.0.0.1"; // Server IP

$portgame="7777"; // Game Server Port

$portlogin="2106"; // Server Port

$where='1=1';

$shat="E:/L2 Gracia Epilogue x100 Server/gameserver/logchat.log";

 

 

// Original by Picassoo

//Skin

$skin1="heven";

 

//Serever Rates

$exp="1000";

$sp="1000";

$adena="1000";

$items="7";

$spoil="20";

 

 

include("_config_procs.php");

error_reporting(0);

?>

 

  • 0
Posted

done, now error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/a4806022/public_html/config/_config_procs.php on line 3

 

My _config_procs.php:

<?php

$L2JBS_config["javascript_sort_method"]="bubble";

  $link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);

  if (!$link)

    die("Couldn't connect to MySQL");

  @mysql_select_db($L2JBS_config['mysql_db'], $link)

    or die ('Error '.mysql_errno().': '.mysql_error());

 

?>

 

my config file:

<?php

$L2JBS_config["mysql_host"]="127.0.0.1"; // MySQL IP

$L2JBS_config["mysql_port"]=3306; // MySQP port

$L2JBS_config["mysql_db"]="l2jdb"; // l2jdb or your lineage 2 server database name

$L2JBS_config["mysql_login"]="root"; // MySQL Login name

$L2JBS_config["mysql_password"]="(here i have my pass, don't see it)"; // MySQL Password

$htitle="Site Title here"; // Site Title

$fut="Napas © ServerName <br>2007"; // You can change only server name . You must leave Napas ©

$top="100"; // How many players must be in top100

$hserver="127.0.0.1"; // Server IP

$portgame="7777"; // Game Server Port

$portlogin="2106"; // Server Port

$where='1=1';

$shat="E:/L2 Gracia Epilogue x100 Server/gameserver/logchat.log";

 

 

// Original by Picassoo

//Skin

$skin1="heven";

 

//Serever Rates

$exp="1000";

$sp="1000";

$adena="1000";

$items="7";

$spoil="20";

 

 

include("_config_procs.php");

error_reporting(0);

?>

 

Than, ask Piscaooo

Guest
This topic is now closed to further replies.


×
×
  • Create New...