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.
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:
Finally restart the web server.
[email protected] [~]# service httpd restart
Now, Owncloud connected with mysql database. See the below screen shot.
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.