MYSQL

0x0539

Retired Staff
Contributor
Jan 30, 2016
1,334
1,146
254
How can I uninstall mysql and install again without restarting the vps?
First remove MySQL:
Code:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
Then reinstall:
Code:
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Source
 
Sep 17, 2015
76
8
43
First remove MySQL:
Code:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
Then reinstall:
Code:
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Source
Thanks, i will try that.
 

ReXpeiTa

Member
Dec 1, 2015
87
46
63
English:
1. Have you checked whether your disk is full?
2. Check your log: folder var / log / mysql /
3. Run the following command: sudo dpkg-reconfigure phpmyadmin
The phpMyAdmin package contains the script to perform this operation for you, all it needs is a user with permissions. sudo is not required if you're logged in the root, of course

Portuguese:
1. Verificou se teu disco está cheio?
2. Verifique seu log: pasta var/log/mysql/
3. Execute este comando: sudo dpkg-reconfigure phpmyadmin
O pacote phpMyAdmin contém o script para executar esta operação para você, tudo que precisa é de um usuário com permissões. sudo não é necessário se você estiver logado como root, é claro
 
Top