[ask] gagal instal mysql-server via apt-get

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
rendangpyk

[ask] gagal instal mysql-server via apt-get

Post 29 Jan 2017, 10:29

pagi om,
saya instal ubuntu versi 16.04 LTS. trus mau instal manual php, mysql (bukan paketan seperti xampp/lampp).
pertama yg diinstal apache2 dulu. trus saya coba instal mysql-server dan phpmyadmin. waktu mau coba login ke phpmyadmin, ada pesan error 'unix_socket' not loaded.
dari situ saya coba install mysql-server-5.7. dan sambil ubah server repo ke kambing.ui.ac.id. server repo yg saya pake tadinya adalah yg ke ubuntu di us. saya ubah lewat menu di ubuntu-application > software & update. trus kyknya ada error apa (lupa), kalo gk salah ada paket yg gk lengkap... nah saya balikin lagi reponya ke ubuntu yg us.
setelah apt-get update, saya mau instal ulang lagi mysql-server eh jadi dapat pesan seperti ini:

Code: Select all

$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  mysql-server-5.7
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  mysql-server mysql-server-5.7
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2.866 kB of archives.
After this operation, 48,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 210170 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.17-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.17-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.17-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.17-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up mysql-server-5.7 (5.7.17-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu16) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
saya coba uninstal mysql-server-5.7 dan mysql-server dan instal ulang lagi, tetap dapat error seperti di baris2 terakhir itu. master2 ada yg bisa bantu?


User avatar
NPTroom

Post 04 May 2017, 00:36

coba ini bro soalnya baru peraktek kemaren dan sekarang php udah ada di pc moga mamfaat juga buat ente
https://www.youtube.com/watch?v=ZQ75yJdWLQs

#How to uninstall MySQL
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean


#Test mySQL installed or not
dpkg --get-selections | grep mysql

#How to install MYSQL
sudo apt-get install mysql-server mysql-client mysql-common
#Wait few seconds enter password for root let example password
password
#Wait few minutes

#check mysql installed or not?
dpkg --get-selections | grep mysql

NB: sudo perintahnya ada di keterangan video


Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests