Aktuelle Version |
Dein Text |
Zeile 375: |
Zeile 375: |
| : <code>mv /tmp/dump.`date "+%Y-%m-%d"`.sql ~/import/`date "+%Y-%m-%d"`</code> | | : <code>mv /tmp/dump.`date "+%Y-%m-%d"`.sql ~/import/`date "+%Y-%m-%d"`</code> |
| : <code>mv /tmp/archiv.`date "+%Y-%m-%d"`.tar.gz ~/import/`date "+%Y-%m-%d"`</code> | | : <code>mv /tmp/archiv.`date "+%Y-%m-%d"`.tar.gz ~/import/`date "+%Y-%m-%d"`</code> |
| : <code>mv /tmp/config.php ~/import/`date "+%Y-%m-%d"`</code>
| |
| <!-- | | <!-- |
| --> | | --> |
|
| |
|
| ; Datenbank importieren | | ; Datenbank importieren |
| : <code>mysql -u root -p < ~/import/`date "+%Y-%m-%d"`/dump.`date "+%Y-%m-%d"`.sql</code> | | : <code>mysql -u root -p < /tmp/dump.`date "+%Y-%m-%d"`.sql</code> |
| <pre>
| |
| Enter password:
| |
| </pre>
| |
| <pre>
| |
| ERROR 1064 (42000) at line 1: 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 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or' at line 1
| |
| </pre>
| |
| ; Datenbank aktualisieren
| |
| : <code>mysql_upgrade -u root -p</code>
| |
| <pre>
| |
| Enter password:
| |
| </pre>
| |
| <pre>
| |
| </pre>
| |
| <pre>
| |
| Looking for 'mysql' as: mysql
| |
| Looking for 'mysqlcheck' as: mysqlcheck
| |
| Running 'mysqlcheck with default connection arguments
| |
| Warning: Using a password on the command line interface can be insecure.
| |
| Running 'mysqlcheck with default connection arguments
| |
| Warning: Using a password on the command line interface can be insecure.
| |
| mysql.columns_priv OK
| |
| mysql.db OK
| |
| mysql.event OK
| |
| mysql.func OK
| |
| mysql.general_log OK
| |
| mysql.help_category OK
| |
| mysql.help_keyword OK
| |
| mysql.help_relation OK
| |
| mysql.help_topic OK
| |
| mysql.innodb_index_stats OK
| |
| mysql.innodb_table_stats OK
| |
| mysql.ndb_binlog_index OK
| |
| mysql.plugin OK
| |
| mysql.proc OK
| |
| mysql.procs_priv OK
| |
| mysql.proxies_priv OK
| |
| mysql.servers OK
| |
| mysql.slave_master_info OK
| |
| mysql.slave_relay_log_info OK
| |
| mysql.slave_worker_info OK
| |
| mysql.slow_log OK
| |
| mysql.tables_priv OK
| |
| mysql.time_zone OK
| |
| mysql.time_zone_leap_second OK
| |
| mysql.time_zone_name OK
| |
| mysql.time_zone_transition OK
| |
| mysql.time_zone_transition_type OK
| |
| mysql.user OK
| |
| Running 'mysql_fix_privilege_tables'...
| |
| Warning: Using a password on the command line interface can be insecure.
| |
| Running 'mysqlcheck with default connection arguments
| |
| Warning: Using a password on the command line interface can be insecure.
| |
| Running 'mysqlcheck with default connection arguments
| |
| Warning: Using a password on the command line interface can be insecure.
| |
| OK
| |
| </pre>
| |
| : <code>mysql_upgrade -u root -p</code>
| |
| <pre>
| |
| Enter password:
| |
| </pre>
| |
| <pre>
| |
| Looking for 'mysql' as: mysql
| |
| Looking for 'mysqlcheck' as: mysqlcheck
| |
| This installation of MySQL is already upgraded to 5.6.30, use --force if you still need to run mysql_upgrade
| |
| </pre>
| |
|
| |
|
| ; Datei zur Konfiguration von LimeSurvey einrichten
| | * mysql_upgrade? |
| : <code>cp /usr/local/www/limesurvey/config.php-dist /usr/local/www/limesurvey/config.php</code>
| | ** mysql-server stoppen? |
| : <code>cat ~/import/config.php</code> | | **: <code>service mysql-server stop</code> |
| : <code>$EDITOR /usr/local/www/limesurvey/config.php</code> | | *: <code>mysql_upgrade -u root -p</code> |
| <pre></pre>
| |
| <pre>
| |
| //$databasetype = 'mysql';
| |
| $databasetype = 'mysql';
| |
| </pre>
| |
| <pre>
| |
| //$databaselocation = 'localhost';
| |
| //$databasename = 'limesurvey';
| |
| //$databaseuser = 'root';
| |
| //$databasepass = '';
| |
| //$dbprefix = 'lime_';
| |
| $databaselocation = 'localhost';
| |
| $databasename = 'limesurvey';
| |
| $databaseuser = 'databaseuser';
| |
| $databasepass = 'databasepass';
| |
| $dbprefix = 'lime_';
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| //$rooturl = "http://{$_SERVER['HTTP_HOST']}/limesurvey";
| |
| //$rootdir = dirname(__FILE__);
| |
| $rooturl = "http://{$_SERVER['HTTP_HOST']}";
| |
| $rootdir = dirname(__FILE__);
| |
| </pre>
| |
| <pre>
| |
| //$defaultuser = 'admin';
| |
| //$defaultpass = 'password';
| |
| $defaultuser = 'admin';
| |
| $defaultpass = 'defaultpassword';
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| $siteadminemail = 'umfragen@stura.htw-dresden.de';
| |
| $siteadminbounce = 'umfragen@stura.htw-dresden.de';
| |
| $siteadminname = 'Umfragen StuRa HTW Dresden';
| |
| </pre> | |
| <pre></pre>
| |
| | |
| <!--
| |
| The LimeSurvey database does not exist. Please run the install script to create the necessary database.
| |
| !-->
| |
|
| |
|
| <!-- | | <!-- |