PHP installation appears to be missing the MySQL extensionCan not install MySQL on my Ubuntu 12.04Installation problem libssh2-php on Ubuntu 13.10mcrypt installation error mcrypt.ini.dpkg-new no such file or directoryMySQL Installation Issues on Ubuntu 15.04mysql doesn't ask for root password when installingApt-get not working after attempting to install kde desktopmysql-server-5.5 ErrorError occued during server update. libklibc errorCannot install mysql on Ubuntu 17.10 Gnome 3.26.2Error While removing corrupted mysql
Emailing HOD to enhance faculty application
Should I tell management that I intend to leave due to bad software development practices?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Why is consensus so controversial in Britain?
UK: Is there precedent for the governments e-petition site changing the direction of a government decision?
Is it possible to download Internet Explorer on my Mac running OS X El Capitan?
Facing a paradox: Earnshaw's theorem in one dimension
How to prevent "they're falling in love" trope
Brothers & sisters
In a Spin are Both Wings Stalled?
What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?
Is it unprofessional to ask if a job posting on GlassDoor is real?
Could gravitational lensing be used to protect a spaceship from a laser?
Is delete *p an alternative to delete [] p?
What does it mean to describe someone as a butt steak?
Did Shadowfax go to Valinor?
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Etiquette around loan refinance - decision is going to cost first broker a lot of money
Twin primes whose sum is a cube
Is Lorentz symmetry broken if SUSY is broken?
Will google still index a page if I use a $_SESSION variable?
What's the point of deactivating Num Lock on login screens?
I would say: "You are another teacher", but she is a woman and I am a man
Watching something be written to a file live with tail
PHP installation appears to be missing the MySQL extension
Can not install MySQL on my Ubuntu 12.04Installation problem libssh2-php on Ubuntu 13.10mcrypt installation error mcrypt.ini.dpkg-new no such file or directoryMySQL Installation Issues on Ubuntu 15.04mysql doesn't ask for root password when installingApt-get not working after attempting to install kde desktopmysql-server-5.5 ErrorError occued during server update. libklibc errorCannot install mysql on Ubuntu 17.10 Gnome 3.26.2Error While removing corrupted mysql
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension
when taking any local website from my lamp
.
When I tried to reinstall lamp
, it shows the following error:
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb
/var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can any one help?
Thanks in advance.
apache2 php mysql 16.04
add a comment |
After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension
when taking any local website from my lamp
.
When I tried to reinstall lamp
, it shows the following error:
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb
/var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can any one help?
Thanks in advance.
apache2 php mysql 16.04
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23
add a comment |
After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension
when taking any local website from my lamp
.
When I tried to reinstall lamp
, it shows the following error:
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb
/var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can any one help?
Thanks in advance.
apache2 php mysql 16.04
After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension
when taking any local website from my lamp
.
When I tried to reinstall lamp
, it shows the following error:
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb
/var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can any one help?
Thanks in advance.
apache2 php mysql 16.04
apache2 php mysql 16.04
edited May 2 '16 at 12:42
Videonauth
24.9k1273102
24.9k1273102
asked May 2 '16 at 11:36
AbuAbdillahAbuAbdillah
113
113
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23
add a comment |
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23
add a comment |
3 Answers
3
active
oldest
votes
Just ran into the same error. You'll need to manually enable the mysqli
php module and then restart apache:
$ sudo phpenmod mysqli
$ sudo service apache2 restart
After that, it all worked (for me).
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
add a comment |
Ubuntu 16.04 includes PHP 7.0 that doesn't have old MySQL extension anymore as it has been deprecated for some time and removed in PHP 7.0. You either need to update your application to support MySQLi or pdo_mysql or install PHP 5.6 from PPA (ppa:ondrej/php).
As for the reinstallation problem, I would suggest removing MySQL packages first and then reinstalling them again:
sudo apt-get remove mysql-common
sudo apt-get install mysql-server
When i try it shows:You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
|
show 3 more comments
When I upgraded my website PHP from version 5.6 to 7.2, I encountered this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. It turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension that is why the problem existed. So what I did is upgraded the wordpress to the core. This solve the problem.
Here's the steps I followed when upgrading wordpress manually.
1. First I created a full backup of my website http://fractioncalc.com. This is very important in case of mistake.
2. I download the newest WordPress ZIP file from wordpress.org.
3. I unzipped the file into a local directory of my computer.
4. I went to my website root directory and deleted your ‘wp-includes’ and ‘wp-admin’ directories. I used sFTP connection using Filezilla software.
5. I uploaded the new wp-includes and wp-admin directories from the new version of WordPress I unzipped to my website root directory and replaced the directories I just deleted.
6. I did not delete the wp-content directory or any of the files in that directory. I just copied over the files from the wp-content directory in the new version of WordPress to my existing wp-content directory. All existing files with the same name have been overwritten.
7. I copied all files from the root (‘/’) directory of the new version of WordPress that I unzipped into my website root directory (or the root directory of your WordPress installation). Existing files has been overwritten and new files has been copied across. wp-config.php file was not be affected because WordPress has never distributed with a wp-config.php file.
8. I compare wp-config-sample.php which wass distributed with WordPress but did not find anything to change so I just used the old one.
9. I cleared my browser cache to ensure I can see all changes.
10. I checked the site and there is no error now. Thanks God the upgrade was completed.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f766326%2fphp-installation-appears-to-be-missing-the-mysql-extension%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just ran into the same error. You'll need to manually enable the mysqli
php module and then restart apache:
$ sudo phpenmod mysqli
$ sudo service apache2 restart
After that, it all worked (for me).
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
add a comment |
Just ran into the same error. You'll need to manually enable the mysqli
php module and then restart apache:
$ sudo phpenmod mysqli
$ sudo service apache2 restart
After that, it all worked (for me).
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
add a comment |
Just ran into the same error. You'll need to manually enable the mysqli
php module and then restart apache:
$ sudo phpenmod mysqli
$ sudo service apache2 restart
After that, it all worked (for me).
Just ran into the same error. You'll need to manually enable the mysqli
php module and then restart apache:
$ sudo phpenmod mysqli
$ sudo service apache2 restart
After that, it all worked (for me).
answered May 15 '16 at 1:35
Carl RussmannCarl Russmann
1313
1313
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
add a comment |
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
tried, but not working for me.
– AbuAbdillah
May 18 '16 at 14:30
add a comment |
Ubuntu 16.04 includes PHP 7.0 that doesn't have old MySQL extension anymore as it has been deprecated for some time and removed in PHP 7.0. You either need to update your application to support MySQLi or pdo_mysql or install PHP 5.6 from PPA (ppa:ondrej/php).
As for the reinstallation problem, I would suggest removing MySQL packages first and then reinstalling them again:
sudo apt-get remove mysql-common
sudo apt-get install mysql-server
When i try it shows:You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
|
show 3 more comments
Ubuntu 16.04 includes PHP 7.0 that doesn't have old MySQL extension anymore as it has been deprecated for some time and removed in PHP 7.0. You either need to update your application to support MySQLi or pdo_mysql or install PHP 5.6 from PPA (ppa:ondrej/php).
As for the reinstallation problem, I would suggest removing MySQL packages first and then reinstalling them again:
sudo apt-get remove mysql-common
sudo apt-get install mysql-server
When i try it shows:You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
|
show 3 more comments
Ubuntu 16.04 includes PHP 7.0 that doesn't have old MySQL extension anymore as it has been deprecated for some time and removed in PHP 7.0. You either need to update your application to support MySQLi or pdo_mysql or install PHP 5.6 from PPA (ppa:ondrej/php).
As for the reinstallation problem, I would suggest removing MySQL packages first and then reinstalling them again:
sudo apt-get remove mysql-common
sudo apt-get install mysql-server
Ubuntu 16.04 includes PHP 7.0 that doesn't have old MySQL extension anymore as it has been deprecated for some time and removed in PHP 7.0. You either need to update your application to support MySQLi or pdo_mysql or install PHP 5.6 from PPA (ppa:ondrej/php).
As for the reinstallation problem, I would suggest removing MySQL packages first and then reinstalling them again:
sudo apt-get remove mysql-common
sudo apt-get install mysql-server
edited May 25 '16 at 8:42
answered May 3 '16 at 10:42
oerdnjoerdnj
6,9843348
6,9843348
When i try it shows:You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
|
show 3 more comments
When i try it shows:You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
When i try it shows:
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
When i try it shows:
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.7 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
– AbuAbdillah
May 18 '16 at 19:44
So then when trying sudo apt-get install -f it shows:
The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
So then when trying sudo apt-get install -f it shows:
The following additional packages will be installed: mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded. 1 not fully installed or removed. Need to get 0 B/10.1 MB of archives. After this operation, 94.4 MB of additional disk space will be used. Do you want to continue? [Y/n]
– AbuAbdillah
May 18 '16 at 19:51
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Do you want to continue? [Y/n] y Preconfiguring packages ...... Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/estonian/errmsg.sys', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
– AbuAbdillah
May 18 '16 at 19:53
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-common 5.7.12-1ubuntu15.10 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
– AbuAbdillah
May 18 '16 at 19:55
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: /var/cache/apt/archives/mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb /var/cache/apt/archives/mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– AbuAbdillah
May 18 '16 at 19:56
|
show 3 more comments
When I upgraded my website PHP from version 5.6 to 7.2, I encountered this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. It turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension that is why the problem existed. So what I did is upgraded the wordpress to the core. This solve the problem.
Here's the steps I followed when upgrading wordpress manually.
1. First I created a full backup of my website http://fractioncalc.com. This is very important in case of mistake.
2. I download the newest WordPress ZIP file from wordpress.org.
3. I unzipped the file into a local directory of my computer.
4. I went to my website root directory and deleted your ‘wp-includes’ and ‘wp-admin’ directories. I used sFTP connection using Filezilla software.
5. I uploaded the new wp-includes and wp-admin directories from the new version of WordPress I unzipped to my website root directory and replaced the directories I just deleted.
6. I did not delete the wp-content directory or any of the files in that directory. I just copied over the files from the wp-content directory in the new version of WordPress to my existing wp-content directory. All existing files with the same name have been overwritten.
7. I copied all files from the root (‘/’) directory of the new version of WordPress that I unzipped into my website root directory (or the root directory of your WordPress installation). Existing files has been overwritten and new files has been copied across. wp-config.php file was not be affected because WordPress has never distributed with a wp-config.php file.
8. I compare wp-config-sample.php which wass distributed with WordPress but did not find anything to change so I just used the old one.
9. I cleared my browser cache to ensure I can see all changes.
10. I checked the site and there is no error now. Thanks God the upgrade was completed.
New contributor
add a comment |
When I upgraded my website PHP from version 5.6 to 7.2, I encountered this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. It turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension that is why the problem existed. So what I did is upgraded the wordpress to the core. This solve the problem.
Here's the steps I followed when upgrading wordpress manually.
1. First I created a full backup of my website http://fractioncalc.com. This is very important in case of mistake.
2. I download the newest WordPress ZIP file from wordpress.org.
3. I unzipped the file into a local directory of my computer.
4. I went to my website root directory and deleted your ‘wp-includes’ and ‘wp-admin’ directories. I used sFTP connection using Filezilla software.
5. I uploaded the new wp-includes and wp-admin directories from the new version of WordPress I unzipped to my website root directory and replaced the directories I just deleted.
6. I did not delete the wp-content directory or any of the files in that directory. I just copied over the files from the wp-content directory in the new version of WordPress to my existing wp-content directory. All existing files with the same name have been overwritten.
7. I copied all files from the root (‘/’) directory of the new version of WordPress that I unzipped into my website root directory (or the root directory of your WordPress installation). Existing files has been overwritten and new files has been copied across. wp-config.php file was not be affected because WordPress has never distributed with a wp-config.php file.
8. I compare wp-config-sample.php which wass distributed with WordPress but did not find anything to change so I just used the old one.
9. I cleared my browser cache to ensure I can see all changes.
10. I checked the site and there is no error now. Thanks God the upgrade was completed.
New contributor
add a comment |
When I upgraded my website PHP from version 5.6 to 7.2, I encountered this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. It turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension that is why the problem existed. So what I did is upgraded the wordpress to the core. This solve the problem.
Here's the steps I followed when upgrading wordpress manually.
1. First I created a full backup of my website http://fractioncalc.com. This is very important in case of mistake.
2. I download the newest WordPress ZIP file from wordpress.org.
3. I unzipped the file into a local directory of my computer.
4. I went to my website root directory and deleted your ‘wp-includes’ and ‘wp-admin’ directories. I used sFTP connection using Filezilla software.
5. I uploaded the new wp-includes and wp-admin directories from the new version of WordPress I unzipped to my website root directory and replaced the directories I just deleted.
6. I did not delete the wp-content directory or any of the files in that directory. I just copied over the files from the wp-content directory in the new version of WordPress to my existing wp-content directory. All existing files with the same name have been overwritten.
7. I copied all files from the root (‘/’) directory of the new version of WordPress that I unzipped into my website root directory (or the root directory of your WordPress installation). Existing files has been overwritten and new files has been copied across. wp-config.php file was not be affected because WordPress has never distributed with a wp-config.php file.
8. I compare wp-config-sample.php which wass distributed with WordPress but did not find anything to change so I just used the old one.
9. I cleared my browser cache to ensure I can see all changes.
10. I checked the site and there is no error now. Thanks God the upgrade was completed.
New contributor
When I upgraded my website PHP from version 5.6 to 7.2, I encountered this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. It turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension that is why the problem existed. So what I did is upgraded the wordpress to the core. This solve the problem.
Here's the steps I followed when upgrading wordpress manually.
1. First I created a full backup of my website http://fractioncalc.com. This is very important in case of mistake.
2. I download the newest WordPress ZIP file from wordpress.org.
3. I unzipped the file into a local directory of my computer.
4. I went to my website root directory and deleted your ‘wp-includes’ and ‘wp-admin’ directories. I used sFTP connection using Filezilla software.
5. I uploaded the new wp-includes and wp-admin directories from the new version of WordPress I unzipped to my website root directory and replaced the directories I just deleted.
6. I did not delete the wp-content directory or any of the files in that directory. I just copied over the files from the wp-content directory in the new version of WordPress to my existing wp-content directory. All existing files with the same name have been overwritten.
7. I copied all files from the root (‘/’) directory of the new version of WordPress that I unzipped into my website root directory (or the root directory of your WordPress installation). Existing files has been overwritten and new files has been copied across. wp-config.php file was not be affected because WordPress has never distributed with a wp-config.php file.
8. I compare wp-config-sample.php which wass distributed with WordPress but did not find anything to change so I just used the old one.
9. I cleared my browser cache to ensure I can see all changes.
10. I checked the site and there is no error now. Thanks God the upgrade was completed.
New contributor
New contributor
answered 3 hours ago
Jason TorremochaJason Torremocha
111
111
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f766326%2fphp-installation-appears-to-be-missing-the-mysql-extension%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Just providing some more back ground info: The mysql i had used in 15.10 was exported from 14.04 while changing my laptop, and in 15.10 some time phpmyadmin used to show some errors and was not any major errors as i could work with it. Now i upgraded directly from 15.10 to 16.04 using upgrade option
– AbuAbdillah
May 2 '16 at 13:23