Programación Web y Scripting > Aplicaciones Web Pre-Fabricadas
Error Al Instalar Drupal
x.cyclop:
Estoy tratando de instalar Drupal pero no puedo. :(
Cambié los datos del settings.php, ejecuto el archivo y me pone un montón de errores:
--- Código: Text ---Warning: Table 'drupal.sessions' doesn't exist query: SELECT sid FROM sessions WHERE sid = '0631fc50879b6e8ae6196ddaff9e837e' in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.users' doesn't exist query: SELECT u.* FROM users u WHERE u.uid = 0 in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 748 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 748 Warning: Table 'drupal.access' doesn't exist query: SELECT * FROM access WHERE status = 1 AND type = 'host' AND LOWER('127.0.0.1') LIKE LOWER(mask) in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.access' doesn't exist query: SELECT * FROM access WHERE status = 0 AND type = 'host' AND LOWER('127.0.0.1') LIKE LOWER(mask) in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.cache' doesn't exist query: SELECT data, created, headers, expire FROM cache WHERE cid = 'variables' in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.variable' doesn't exist query: SELECT * FROM variable in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.cache' doesn't exist query: LOCK TABLES cache WRITE in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Table 'drupal.cache' doesn't exist query: UPDATE cache SET data = 'N;', created = 1155772934, expire = 0, headers = '' WHERE cid = 'variables' in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 550 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 551 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 552 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 553 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Blog\includes\database.mysqli.inc:121) in C:\wamp\www\Blog\includes\bootstrap.inc on line 554 Warning: Table 'drupal.url_alias' doesn't exist query: SELECT COUNT(pid) FROM url_alias in C:\wamp\www\Blog\includes\database.mysqli.inc on line 121
¿Qué puedo hacer? :unsure:
ibito:
install.txt
--- Citar ---REQUIREMENTS
------------
Drupal requires a web server, PHP4 (4.3.3 or greater) or PHP5
(http://www.php.net/) and either MySQL (http://www.mysql.com/)
or PostgreSQL (http://www.postgresql.org/). Your database user
will also need sufficient privileges to run Drupal. Please
check the INSTALL.mysql.txt and INSTALL.pgsql.txt for more
detailed information.
NOTE: the Apache web server and MySQL database are recommended;
other web server and database combinations such as IIS and PostgreSQL
are possible but tested to a lesser extent.
--- Fin de la cita ---
INSTALL.mysql.txt
--- Citar ---// $Id: INSTALL.mysql.txt,v 1.6 2006/04/17 20:48:25 dries Exp $
CONTENTS OF THIS FILE
---------------------
* Introduction
* Installation and configuration:
- Database and user creation
- Drupal schema loading
INTRODUCTION
------------
This file describes how to create a MySQL database for Drupal.
If you control your databases through a web-based control panel,
check its documentation, as the following instructions are for the
command line only.
INSTALLATION AND CONFIGURATION
------------------------------
1. CREATE THE DRUPAL DATABASE
This step is only necessary if you don't already have a database
set-up (e.g. by your host). In the following examples, 'dba_user' is
an example MySQL user which has the CREATE and GRANT privileges. Use
the appropriate user name for your system.
First, you must create a new database for your Drupal site
(here, 'databasename' is the name of the new database):
mysqladmin -u dba_user -p create databasename
MySQL will prompt for the 'dba_user' database password and then create
the initial database files. Next you must login and set the access
database rights:
mysql -u dba_user -p
Again, you will be asked for the 'dba_user' database password.
At the MySQL prompt, enter following command:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX,
ALTER, CREATE TEMPORARY TABLES, LOCK TABLES
ON databasename.*
TO 'username'@'localhost' IDENTIFIED BY 'password';
where
'databasename' is the name of your database
'username@localhost' is the username of your MySQL account
'password' is the password required for that username
Note: Unless your database user has all of the privileges listed
above, you will not be able to run Drupal.
If successful, MySQL will reply with:
Query OK, 0 rows affected
To activate the new permissions, enter the following command:
FLUSH PRIVILEGES;
2. LOAD THE DRUPAL DATABASE SCHEMA
Once you have a database, you must load the required tables into it.
Depending on the version of MySQL you are using, you must use the
file 'database.4.0.mysql' (for MySQL 4.0 or lower) or
'database.4.1.mysql' (for MySQL 4.1 or higher). Both files are
located in Drupal's database directory.
If you use a web-based control panel, you should be able to upload
the appropriate file and run it directly as SQL commands.
From the command line, use (again, replacing 'username' and
'databasename' with your MySQL username and database name):
for MySQL 4.0 or lower:
mysql -u username -p databasename < database/database.4.0.mysql
for MySQL 4.1 or higher:
mysql -u username -p databasename < database/database.4.1.mysql
--- Fin de la cita ---
Geo:
¿Estás seguro de haber creado las tablas en la base de datos y que en settings.php la estás referenciando correctamente?
Saludos,
JJ (Geo).
x.cyclop:
Sí. Hice todo lo que dice allí.
Lo probé en Windows (con el WAMP) y en Ubuntu y salió lo mismo. :(
ibito:
--- Citar ---Table 'drupal.watchdog' doesn't exist query: INSERT INTO watchdog
--- Fin de la cita ---
No existe la tabla watchdog, para eso necesitas el esquema de la base de datos (DATABASE SCHEMA).
Abre el archivo que sea adecuado a tu base de datos (supongo mysql)
database.4.1.mysql
Si lo abres con el bloc de notas, viene la estructura de la base de datos
--- Código: Text --- CREATE TABLE watchdog (etc etc)
Ejecutala con (por ejemplo) phpMyAdmin en la parte SQL
Navegación
[#] Página Siguiente
Ir a la versión completa