MySQL4Mac and Environment Variables

Source: Internet
Author: User

MySQL4Mac and environment variable version: mysql-5.1.41-osx10.5-x86 first to enter the system preference settings Start MySQL Server to enter mysql Command is:/usr/local/mysql/bin/mysql use alias simplified command: alias mysql =/usr/local/mysql/bin/mysql if this command is not appended ~ /. Bash_profile. This alias takes effect only in this operation. That is, when you close the Terminal window and re-open it, the alias will no longer be available (you must re-set it ). In the mysql4mac installation image, you must repeat all the other files except ReadMe.txt and click MySQL. after the prefPane file, you will find that the System Preferences contains an additional MySQL entry, after clicking this entry, you can open and close the MySQL service in the new window (and set whether to start the MySQL service at startup ). You can also set the environment variable: the export command is used to make the environment variable set by the user take effect and can be accessed by the corresponding application or daemon. Export is used to pass the environment variable you set to the subshell of the current SHELL so that it is valid in the subshell. To make it useful next time, modify the configuration file bsh/ksh to modify. profile; csh modify. cshrc or. login. Note that these are hidden files. You can use ls-a to display them in the corresponding user's directory. The command to start Tomcat is:/Applications/jakarta ...... /Start_tomcat startup background information: Go to/Applications/jakarta ...... /Logs, tail-f catalina. out

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.