Page 1 of 1

názov databázy

Posted: Tue Jun 02, 2009 10:57 am
by phlavac
Pri zálohovani stránky so serveru na localhost mi nechodia stránky pokiaľ nepoužijem presný názov databázy zo servra. Musí byť názov databázy vždy rovnaký, alebo robím niekde chybu? Config.php som upravil podľa návodu.

Ďakujem za pomoc.

Re: názov databázy

Posted: Tue Jun 02, 2009 3:58 pm
by michaljirku
v config.php musite upravit pripovojaci skrypt k DB tak aby se Vam data tahali z localhostu, pote naimportujete DB na localhost. Nekteri ISP blokuji vzdalene pripojovani k DB

Re: názov databázy

Posted: Wed Jun 03, 2009 7:01 am
by phlavac
Asi niekde robím chybu.

Tu je nastavenie DB, s ktorou mi to chodí.


#-----------------
#Database Settings
#-----------------

#This is your database connection information.  Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'eltis_sk';
#Change this param only if you know what you are doing
$config["db_port"] = '';


#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'eltis_sk_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

#Use ADODB Lite?  This should be true in almost all cases.  Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

Keď DB premenujem napr. na "pokus" a prepišem config.php nasledovne tak to nechodí.

#-----------------
#Database Settings
#-----------------

#This is your database connection information.  Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'root';
$config['db_password'] = '';
$config['db_name'] = 'pokus';
#Change this param only if you know what you are doing
$config["db_port"] = '';


#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'pokus_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

#Use ADODB Lite?  This should be true in almost all cases.  Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

Viete poradiť, kde robím chybu?

Re: názov databázy

Posted: Wed Jun 03, 2009 7:57 am
by kino
jestli si stahnes db ze serveru na localhost do db pokus, tak pak mas nastaveno, db pokus spravne ale prefix se nemeni na pokus_ ... to by melo zusta to elis_sk_ co jsi tam mel. Nebo jsi pustil na db prejmenovani tabulek?

Re: názov databázy

Posted: Thu Jun 04, 2009 8:48 am
by phlavac
Ďakujem za radu. Už je to OK.