Bloccato all'inizio

11 contenuti / 0 new
Ultimo contenuto
Bloccato all'inizio

Ciao a tutti, sono nuovissimo su Drupal. Leggendo in giro mi sembra ottimo e completo, infatti lo volevo sostituire al posto di opencommercio-2.2 che ho sul mio sito. Ho seguito tutte le indicazioni ma..... sono bloccato alla creazione del database mysql - ( sono su Aruba )
direttamente su amministratore mysql quando inserisco la query SQL sul database
mysqladmin -u dba_user -p create drupal
mi risponde :
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqladmin -u dba_user -p create drupal' at line 1
Allora ho provato direttamente durante la procedura di installazione a inserire il database ( uno dei 5 che aruba mi da già pronti )
metto Database name - Database username - la password e in opzioni inserisco il mio database host. clicco su salva e...... ritorno al punto iniziale, Select an installation profile.
Ho provato la versione di Drupal italia , quella del sito Madre, ma niente da fare. Ho creato una cartella nuova nominata prova , l'ho rinominata in Drupal, sia fuori che dentro public ........ lo stesso risultato.
Dove sto sbagliando?
Ciao a tutta la comunità
Luca

Dimenticavo , ho già provato a sostituire i permessi sul file /sites/default/settings.php da 644 a 777, non li prende ( uso Cuteftp 7.1 pro )

Ciao, non uso Aruba e quindi non so quanto sia affidabile quello che dico, in ogni caso mi pare che su Aruba non si possa usare la procedura di configurazione automatica, ma si debba fare a manina la configurazione del file /sites/default/settings.php e caricare il DUMP del database dal pannello di amministrazione, in ogni caso cerca un pò nel forum, se ne era già parlato.

PS: please usare i pulsanti qui sopra per rendere più leggibile i post che inviate :)

Ciao
Marco
--
My blog
Working at @agavee

Niente da fare, non trovo una via d'uscita

Nessuno che mi può aiutare?

Ti da errore perchè quella non è un istruzione SQL.
Da quel che dici dovresti già avere il tuoi database creati..... allora fai così:
1) configurati a manina settings.php IN LOCALE SUL TUO HD, mettendo l'utente, la password, l'ip del server sql e il nome del database
2) posta il file via FTP
Vai si http://nometuosito/install.php

Ciao
Gianni

Ciao Gianni e grazie,
dove devo inserire l'utente, la password, l'ip del server sql e il nome del database?

<?php
// $Id: settings.php,v 1.39 2007/01/14 02:05:15 unconed Exp $
/**
 * @file
 * Drupal site-specific configuration file.
 *
 * IMPORTANT NOTE:
 * This file may have been set to read-only by the Drupal installation
 * program. If you make changes to this file, be sure to protect it again
 * after making your modifications. Failure to remove write permissions
 * to this file is a security risk.
 *
 * The configuration file to be loaded is based upon the rules below.
 *
 * The configuration directory will be discovered by stripping the
 * website's hostname from left to right and pathname from right to
 * left. The first configuration file found will be used and any
 * others will be ignored. If no other configuration file is found
 * then the default configuration file at 'sites/default' will be used.
 *
 * For example, for a fictitious site installed at
 * <a href="http://www.drupal.org/mysite/test/" rel="nofollow">http://www.drupal.org/mysite/test/</a>, the 'settings.php'
 * is searched in the following directories:
 *
 *  1. sites/<a href="http://www.drupal.org.mysite.test
" rel="nofollow">www.drupal.org.mysite.test
</a> *  2. sites/drupal.org.mysite.test
 *  3. sites/org.mysite.test
 *
 *  4. sites/<a href="http://www.drupal.org.mysite
" rel="nofollow">www.drupal.org.mysite
</a> *  5. sites/drupal.org.mysite
 *  6. sites/org.mysite
 *
 *  7. sites/<a href="http://www.drupal.org
" rel="nofollow">www.drupal.org
</a> *  8. sites/drupal.org
 *  9. sites/org
 *
 * 10. sites/default
 *
 * If you are installing on a non-standard port number, prefix the
 * hostname with that number. For example,
 * <a href="http://www.drupal.org:8080/mysite/test/" rel="nofollow">http://www.drupal.org:8080/mysite/test/</a> could be loaded from
 * sites/8080.<a href="http://www.drupal.org.mysite.test/.
" rel="nofollow">www.drupal.org.mysite.test/.
</a> */
/**
 * Database settings:
 *
 * Note that the $db_url variable gets parsed using PHP's built-in
 * URL parser (i.e. using the "parse_url()" function) so make sure
 * not to confuse the parser. If your username, password
 * or database name contain characters used to delineate
 * $db_url parts, you can escape them via URI hex encodings:
 *
 *   : = %3a   / = %2f   @ = %40
 *   + = %2b   ( = %28   ) = %29
 *   ? = %3f   = = %3d   & = %26
 *
 * To specify multiple connections to be used in your site (i.e. for
 * complex custom modules) you can also specify an associative array
 * of $db_url variables with the 'default' element used until otherwise
 * requested.
 *
 * You can optionally set prefixes for some or all database table names
 * by using the $db_prefix setting. If a prefix is specified, the table
 * name will be prepended with its value. Be sure to use valid database
 * characters only, usually alphanumeric and underscore. If no prefixes
 * are desired, leave it as an empty string ''.
 *
 * To have all database names prefixed, set $db_prefix as a string:
 *
 *   $db_prefix = 'main_';
 *
 * To provide prefixes for specific tables, set $db_prefix as an array.
 * The array's keys are the table names and the values are the prefixes.
 * The 'default' element holds the prefix for any tables not specified
 * elsewhere in the array. Example:
 *
 *   $db_prefix = array(
 *     'default'   => 'main_',
 *     'users'     => 'shared_',
 *     'sessions'  => 'shared_',
 *     'role'      => 'shared_',
 *     'authmap'   => 'shared_',
 *     'sequences' => 'shared_',
 *   );
 *
 * Database URL format:
 *   $db_url = 'mysql://username:password@localhost/databasename';
 *   $db_url = 'mysqli://username:password@localhost/databasename';
 *   $db_url = 'pgsql://username:password@localhost/databasename';
 */
$db_url = 'mysql://username:password@localhost/databasename';
$db_prefix = '';
/**
 * Base URL (optional).
 *
 * If you are experiencing issues with different site domains,
 * uncomment the Base URL statement below (remove the leading hash sign)
 * and fill in the URL to your Drupal installation.
 *
 * You might also want to force users to use a given domain.
 * See the .htaccess file for more information.
 *
 * Examples:
 *   $base_url = '<a href="http://www.example.com';
" rel="nofollow">http://www.example.com';
</a> *   $base_url = '<a href="http://www.example.com:8888';
" rel="nofollow">http://www.example.com:8888';
</a> *   $base_url = '<a href="http://www.example.com/drupal';
" rel="nofollow">http://www.example.com/drupal';
</a> *   $base_url = '<a href="https://www.example.com:8888/drupal';
" rel="nofollow">https://www.example.com:8888/drupal';
</a> *
 * It is not allowed to have a trailing slash; Drupal will add it
 * for you.
 */
# $base_url = '<a href="http://www.example.com';" rel="nofollow">http://www.example.com';</a>  // NO trailing slash!
/**
 * PHP settings:
 *
 * To see what PHP settings are possible, including whether they can
 * be set at runtime (ie., when ini_set() occurs), read the PHP
 * documentation at <a href="http://www.php.net/manual/en/ini.php#ini.list
" rel="nofollow">http://www.php.net/manual/en/ini.php#ini.list
</a> * and take a look at the .htaccess file to see which non-runtime
 * settings are used there. Settings defined here should not be
 * duplicated there so as to avoid conflict issues.
 */
ini_set('arg_separator.output',     '&amp;');ini_set("memory_limit", "32M");ini_set('magic_quotes_runtime',     0);
ini_set('magic_quotes_sybase',      0);
ini_set('session.cache_expire',     200000);
ini_set('session.cache_limiter',    'none');
ini_set('session.cookie_lifetime'2000000);
ini_set('session.gc_maxlifetime',   200000);
ini_set('session.save_handler',     'user');
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid',    0);
ini_set('url_rewriter.tags',        '');
/**
 * We try to set the correct cookie domain. If you are experiencing problems
 * try commenting out the code below or specifying the cookie domain by hand.
 */
if (isset($_SERVER['HTTP_HOST'])) {
 
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
 
// Per RFC 2109, cookie domains must contain at least one dot other than the
  // first. For hosts such as 'localhost', we don't set a cookie domain.
 
if (count(explode('.', $domain)) > 2) {
   
ini_set('session.cookie_domain', $domain);
  }
}
/**
 * Variable overrides:
 *
 * To override specific entries in the 'variable' table for this site,
 * set them here. You usually don't need to use this feature. This is
 * useful in a configuration file for a vhost or directory, rather than
 * the default settings.php. Any configuration setting from the 'variable'
 * table can be given a new value.
 *
 * Remove the leading hash signs to enable.
 */
# $conf = array(
#   'site_name' => 'My Drupal site',
#   'theme_default' => 'minnelli',
#   'anonymous' => 'Visitor',
# );
 
?>

<?php
 $db_url
= 'mysql://username:password@localhost/databasename';
?>

Devi variare la riga sopra.
Ti faccio un esempio.... supponiamo che il tuo database si chiama "drupaldb", che il tuo login è "pinco" e che la tua password è "pwd".
Supponiamo anche che il tuo server mysql sia in "localhost".... la stringa sopra diventa:

$db_url = 'mysql://pinco:pwd@localhost/drupaldb';

Quella sopra e' l'UNICA RIGA che devi variare

P.S.
Nella guida c'è scritto ed è mostrato anche nel vidocorso di theCrow che trovi su questo sito

IMPORTANTE!!! la prossima volta che posti del codice, utilizza l'apposito tag PHP (quell'iconcina che trovi in alto, quando componi i messaggi). Per questa volta te lo faccio io ;-)

Ciao

Grazie GIanni...................
ora è installato, finalmente.... l'unico problema che è in inglese, facento questa procedura non mi ha dato la possibilità di mettere italiano

Abilita il modulo locales, poi carica la traduzione che trovi qui su drupalitalia.
http://www.drupalitalia.org/node/3

Ciao
Marco
--
My blog
Working at @agavee

Ciao DDFRA anche io come altri ho pb nell'istallazione di DRUPAL in WIN+MySQL Aruba e leggendo le tue note ho gli stessi errori....purtroppo le soluzioni proposte non sono state per me efficaci.
Come hai fatto ad configurare il database Drupal?
Grazie.
Jimmy