How can I set PATH environment variables when there is no ~/.profile?

Hi,
I have a MacBook Air and just installed MySQL.
I read the doc which I downloaded and should be able to run "mysql" from terminal as descibed below:
Suppose that your MySQL programs are installed in /usr/local/mysql/bin and that you want to make it easy to invoke these programs. To do this, set the value of the PATH environment variable to include that directory. For example, if your shell is bash, add the following line to your .bashrc file:
           PATH=${PATH}:/usr/local/mysql/bin
I checked on my terminal with ls -al, but no ~/.bashrc also no ~/.profile files.  Echo $SHELL shows me that I am using /bin/bash as shell.
When I run export PATH=$PATH:/usr/local/mysql/bin  then it works and I just have to type "mysql" to get the mysql command line but as soon as I kill my terminal and open a new terminal this setting is lost.
Any idea how I can accomplish this?
Thanks,
MacNewby

Hi,
Never mind, I found it :-)
I just created a file  .bash_profile in my home folder and added "export PATH=$PATH:/usr/local/mysql/bin" and restarted my terninal. Now it works.
MacNewby

Similar Messages

  • HT4623 How can u set up your iphone when all the files are deleted?

    How can I set up my iphone if all the files are deleted?

    What files are deleted?
    Please explain

  • How do you set NLS_LANG environment variable in report builder

    How do you set up the reports builder environment to display foreign fonts.
    So far what I read makes me think that in report builder I have to set the NLS_LANG environment variable .
    If anyone has done this is that true and if so how.
    Also the languages I want to use are the following.
    Armenian
    Cambodian
    Chinese
    Russian
    Tagalog
    Vietnamese
    How do I find the NLS_LANG environment variables for these.
    Where I am at now+
    I have to set the DEVELOPER NLS LANG. I see the NLS LANG in the registry and I guess I have to add the DEVELOPER NLS LANG.
    Now I am searching for syntax. If anyone knows the syntax for those languages please let me know and how do I set more than 1 at a time.
    Howard
    Edited by: csphard on Apr 14, 2010 5:17 PM
    Edited by: csphard on Apr 14, 2010 5:22 PM
    Edited by: csphard on Apr 15, 2010 9:02 AM

    Hello Howard,
    Check out the following link here you can find your desired NLS parameters.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    And about the NLS_LANG for developer why you want to create for developer. Its is already there in REGISTRY. Just seaching in developer registry you can find there.
    how do I set more than 1 at a time.
    You can set only one NLS_LANG parameter at a time.
    -Ammad
    Edited by: Ammad Ahmed on Apr 15, 2010 8:52 PM

  • Create Report Layout (Apex 3.2) - How can I set the substitution variables?

    Hi,
    I created a "Report Query" under "Shared Components". I now want to work on the corresponding "report layout". I created a "Generic Columns (XSL-FO)". I read the following in the documentation:
    The following are valid substitution strings:
    #PAGE_HEADER#
    #PAGE_HEADERFONT_COLOR#
    #PAGE_HEADER_FONT_FAMILY#
    #PAGE_HEADER_FONT_SIZE#
    #PAGE_HEADER_FONT_WEIGHT#
    #PAGE_FOOTER#
    #PAGE_FOOTER_FONT_COLOR#
    #PAGE_FOOTER_FONT_FAMILY#
    #PAGE_FOOTER_FONT_SIZE#
    #PAGE_FOOTER_FONT_WEIGHT#
    #PAGE_WIDTH#
    #PAGE_HEIGHT#
    #HEADER_BG_COLOR#
    #HEADER_FONT_COLOR#
    #HEADER_FONT_FAMILY#
    #HEADER_FONT_SIZE#
    #HEADER_FONT_WEIGHT#
    #BODY_BG_COLOR#
    #BODY_FONT_COLOR#
    #BODY_FONT_FAMILY#
    #BODY_FONT_SIZE#
    #BODY_FONT_WEIGHT#
    #BORDER_WIDTH#
    Where can I set the values for these substitution variables in my "Report Layout"? Could someone give an example? I can't seem to find documentation on this.
    Thanks!
    Francois

    Thanks for the tip however I'm not trying to do this through the print tab, I'm calling the report using the following get_print_document in pl/sql code:
    l_report_blob := apex_util.get_print_document(
    p_application_id => l_application_id,
    p_report_layout_name => l_report,
    p_report_query_name => l_report,
    p_report_layout_type => l_output_format,
    p_document_format => l_output_format,
    p_print_server => null);
    Where could I set these substitution variables ? I'm simply calling a report query and layout created under Shared Components.
    Thanks
    Francois

  • How can I set my preference so when I open new tabs only my home page shows?

    When I open new tabs I have a blank page. I would like to have only my home page open in new tabs. How can i fix this?

    There's an extension for that -> https://addons.mozilla.org/en-US/firefox/addon/new-tab-homepage/

  • In OBIEE 11g, how can you set a presentation variable value from javascript ?

    I want to set up presentation variable from a javascript variable. Does anyone knows the workaround for this ?

    SriniVEERAVALLI,
    Thanks for your suggestions. I want to make a custom prompt that is only my requirement. From JS I have made a custom slider prompt now I want to use this slider prompt to pass selected value in presentation variable. Since, we have slider prompt only for numbers, I have to use it for other values.
    I just want to make my post looks simple and focus on the specific problem.
    Anyways, thanks a lot for taking time to reply. Appreciate your help.

  • How can I restore the firefox session when there is no previous version available?

    I had a lot of tabs opened for months now but this has happened before when I was able to restore the tab history in the profile folder in firefox with the "sessionstore.js" file and look up previous versions that were available. When I exited firefox and did a restart on my computer all of a sudden when it came back on it didnt restore the session I had previously opened. I went to the profile folder and tried to look up previous versions of that sessionstore.js file and the bak file too and it said it was no previous versions available. How can this happen all of a sudden when I exited and restarted the computer? I have Firefox set to remember the history and tab history and session restore to restore it all but yet this mess happens. Can anyone guide me into what to do for other things that can restore this session in Firefox because I know I didn't loose this for nothing and It has to be somewhere to restore all my tabs back. Any help?

    Awesome, glad you know about that Previous version trick.
    There's a catch though. It never works for me if you check for previous versions on the individual Firefox files. You have to check previous versions on the actual firefox profile folder.
    So to view the folders, navigate to where your Firefox profile folder lives: C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\[random].default\
    Right-click on the [random].default folder and choose Restore previous versions. Choose a folder dated from before this accident and click the "Open" button. You should find a safely backed up sessionstore.js file there. ;) Lastly, copy the file to another safe location and copy it back into the Firefox profile.

  • How can i install my hp printer when there is no cd port on my 2011 macbook air

    How can I install a printer to my macbook air which has no cd port?  I have a basic hp printer.

    You won't need to. As long as the computer "sees" the printer it will automatically download any needed software for it. I have one of the HP wireless printers and as soon as my Air saw it on my wirelss network it told me there was software available for it and asked if I wanted to download it which I did. No cd/DVD needed.

  • How can I set path to icon

    I am using NetBeans 5.5.
    Some part of my JavaSE application I made with help of GUIBuilder + I've worte my own code for GUI.
    The problem is:
    My buttons use icons.
    When I launch my app in NetBeans - everything is O.K.
    But
    When I try to lauch my jar file "myproject/dist/myproject.jar"
    I get an error
    "myButtonIcon.jpg is not found"
    Through GUIBuilder I have several ways to set icon to button:
    1.File. It makes HARD link to file, like:
    jButton3report.setIcon(new javax.swing.ImageIcon("D:\\source\\Dfree\\resource\\menuoldico\\report.jpg"));That is awful variant! But jar file launches - no errors
    2.Classpath. It lokks like this way:
    jButton1workdoc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/menuoldico_/adddocument.jpg")));Seems that's ok.
    I've added folder resourse as[b] library to project.
    folder menuoldico lies there.
    I put my lib with icon folder near jar file.
    Ni result!
    It doesnt' work
    Where is mistake?
    P.S.
    JDBC connector lies in the same forlder, and jar file can find it and use
    but jar file doesn't see folder with icons
    Help me please.

    Hm...seems like this is another good variant.
    But there is a way to put icons into jar!
    1. Just create folder (for example "MyIconsSet") in folder "MyProject/src"
    2. Put there all icons or images you want to use.
    3. NetBeans recognizes created folder "MyIconSet" as package
    4. Just write path to icon as:
    jButton1workdoc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/adddocument.jpg")));NetBeans will include this "package" into jar. The easiest and convinient way
    And you will not have any problems!!!
    I didn't read manual properly.
    It's written there!
    Problem is solved.
    kynamar, thanks for your code.
    Message was edited by:
    Holod

  • How can I set a default action when I right click on a file in finder

    so that it opens Outlook 2011. This seems to be the only way to email from finder however I can't seem to set the option to remain in the menu and have to go through the steps each time.
    I go through this process now.
    right click file-open with-other-choose outlook in apps, then it opens the new mail with attachment screen and I am right to go.
    I would like to have outlook as the list of options under "open with" currently it offers word, safari, text editor and a couple of others.
    Sometimes I send PDF's JPG, Text etc so never the same type of file.
    Thanks.

    so that it opens Outlook 2011. This seems to be the only way to email from finder however I can't seem to set the option to remain in the menu and have to go through the steps each time.
    I go through this process now.
    right click file-open with-other-choose outlook in apps, then it opens the new mail with attachment screen and I am right to go.
    I would like to have outlook as the list of options under "open with" currently it offers word, safari, text editor and a couple of others.
    Sometimes I send PDF's JPG, Text etc so never the same type of file.
    Thanks.

  • How can I get rid of posts when there is no little x to click on?

    I was in Farmville Freaks and clicked on share and now it's on my home page and can't get it off because there's now little x beside of it to click on.

    See this: <br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • How can I start Windows XP Mode when there is no startup link in the Start Menu?

    I have installed and had to uninstall and reinstall Windows XP Mode numerous times on my Dell desktop running Windows 7 Professional and now I cannot start it because there is no startup link in the Program Files folder. When i try to reinstal XP Mode
    it tells me it's already installed, but I can't find the startup link. 
    Martin Willcocks

    Hi,
    Could you find XP mode in Start Menu?
    How about using Windows Search feature to search Windows XP Mode?
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can I verify my apple ID when there is no link to click on in the email

    Hi,
         I am sent an email to verify my account  which says 'click the link below and sign in using your apple ID and password'  verify now>  but there is nothing to click on...the verify now does nothing. How else can this be done?
    Thanks

    i have the same problem..

  • How can I uninstall the CS6 beta when there is no entry in W7 Programs & Features?

    I checked the FAQs and found general instructions which presume there is an entry in W7 Programs & Features.  There is no entry in my system, and I found no Uninstall app in any Adobe CS6 folder.
    Should I just run the Cleanup tool?  Thanks...

    Instructions are prominntly displayed in the announcement at the top of the forum index page:
    Announcement: How to uninstall Photoshop CS6 beta prior to installing the final version.
    Show Details
    Hide Details
    Instructions for How to uninstall Photoshop CS6 beta prior to installing the final version:
    http://forums.adobe.com/message/4361731#4361731
    Important: Do not attempt to manually uninstall or remove Photoshop CS6 beta by dragging folders to the Recycle Bin (Windows) or Trash (Mac OS). Doing so can cause problems with uninstallation, and installation in the future.
    With the Photoshop CS6 beta coming to a close and the 60 day trial period expiring, you'll be looking to uninstall the beta software from your system.
    It is recommended that you uninstall the Photoshop CS6 beta prior to installing the official release of Photoshop CS6.
    Uninstallation is easy, and can be done in just a couple steps depending on your Operating System.
    by Jeffrey Tranberry (May 6, 2012)                          

  • How can i set different number of iterations for different scenario profiles that we add to "AutoPilot" in load testing of OATS

    Hi,
    I have few set of load test scenarios, I would like to add each of these test scenarios to "AutoPilot" and run each different scenario profile at different number of iterations.
    As in Oracle Load Testing the "Set Up AutoPilot" tab I see  a section like this "Iterations played by each user: ", which says run these many iterations for every virtual user of all profile added under "Submitted Profile Scenario". So is there any thing like that to set different iterations for every scenario profile added in Autopilot.
    Thanks in advance

    It's not a built-in feature to override a page's styles on a tab-by-tab or site-by-site basis, but perhaps someone has created an add-on for this?
    It also is possible to create style rules for particular sites and to apply them using either a userContent.css file or the Stylish extension. The Greasemonkey extension allows you to use JavaScript on a site-by-site basis, which provides further opportunity for customization. But these would take time and lots of testing to develop and perfect (and perfection might not be possible)...
    Regarding size, does the zoom feature help solve that part? In case you aren't familiar with the keyboard and mouse shortcuts for quickly changing the zoom level on a page, this article might be useful: [[Font size and zoom - increase the size of web pages]].

Maybe you are looking for

  • Display freezes

    Out of nowhere today, the display on my G5 froze. My mouse works, but I'm unable to click on anything (and hovering over the dock doesn't do anything, either). I tried to restart but the same thing happens. I've also hooked it up to an external displ

  • WM: Transfer Requirements with just one item

    Hi experts, does anybody know if it is possible to customize WM in order to create just one item per transfer requirement. My problem is that in material staging from PP, I have customized creation of transfer requirements on order release. If OF con

  • Aironet 340 bridge problems

    We have two old 340 bridges between two buildings that were working fine for years until last week. Now we intermittently get connection loss or high response time. I suspect inteference. On the root we have "auto" frequency which I thought would che

  • In InDesign CS5 Vector Drop Shadows Flattening at 150dpi

    If I have an InDesign Vector Element (Box or Type) with a drop shadow effect, that is not interacting with an image, I am getting 150dpi or under image created for the shadow when flattened (I am exporting a PDF1.3 out of InDesign for the flattening)

  • How to boot-up Blade automatically upon power on?

    Hi, Is there a way to configure the UCS blades to boot up upon power on (assuming each blade already has a service profile associated)? THanks.