I try to install the media wiki on an webserver. I’ve installed all components I need. before intallation of de media wiki, the wiki gives me this status rapport:
"*# PHP 5.2.9 installed
Found database drivers for: MySQL PostgreSQL SQLite
PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
Have XML / Latin1-UTF-8 conversion support.
Session save path (/var/lib/php5) appears to be valid.
PHP’s memory_limit is 128M.
Couldn’t find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
Found GNU diff3: /usr/bin/diff3.
Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
Found GD graphics library built-in.
Installation directory: /srv/www/htdocs/mediawiki
Script URI path: /mediawiki
Installing MediaWiki with php file extensions
Environment checked. You can install MediaWiki.*"
But the media wiki can’t connect to te webserver.
"#* Database type: MySQL
Loading class: DatabaseMysql
Attempting to connect to database server as root…failed with error [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)*."
I’ve initialized the grant tables:
linux-zbz3:/home/awo # cd /usr/bin
linux-zbz3:/usr/bin # ./mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h linux-zbz3.site password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
linux-zbz3:/usr/bin #
But I get this error while startin the MySQL server:
linux-zbz3:/usr/bin # mysqld_safe awo=mysql &
[1] 13639
linux-zbz3:/usr/bin # nohup: invoer genegeerd en stderr gaat naar stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/linux-zbz3.site.pid
090923 14:12:46 mysqld ended
First of all: the proper way to start the MySQL server is from yast or as root on the command line:
prompt# rcmysql start
The argument may be stop or status as well. Then try:
prompt> mysqladmin ping
and it should say ‘mysqld is alive’. If not please have a look at the mysql error log. You find it in /var/lib/mysql and it has a filename ending in *.err
Please post the end of this file where it says why mysql could not start.
Looking at your initial post again I’m quite sure that you messed things up. You did run ‘mysql_install_db’ as user root with no arguments, didn’t you? When run manually it must have some arguments like this:
I’m glad it works for you. BTW, step 2 would have taken care of step 1 automagically. And simply activating mysql from yast takes care of everything (except adding a password for root).