Delete Mysql on Mac and Mysql on Mac

Source: Internet
Author: User

Delete Mysql on Mac and Mysql on Mac



First, stop the MySQL service. You can stop the service in preference settings, and then execute the following command
$ sudo rm /usr/local/mysql
$ sudo rm -rf /usr/local/mysql*
$ sudo rm -rf /Library/StartupItems/MySQLCOM
$ sudo rm -rf /Library/PreferencePanes/My*
$ sudo rm -rf /Library/Receipts/mysql*
$ sudo rm -rf /Library/Receipts/MySQL*
$ sudo rm -rf /var/db/receipts/com.mysql.*


Edit/etc/hostconfig and delete MYSQLCOM =-YES-this line.




Sad, silently hiding yourself, let the emptiness cover up everything. Sad, close your eyes and listen to the sounds around you, so that you can immerse yourself in the hustle and bustle. Sorry, you don't have to tell others. Why do you have to bear your grief.


On mac, how does one view and delete mysql?

MAC (Macintosh, Apple Computer) is different from a Computer equipped with a Microsoft Windows System (PC). It must be noted that the PC here is not short for Personal Computer, it comes from PC-DOS systems (formerly Windows) originally sold by IBM, and later all computers that assemble Windows systems are called PCs, while Apple Computers are called Mac systems because they assemble their own mac OS systems.

How to enable mysql on mac osx (reprint)

With the development of the network and the increasing number of OS x users, you may need to run the mysql + php environment in your x system, such as setting up a website or testing. 1. Download MySQL 5.x, decompress and install the two installation packages in the image. A. mysql-5.x-osx10.6_x86_64.pkg-mysql 5.x Standard Edition install B. MySQLStartupItem. pkg-mysql startup project, which can run mysql services automatically on your computer when starting the system. It is installed in/Library/StartupItems/MySQL/. If you do not want to run the mysql service when the system is started, do not install it. If you do not want to use it after installation, delete the/Library/StartupItems/MySQL/directory. Start mysql: 2. If you have installed MySQLStartupItem. pkg, restart your computer. 3. If you have installed MySQLStartupItem. pkg or do not want to start your computer. Start mysql Service (terminal): sudo/Library/StartupItems/MySQL start and enter your system administrator password. If no password is set, press Enter. Close mysql Service (terminal): sudo/Library/StartupItems/MySQL stop and enter your system administrator password. If no password is set, press Enter. Mysql root Account Password: the initial value of mysql root Password is null. In this case, there is no problem. But it is not safe. We recommend that you change the root user password. Note: the root user of mysql is different from the root user in the system. They are totally different users. Change the mysql root password (terminal):/usr/local/mysql/bin/mysqladmin-u root password. You can also use this command to change your password at any time. 4. Download mysql database management tool Version x, which is a mysql database management software running on mac OS x and supports local and remote database management. And it is still free of charge. The advantage of this program is the complete CGI interface. And the password is saved on the local machine. Relatively secure.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.