Chuyển đến nội dung chính

Gỡ bỏ mysql server trên ubuntu

Vì một vài lý do nào đó mà khi cài đặt mysql xong , trong quá trình sử dụng bị lỗi, cần phải cài lại hoặc hết cách xử lý thì việc đầu tiên nghĩ đến là cài lại mysql cho nhanh. Đây chỉ là tình huống cuối cùng nếu như chấp nhận mất mát db.



Nhưng cài lại đâu phải lúc nào cũng xuôi xẻ như mình nghĩ,  vì còn nhiều tàn tích của db cũ, nên dưới đây là cách khá ok cho nhiều lần xử lý.


sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-xx mysql-client-core-xx
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

 Chỗ x là version của mysql ví dụ bạn có thể thay thế  nó bằng 5.5 hoặc 5.7 gì đó

Nhận xét

Bài đăng phổ biến từ blog này

Magento2 Cheat Sheet

Magento 2 tutorial http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/bk-frontend-dev-guide.html https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-1 https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-2 http://alanstorm.com/category/magento-2/

Google Chrome cheat sheet - Keyboard shortcuts

Windows and Linux Tab and window shortcuts Shortcut Action Alt+F   or   Alt+E   or F10 Opens the Chrome menu   , which lets you customize and control settings in Google Chrome. Ctrl+Shift+B Toggles the bookmarks bar on and off. Ctrl+H Opens the History page. Ctrl+J Opens the Downloads page. Shift+Esc Opens the Task Manager. Shift+Alt+T Sets focus on the first tool in the browser toolbar. You can then use the following shortcuts to move around in the toolbar: ·          Press   Tab, Shift+Tab, Home, End, right arrow,   and   left arrow   to move focus to different items in the toolbar. ·          Press   Space   or   Enter   to activate toolbar buttons, including page actions and browser actions. ·     ...

Magento 2 Bookmark Events

Tổng hợp events có trong magento ,  tạo thêm event bao nhiêu tuỳ thích theo link sau Events and observers