mysql connection issues on owncloud

I have successfully installed owncloud in my server, while installing i have faced below error message stating that mysql database “Could not find driver”. See the below screen shot.

mysql connection issues on owncloud.
owncloud-dont-connect-or-accept-mysql-databases-1

Why It’s happen ?

After spending two hours investigating on this issue, i have find-out the root causes of issue, this was happen due to pdo driver is not compiled with mysql in my server. Then i have compiled with pdo-mysql driver and tried. Finally Its success. See the below screen shot.

Install below extensions:

MySQL (php-mysql) – A extension for PHP applications that use MySQL databases.

[email protected] [~]# yum install php-mysql

PDO (php-pdo) – Database access module for PHP applications.

[email protected] [~]# yum install php-pdo

Add these lines to php.ini:

extension=pdo.so
extension=pdo_mysql.so

Finally restart the web server.

[email protected] [~]# service httpd restart

Now, Owncloud connected with mysql database. See the below screen shot.
owncloud-dont-connect-or-accept-mysql-databases-2
We are preparing all articles in-depth to understand by all level/stage Linux administrators. If the article is useful for you, then please spend less than a minute to share your valuable comments in our commenting section.

Please stay tune with us…Good Luck.

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...

2 Responses

  1. 2daygeek says:

    @Simon,
    I didn’t checked with Windows, Will test and update you the details.

  2. Simon says:

    How do you resolve this issue with Windows 7. The php.ini file has the php_pdo_mysql.dll extension.?

Leave a Reply

Your email address will not be published. Required fields are marked *