MySQL on FC4 Installation

Aus Weis nix
Wechseln zu: Navigation, Suche

These are instructions for installing mysql database with phpMyAdmin on FC4

Start the service with:

service mysqld start

Set initial database password with:

mysqladmin password SECRET

Enable service for system:

chkconfig --level 2345 mysqld on

Install web-based management package phpMyAdmin (get the latest version):

cd /var/www/html
mkdir admin
cd admin
tar xvjf phpMyAdmin-2.8.0-rc2.tar.bz2
rm phpMyAdmin-2.8.0-rc2.tar.bz2
ln -s phpMyAdmin-2.8.0-rc2 phpMyAdmin
cd phpMyAdmin

Use the path http://server/admin/phpMyAdmin/scripts/setup.php to generate a configuration file. Display it and save it to the file in the main phpMyAdmin folder.

Install some PHP extensions and restart webserver:

yum install php-mysql
yum install php-mbstring
service httpd reload

Test by navigating to http://server/admin/phpMyAdmin/ and logging in using user root the above database password.