Hi Uwe, On Wed Mar 14 2012 17:53, Uwe Dippel wrote: > I have this unfortunate occurrence on one of my production machines: > "Database Error: Unable to connect to the database:Could not connect to MySQL" > I studied the Upgrade Guide 4.9 to 5.0 intensely before and after, but > can't find what went wrong. I just did the upgrade, and made the links > as proposed (so I hope) > > # pwd > /etc/php-5.2 > # ls -l > total 0 > lrwxr-xr-x 1 root wheel 26 Mar 14 17:26 gd.ini -> > /etc/php-5.2.sample/gd.ini > lrwxr-xr-x 1 root wheel 29 Mar 14 17:25 mysql.ini -> > /etc/php-5.2.sample/mysql.ini > > # ls -l /var/www/conf/modules > total 0 > lrwxr-xr-x 1 root daemon 41 Mar 14 16:26 php.conf -> > /var/www/conf/modules.sample/php-5.2.conf > > I also tried to copy the modified php.ini from /var/www/conf to > /etc/php-5.2.ini > Then the result is: > "Database Error: Unable to connect to the database:The MySQL adapter > "mysql" is not available."
you need to create the directory /etc/php-5.2 and place equivalent symbolic links to modules in /etc/php-5.2.sample as in /var/www/conf/php5. >From upgrade50.html: > php module changes > The various PHP modules (for example gd, mysql, postgresql, xcache, and > various > other modules which are part of PHP or from PECL) had their configuration > files > in /var/www/conf/php5.sample; symbolic links for active modules were placed in > /var/www/conf/php5. These have moved to /etc/php-5.2.sample and /etc/php-5.2 > respectively. You will need to check for existing links in /var/www/conf/php5 > and create equivalent links in /etc/php-5.2. Note that mbstring is now part of > the main php-5.2 package so an existing mbstring.ini symbolic link can be > ignored. Yours, Norman