Jump to content
  • 0

help about flux


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i used the official flux cp and it works

but when i used other flux cp themes or flux cp integrated

this message shows

Access denied for user 'root'@'localhost' (using password: YES)

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

'DebugMode'            => true,

$showExceptions  = true;

For more error info.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

got an error sir

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in/home/reviser/public_html/themes/default/gthemes/playerCap.phpon line 9

Access denied for user 'root'@'localhost' (using password: YES)

this is my playerCap.php

<?php
if (! defined('FLUX_ROOT')) exit;

$host  = $session->loginAthenaGroup->connection->logsDbConfig->Hostname();
$username  = $session->loginAthenaGroup->connection->logsDbConfig->getUsername();
$password  = $session->loginAthenaGroup->connection->logsDbConfig->getPassword();
$db    = $session->loginAthenaGroup->connection->logsDbConfig->getDatabase();
$link = mysql_connect($host, $username, $password) or die(mysql_error());
@mysql_select_db($db,$link);
$sql = "SELECT COUNT(`char`.char_id) AS total FROM {$server->charMapDatabase}.`char` ";
if (Flux::config('HideTempBannedStats')) {
$sql .= "LEFT JOIN {$server->loginDatabase}.login ON login.account_id = `char`.account_id ";
$sql .= "WHERE login.unban_time <= UNIX_TIMESTAMP()";
}
if (Flux::config('HidePermBannedStats')) {
if (Flux::config('HideTempBannedStats')) {
 $sql .= " AND login.state != 5";
} else {
 $sql .= "LEFT JOIN {$server->loginDatabase}.login ON login.account_id = `char`.account_id ";
 $sql .= "WHERE login.state != 5";
}
}
$result = mysql_query($sql,$link);
mysql_close($link);
$arr = mysql_fetch_array($result);
$player_cap = $arr['total'];
?>
<p id="playerCap"><?php echo $player_cap; ?></p>

Edited by glemor123
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Try to be specific in this part. Just change those value.

$host  = '127.0.0.1';
$username = 'root';
$password  = '';
$db   = 'db_name';

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i already did but there is still the problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Try to grant the flux CP table from the MySQL,

CLI:

GRANT SELECT, INSERT, DELETE ON `FluxCP database name / schema name` TO root@'localhost' IDENTIFIED BY 'the password for root password';

Then, do:

 FLUSH PRIVILEGES; 

Have a nice day!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

already done there still an error

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

hmm, just to make sure, did you put your password on the configurations properly?

Have a nice day!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

yes i put and i double check

my original flux cp works

but when i add the other themes i got that error

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

well then, may I have a copy of the files too? I want to try it too. :D

have a nice day!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

here http://rathena.org/board/files/file/2363-free-flux-themes-design-no-2/

anyone who can help me

i still need help

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

hello, glemor123

Thank you for giving me the link. I've tried it too and it works perfectly on me..

Maybe, you want to consider reinstalling your fluxCP by re-pasting your fluxcp-renewal.rar to your htdocs and try to use 'ragnarok' (or whatever your Ragnarok Server use to connect to your SQL database) as your FluxCP Username, instead of root.

Have a nice day!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

hello, glemor123

Thank you for giving me the link. I've tried it too and it works perfectly on me..

Maybe, you want to consider reinstalling your fluxCP by re-pasting your fluxcp-renewal.rar to your htdocs and try to use 'ragnarok' (or whatever your Ragnarok Server use to connect to your SQL database) as your FluxCP Username, instead of root.

Have a nice day!

i already tried that many times but still the problem occur

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

First of all before adding new theme make sure that you are using renewal flux that compatible with the theme that you are doing to use....( uhhh corret -_- )

Link to comment
Share on other sites

×
×
  • Create New...