Hi everybody, I recently installed Debian and I'm trying the MediaWiki in the repo but every time I try, it give me this messages, wich I can't understand.
I'll apreciatte if you can guide me ;) tnkx B.
MediaWiki 1.7.1 Installation
* *Don't forget security updates!* Keep an eye on the low-traffic release announcements mailing list http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce.
Checking environment...
/Please include all of the lines below when reporting installation problems./
* PHP 5.2.0-10 installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP's memory_limit is 16M. *If this is too low, installation may fail!* Attempting to raise limit to 20M... ok. * Have zlib support; enabling output compression. * Neither Turck MMCache http://turck-mmcache.sourceforge.net/ nor eAccelerator http://eaccelerator.sourceforge.net/ nor APC http://www.php.net/apc are installed, can't use object caching functions * Found GNU diff3: /usr/bin/diff3. * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. * Installation directory: /var/lib/mediawiki1.7 * Script URI path: /mediawiki * Environment checked. You can install MediaWiki.
*Generating configuration file...*
* Database type: MySQL * Loading class: DatabaseMysql * Attempting to connect to database server as root... *Warning*: mysql_query(): supplied argument is not a valid MySQL-Link resource in */usr/share/mediawiki1.7/includes/Database.php* on line *620* A database query syntax error has occurred. The last attempted database query was: "(SQL query hidden)" from within function "". MySQL returned error "1045: Access denied for user 'root'@'localhost' (using password: YES) (localhost)"
On 24/04/07, Blast neryver@infomed.sld.cu wrote:
A database query syntax error has occurred. The last attempted database query was: "(SQL query hidden)" from within function "". MySQL returned error "1045: Access denied for user 'root'@'localhost' (using password: YES) (localhost)"
The database connection details supplied were incorrect. The MediaWiki installer requires one set to be entered, with the second set being optional:
The first database username and password is that of the MySQL account used to connect to the database on a routine basis to perform standard read and write operations. These account details will be written into the LocalSettings.php file, and should point to an account which has *at least* SELECT, INSERT, UPDATE and DELETE permissions on the database specified for installation.
If the account details provided refer to an account which does not have permission to create the database (if needed), or to create and alter tables within the database, then you need to check the box marked "use a superuser account" and provide details of another account, such as the MySQL root user, which does have these permissions.
The most common cause for an "access denied" message is an incorrect password, so that would be the first thing to check; it's case-sensitive, as usual. The default MySQL root password is blank. See http://dev.mysql.com/doc/refman/5.0/en/user-names.html for an overview of user accounts in MySQL. If you've lost the root password, then http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html has a guide on how to reset it.
Rob Church
Thanks a lot Rob, you were right, the root pass was wrong, I went to Configure-Debian and I changed the root pass ;)
good luck!!! B.
Rob Church wrote:
On 24/04/07, Blast neryver@infomed.sld.cu wrote:
A database query syntax error has occurred. The last attempted database query was: "(SQL query hidden)" from within function "". MySQL returned error "1045: Access denied for user 'root'@'localhost' (using password: YES) (localhost)"
The database connection details supplied were incorrect. The MediaWiki installer requires one set to be entered, with the second set being optional:
The first database username and password is that of the MySQL account used to connect to the database on a routine basis to perform standard read and write operations. These account details will be written into the LocalSettings.php file, and should point to an account which has *at least* SELECT, INSERT, UPDATE and DELETE permissions on the database specified for installation.
If the account details provided refer to an account which does not have permission to create the database (if needed), or to create and alter tables within the database, then you need to check the box marked "use a superuser account" and provide details of another account, such as the MySQL root user, which does have these permissions.
The most common cause for an "access denied" message is an incorrect password, so that would be the first thing to check; it's case-sensitive, as usual. The default MySQL root password is blank. See http://dev.mysql.com/doc/refman/5.0/en/user-names.html for an overview of user accounts in MySQL. If you've lost the root password, then http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html has a guide on how to reset it.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org