Slabon 1 Posted November 18, 2014 Share Posted November 18, 2014 How do I uninstall mysql correctly to reinstall it without problems? mysql 5.6 Link to comment Share on other sites More sharing options...
Rumor 2608 Posted November 18, 2014 Share Posted November 18, 2014 cd /usr/ports/databases/mysql56-server make deinstall clean rm -R /var/db/mysql make BUILD_OPTIMIZED=yes BUILD_STATIC=yes make WITH_XCHARSET=all install clean service mysql-server start /usr/local/bin/mysqladmin -uroot password 'enterpassword' Link to comment Share on other sites More sharing options...
Slabon 1 Posted November 18, 2014 Author Share Posted November 18, 2014 (edited) cd /usr/ports/databases/mysql56-server make deinstall clean rm -R /var/db/mysql make BUILD_OPTIMIZED=yes BUILD_STATIC=yes make WITH_XCHARSET=all install clean service mysql-server start /usr/local/bin/mysqladmin -uroot password 'enterpassword' Error: Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Rumor 2608 Posted November 18, 2014 Share Posted November 18, 2014 pwd_mkdb -p /etc/master.passwd chown -R mysql /var/db/mysql && chgrp -R mysql /var/db/mysql /usr/local/bin/mysqladmin -uroot password 'enterpassword' Link to comment Share on other sites More sharing options...
Slabon 1 Posted November 18, 2014 Author Share Posted November 18, 2014 (edited) the error continues, I do not want to reinstall the os and everything again. Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Reboot 772 Posted November 18, 2014 Share Posted November 18, 2014 (edited) cd /usr/ports/databases/mysql56-server make deinstall clean rm -R /var/db/mysql make BUILD_OPTIMIZED=yes BUILD_STATIC=yes make WITH_XCHARSET=all install clean service mysql-server start /usr/local/bin/mysqladmin -uroot password 'enterpassword' Error: ee /etc/rc.conf Add this: mysql_enable="YES" Then reset the server. Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Slabon 1 Posted November 18, 2014 Author Share Posted November 18, 2014 the error continues, I do not want to reinstall the os and everything again. Link to comment Share on other sites More sharing options...
Rumor 2608 Posted November 18, 2014 Share Posted November 18, 2014 mysql_enable="YES" in rc.conf is for defining startup daemons. This won't solve errors with mysql. That means.. adding mysql_enable="YES" to rc.conf and rebooting is the equivalent to: service mysql-server start Link to comment Share on other sites More sharing options...
Slabon 1 Posted November 18, 2014 Author Share Posted November 18, 2014 Thanks, I did everything you told me with the intention to help, but in the end I reinstalled everything from the OS. Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7180 Posted November 18, 2014 Honorable Member Share Posted November 18, 2014 /usr/local/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!Thanks, I did everything you told me with the intention to help, but in the end I reinstalled everything from the OS. How to reinstall an OS for just a triviality. Check out my GitHub Link to comment Share on other sites More sharing options...
Slabon 1 Posted November 18, 2014 Author Share Posted November 18, 2014 /usr/local/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! Thanks, I did everything you told me with the intention to help, but in the end I reinstalled everything from the OS. How to reinstall an OS for just a triviality. despite reinstalling the error continues Link to comment Share on other sites More sharing options...
Premium TAUMP 841 Posted December 7, 2014 Premium Share Posted December 7, 2014 OMG mysql_upgrade -p password.. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now