Jump to content
  • 0
Luffy

FluxCp Error help!

Question

Critical Error


An error was encountered during the lifetime of the application.


 

This could be due to a variety of problems, such as a bug in the application.


 

However, normally it is caused by misconfiguration.



Exception Details

 

Error: PDOException


 

Message: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)


 

File: C:xampphtdocsfluxcplibFluxConnection.php:81


 

File Line Function/Method

C:xampphtdocsfluxcplibFluxConnection.php 81 PDO::__construct()

C:xampphtdocsfluxcplibFluxConnection.php 94 Flux_Connection::connect()

C:xampphtdocsfluxcplibFluxConnection.php 159 Flux_Connection::getConnection()

C:xampphtdocsfluxcpmodulesinstallindex.php 17 Flux_Connection::getStatement()

C:xampphtdocsfluxcplibFluxTemplate.php 337 include()

C:xampphtdocsfluxcplibFluxDispatcher.php 168 Flux_Template::render()

C:xampphtdocsfluxcpindex.php 177 Flux_Dispatcher::dispatch()


Exception Trace As String

 

#0 C:xampphtdocsfluxcplibFluxConnection.php(81): PDO->__construct(*hidden*)#1 C:xampphtdocsfluxcplibFluxConnection.php(94): Flux_Connection->connect(Object(Flux_Config))#2 C:xampphtdocsfluxcplibFluxConnection.php(159): Flux_Connection->getConnection()#3 C:xampphtdocsfluxcpmodulesinstallindex.php(17): Flux_Connection->getStatement('SELECT VERSION(...')#4 C:xampphtdocsfluxcplibFluxTemplate.php(337): include('C:xampphtdocs...')#5 C:xampphtdocsfluxcplibFluxDispatcher.php(168): Flux_Template->render()#6 C:xampphtdocsfluxcpindex.php(177): Flux_Dispatcher->dispatch(Array)#7 {main}
Edited by ayennnnnnn

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Message: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

 

configservers.php

 

make sure you put the right ip of your server sql. and also you put the right username and password of your root.

Share this post


Link to post
Share on other sites
  • 0

i follow the guide but end up like that. :/  and sir  i have one problem the when i run the rathena i end up having this error

: Unknown database 'rathena'

so i checked the MySQL the rathena and logs schema is gone and then i look on the myphpadmin the schema was there. dont know how to fix this.

<?phpreturn array(    // Example server configuration. You may have more arrays like this one to    // specify multiple server groups (however they should share the same login    // server whilst they are allowed to have multiple char/map pairs).    array(        'ServerName'	 => 'SnyRO',        // Global database configuration (excludes logs database configuration).        'DbConfig'	   => array(            //'Socket'	 => '/tmp/mysql.sock',            //'Port'	   => 3306,            //'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.            'Convert'    => 'utf8',                // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.                // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)            'Hostname'   => '127.0.0.1',            'Username'   => 'root',            'Password'   => 'neya',            'Database'   => 'rathena',            'Persistent' => true,            'Timezone'   => null // Example: '+0:00' is UTC.            // The possible values of 'Timezone' is as documented from the MySQL website:            // "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."            // "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)            // **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."        ),        // This is kept separate because many people choose to have their logs        // database accessible under different credentials, and often on a        // different server entirely to ensure the reliability of the log data.        'LogsDbConfig'   => array(            //'Socket'	 => '/tmp/mysql.sock',            //'Port'	   => 3306,            //'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.            'Convert'    => 'utf8',                // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.                // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)            'Hostname'   => '127.0.0.1',            'Username'   => 'root',            'Password'   => 'neya',            'Database'   => 'logs',            'Persistent' => true,            'Timezone'   => null // Possible values is as described in the comment in DbConfig.        ),        // Login server configuration.        'LoginServer'    => array(            'Address'  => '127.0.0.1',            'Port'	 => 6900,            'UseMD5'   => true,            'NoCase'   => true, // eA account case-sensitivity; Default: Case-INsensitive (true).            'Level'    => 0,    // Default account level during registration.            //'Database' => 'rathena'        ),        'CharMapServers' => array(            array(                'ServerName'    => 'SnyRO',                'BaseExpRates'  => 200,                'JobExpRates'   => 200,                'MvpExpRates'   => 200,                'DropRates'	 => 25,                'MvpDropRates'  => 25,                'CardDropRates' => 25,                'MaxCharSlots'  => 9,                'DateTimezone'  => null,	   // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)                //'ResetDenyMaps' => 'sec_pri',  // Defaults to 'sec_pri'. This value can be an array of map names.                //'Database'	  => 'rathena', // Defaults to DbConfig.Database                'CharServer'    => array(                    'Address'   => '127.0.0.1',                    'Port'	  => 6121                ),                'MapServer'	 => array(                    'Address'   => '127.0.0.1',                    'Port'	  => 5121                ),                // -- WoE days and times --                // First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday                // Second parameter: Starting hour in 24-hr format.                // Third paramter: Ending day (possible value is same as starting day).                // Fourth (final) parameter: Ending hour in 24-hr format.                // ** (Note, invalid times are ignored silently.)                'WoeDayTimes'   => array(                    //array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM                    //array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM                ),                // Modules and/or actions to disallow access to during WoE.                'WoeDisallow'   => array(                    array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.                    array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.                )            )        )    ));?> 

Share this post


Link to post
Share on other sites
  • 0

Hi ayennnnnnn,

 

Make sure you have set up a MySQL server. And within your MySQL server, make a database called 'rathena' so that you can import your emulator's SQL files. 

Share this post


Link to post
Share on other sites
  • 0

hi sir Edward L,

 

so i will include also item_cash_db.sql,item_cash_db2.sql all the sql in sql-files folder?

im running windows 32bit

Edited by ayennnnnnn

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.