On 14 March 2012 09:53, Uwe Dippel <udip...@gmail.com> 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." > > pkg_info looks okay: > mini_sendmail-chroot-1.3.6p1 static mini_sendmail for chrooted apache > mysql-client-5.1.54p0 multithreaded SQL database (client) > mysql-server-5.1.54p9 multithreaded SQL database (server) > nano-2.2.6 Pico editor clone with enhancements > [...] > pfstat-2.3p1 packet filter statistics visualization > php-5.2.17p5 server-side HTML-embedded scripting language > php-gd-5.2.17p4 image manipulation extensions for php5 > php-mysql-5.2.17p3 mysql database access extensions for php5 > png-1.5.4 library for manipulating PNG images > > I am very grateful for any help or advice how to further debug this. > > Uwe >
How did you start your mysql server? What does your logs say in /var/mysql/ ? hth Fred