Error installing mySQL in ubuntu - unable to locate package mysqld-server - mysql

I'm trying to install mysql server in ubuntu VM. I tried following commands:
sudo apt-get update && sudo apt-get upgrade
It gives an error saying that some files failed to download.
apt-cache search mysql
gives no result on mysql-server/mysqld-server
apt-get install mysqld-server
just gives the output in the title: unable to locate package mysqld-server
Could anyone give me a heads up? Thanks.

try this command
sudo apt-get install mysql-server-5.6

Related

Installing workbench on ubuntu

I am trying to install MySQL Workbench on Ubuntu 20.04, and I run these commands:
sudo apt-get update && sudo apt-get upgrade
sudo apt install mysql-workbench
the error is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-workbench
I used this way to install before but now I do not know what to do, please help, I am new in Ubuntu.
try this:
download snapd service using apt-get
sudo apt-get install snapd
after that install workbench
sudo snap install mysql-workbench-community
when it's done You need to enter a command to allow this package to access the service. The command is:
sudo snap connect mysql-workbench-community:password-manager-service :password-manager-service
You have to add the repository in your source.list file:
echo "deb http://repo.mysql.com/apt/ubuntu/ eoan mysql-tools" | sudo tee /etc/apt/sources.list.d/mysql.list
then:
sudo apt update
sudo apt install mysql-workbench-community
MySQL has updated their repository for Focal Fossa and removed the repository for Eoan Ermine. To install MySQL Workbench on 20.04, either download the Workbench for 20.04 from MySQL archives or follow the alternate method mentioned below replacing eoan with focal.
Refer this:
https://askubuntu.com/questions/1230752/mysql-workbench-not-supporting-with-ubuntu-20-04-lts

Unable to install MySQL in Ubuntu 18.04.4 LTS

I'm trying to install the MySQL server by using the Ubuntu operating system package manager with following commands:
sudo apt-get update
sudo apt-get install mysql-server
and getting error as :
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
I tried this "Ubuntu "E: Unable to locate package mysql"" but it was not helpful.
try running the command before installingsudo apt-get update && sudo apt-get dist-upgrade

MySQL Workbench not opening on ubuntu

While I am trying to open my installed MySQL workbench it is not opening, I try to open using terminal it shows the below error:
command:
mysql-workbench
Error:
> Workbench can't find libproj.so, some options may be unavailable.
> /usr/bin/mysql-workbench-bin: error while loading shared libraries: libzip.so.4: cannot open shared object file: No such file
> or directory
I've tried to install broken packages and creating symbolic link but also I am not able to fix.
Can someone help to solve this issue?
Thanks in advance.
if running mysql-workbench command gives following warning:
Workbench can't find libproj.so, some options may be unavailable.
run this command to check if you have the above mentioned file :
$ find / -name libproj.so 2> /dev/null
if not found, then run this command to install the lacking file dependency to remove the warning:
$ sudo apt install libproj-dev proj-bin
It will remove the warning. Worked for me. Please try in your system. Below is my command output:
$ find / -name libproj.so 2> /dev/null
/usr/lib/x86_64-linux-gnu/libproj.so
$ mysql-workbench
Found /lib/x86_64-linux-gnu/libproj.so.15
(Note: even if this warning was there, my Workbench was still running properly. I followed the above mentioned steps just to get rid of that warning.)
Reinstalling workbench and doing --fix-broken install worked for me.
Details:
Uninstall workbench
sudo apt remove mysql-workbench
Clean
sudo apt clean
sudo apt autoremove
Update repos
sudo apt update && apt upgrade
Install workbench again
sudo apt install mysql-workbench
The fix
sudo apt --fix-broken install
Run workbench
mysql-workbench

How do I upgrade MySQL from 5.5 to 5.7 via SSH

I am trying to upgrade MySQL on my VPS server. I have root access, but whne I try to run the following commands it says that it is not in the YUM repository.
sudo yum localinstall mysql57-community-release-el6-{version-number}.noarch.rpm (obviously replacing with the correct version number(
sudo yum install mysql-community-server
Then I get this message.
No package mysql-community-server available.
Error: Nothing to do
Any help would be great.

fetching Error while installing mysql in ubuntu

While installing Mysql in ubuntu getting error like
unable to fetch some archives
how to solve this ?
try to update and upgrade using the following script.
sudo apt-get update && upgrade
then try to execute the MySQL installation command.
sudo apt install mysql-server
sudo mysql_secure_installation
sudo mysql_secure_installation
Try using:
sudo apt-get update
After that retry the install again.