Jump to content

Question

Posted

Hi all.I just wanted to create a website by ftp with templates and look what problem appears when i try connect:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'192.168.1.1' (using password: YES) in /www/zxq.net/l/2/i/l2international/htdocs/config/_config_procs.php on line 3

Couldn't connect to MySQL

2 answers to this question

Recommended Posts

  • 0
Posted

look the files and pliz tell me what i did wrong

file named config.procps: <?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());

 

?>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

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