A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
Hello, on try install mysql I get this:
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.
Try these command they might help:
sudo apt-get install -f
sudo apt-get autoremove -y
sudo apt-get remove --purge mysql-*
Then try to install again.
sudo apt-get install -f: https://pastebin.com/4AT923ah
sudo apt-get autoremove -y and sudo apt-get remove –purge mysql-*: https://pastebin.com/wnbSDjMF
You have memory usage problems, how much memory does your server has?
Check current free memory with this command free -h
total used free shared buff/cache available
Mem: 996M 761M 98M 20M 136M 86M
Swap: 0B 0B 0B
You are almost out of memory try using the top -o +%MEM to get an idea of what is exhausting your memory.
top -o +%MEM
Stop clamd temporarily and try again.
I also noticed that in the installation of other programs I get this error:
Please, help me, i can’t install applications =(
It sounds like your packages are out of date.
If you run the update and upgrade command before installing, does it work then?
sudo apt-get update
sudo apt-get upgrade
HELP ME! PLEASE!
After looking at your first error again I think you can find help here
sudo apt-get install -f, sudo apt-get autoremove -y: https://pastebin.com/4AT923ah
sudo apt-get remove –purge mysql-*: https://pastebin.com/JVKGtceW
Did not work
You still have this error
dpkg: error: failed to open package info file '/var/lib/dpkg/available' for reading: No such file or directory
sudo dpkg --clear-avail && sudo apt-get update
Now I can install other programs but mysql not: https://pastebin.com/JJ1n0nDj
Good solved one problem now
try this to solve the other one.
apt –fix-broken install: https://pastebin.com/hHid3rSN
@Mohsen47 Can you help me? =(
I had to sleep it was 1:30 AM.
Do you still have the same issue? I am sure it can be solved easily but it is hard to communicate like this, Do you have important data on the server? Can you give me access to it?
I format the machine
You can type !ref in this text area to quickly search our full set of tutorials, documentation &
marketplace offerings and insert the link!
Hey! I get HTTP error 500 everytime I try to use mysqli_connect in my php file.
This is my code and link to the file I am having trouble with:
When i install this command in putty fille with FilleZilla and sql file in phpmyadmin i go to website and i saw this error Connection failed: SQLSTATE[HY000]  Can't connect to MySQL server on '220.127.116.11' (111)** Screenshot :**...
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
Hi guys when i try to upload my db it says
-- Database: amg
-- Table structure for table accounts
CREATE TABLE accounts (
id int(11) NOT NULL,
password varchar(32) NOT NULL,
salt varchar(30) NOT NULL DEFAULT...