Joomla.it Forum

Non solo Joomla... => Database => : dvd87 22 Jan 2009, 09:47:15

: errore 1146
: dvd87 22 Jan 2009, 09:47:15
Ho spostato tutti i file di backup del sito su netsons.org perchè altervista dava moltiproblemi.

ho cambiato il file configuration.php e
ora mi viene fuori questo errore:

jtablesession::Store Failed
DB function failed with error number 1146
Table 'eformazi_db.jos_session' doesn't exist SQL=INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( '95090033fc5c0799862bd1854a66562e','1232613700','','0','1','0' )

qualcuno mi ha detto di lanciare una query che mi ha scritto ma non so come si fa
: Re: errore 1146
: TheShark 22 Jan 2009, 10:17:25
DB function failed with error number 1146
Table 'eformazi_db.jos_session' doesn't exist

Devi creare la tabella jos_session perche' non esiste.

Accedi all'area di netsons da dove gestisci lo spazio web entri in phpmyadmin e nel database di joomla(sempre da phpmyadmin)clicchi in alto su SQL incolli nel form:

:
#
# Table structure for table `#__session`
#

CREATE TABLE `#__session` (
  `username` varchar(150) default '',
  `time` varchar(14) default '',
  `session_id` varchar(200) NOT NULL default '0',
  `guest` tinyint(4) default '1',
  `userid` int(11) default '0',
  `usertype` varchar(50) default '',
  `gid` tinyint(3) unsigned NOT NULL default '0',
  `client_id` tinyint(3) unsigned NOT NULL default '0',
  `data` longtext,
  PRIMARY KEY  (`session_id`(64)),
  KEY `whosonline` (`guest`,`usertype`),
  KEY `userid` (`userid`),
  KEY `time` (`time`)
) TYPE=InnoDB CHARACTER SET `utf8`;

# --------------------------------------------------------

e clicchi su esegui.
: Re: errore 1146
: dvd87 22 Jan 2009, 10:22:14
fatto tutto.

il problema rimane
: Re: errore 1146
: TheShark 22 Jan 2009, 10:23:30
ma cosa ti esce opo che lanci la query?
: Re: errore 1146
: TheShark 22 Jan 2009, 10:25:08
E sopratutto: hai impostato il nome utente nome database e password diversi nel configuration.php?

Perche' cambiando host son cambiati i parametri di accesso al db.
: Re: errore 1146
: dvd87 22 Jan 2009, 10:27:41
si ho cambiato tutto.

quando faccio esegui non succede niente, a parte che compare la tabella nel menu laterale
: Re: errore 1146
: TheShark 22 Jan 2009, 10:29:03
ma hai importato tutto il database si?
: Re: errore 1146
: dvd87 22 Jan 2009, 10:43:30
in che senso?
: Re: errore 1146
: TheShark 22 Jan 2009, 10:46:44
Ho spostato tutti i file di backup del sito su netsons.org perchè altervista dava moltiproblemi.

ho cambiato il file configuration.php
Nel senso che non vedo: ho importato il database del sito che stava nell'altro host,e mi e' venuto il dubbio amletico: non e' che non ha importato il vecchio database e non ha impostato i parametri nuovi del database nel file configuration.php  ?
: Re: errore 1146
: dvd87 22 Jan 2009, 10:52:08
dato che non capisco cosa dici probabilmente non l'ho fatto...

cosa dovrei fare precisamente?
: Re: errore 1146
: TheShark 22 Jan 2009, 10:53:42
Dovresti andare sul vecchio host esportare il database (con phpmyadmin) entrare sul nuovo host ed importare il database(con phpmyadmin)
: Re: errore 1146
: dvd87 22 Jan 2009, 11:21:00
sembra strano ma mi da errore anche questo!!  :'(

Errore

query SQL:

-- phpMyAdmin SQL Dump
-- version 2.9.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 22 Gen, 2009 at 11:13 AM
-- Versione MySQL: 5.1.30
-- Versione PHP: 4.4.8
--
-- Database: `my_libriformazione`
--
CREATE DATABASE `my_libriformazione` DEFAULT CHARACTER SET ;

Messaggio di MySQL: Documentazione
#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 '' at line 1