Where is the sql file store in & Where can I find php.ini on Mac osx client

In windows xp i can find the sql file in side the folder of MySQL and I can find php.ini in the C directory under the php's folder but in mac os Icannot find it could anyone tell me where it is and how can I find thanks.

Hi--
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ sudo sh
Password:
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ chmod +rw
data
chmod: data: Operation not permitted
It looks to me like you haven't gained root access in the examples above. If you follow Niel's example:
<pre class="command">sudo sh</pre>you should get a different prompt when you actually are the root user:
<pre class="command">sh-2.05b#</pre>because you'd be changing shells from bash to sh.
I'd like to set the folder /mysql/data to except me
for coppy database folder
How can I get the permittion to access the
/mysql/data folder
You should be able to do anything to those files without changing permissions if you're the root user.
But, just for your information, I never directly move the database files. If I want to move a database between computers, I always use the mysqldump command and redirect it to a file:
<pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name > /path/to/output/file.sql</pre>That makes a single text file with all the SQL commands necessary to build your database tables and populate them with your data. If you want to restrict it to just one table from a database, you can add the table name after the db_name:
<pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name table_name > /path/to/output/file.sql</pre>To import that file into another machine, you have to create the database first, which you could do with phpAdmin. Then, just import the tables and data like this:
<pre class="command">/usr/local/mysql/bin/mysql -u root -p db_name < /path/to/output/file.sql</pre>That'll create all your tables and populate them with your data.
If you copy your databases this way, you're much less likely to run into trouble with compatibility issues if you're moving between machines with different versions of MySQL.
charlie

Similar Messages

  • Where can I get a copy of MAC OSX 10.4 to install?

    I am trying to install Maya 6 on my mac and I get the error that my computer is too new... where can I get a copy of MAC OSX 10.4 to install? I have an old powerPC that I could put this on instead of my newer computer. My company does not have to resources to upgrade the copy of Maya at the moment, so this is my best option.

    Tiger install DVDs are in short supply. Tiger is no longer available at the Apple Store but may be available for $129 by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753). For other sources, do a Google search for MA453Z/A (10.4.6), MA190Z/A (10.4.3) and M9639Z/A (10.4) . Also look on eBay. Be sure & buy a retail version (black with silver X) and not a model specific version (gray) See http://discussions.apple.com/thread.jspa?threadID=1976068 Can I use another Mac's system restore disc on my Mac?
    Also check these web stores: http://www.lacomputercompany.com/cgi-bin/rpcart/index.cgi?command=dispitem&type= sku&sku=19521  http://www.allmac.com/shop/index.php?cPath=5_10003
    Possible Alternative if you are currently using Panther 10.3 – Do a Google search for Tiger 10.4 Upgrade DVD. It will upgrade your 10.3 to 10.4, but it doesn’t contain the full retail Tiger installer. Should be cheaper than the retail Tiger install DVD.
    After you install the base 10.4.x, update to the final Tiger version 10.4.11. Here's the link for the 10.4.11 combo update http://support.apple.com/kb/TA24901?viewlocale=en_US
    Look at this link Mac OS X v10.4 Tiger Installing Software Support Page
    http://www.apple.com/support/tiger/install/
    You can also download the Tiger Installation and Setup Guide
    http://manuals.info.apple.com/en/Tiger_Install_Setup_Guide.pdf
    When you upgrade the OS, do it via Archive & Install. See About the Archive and Install feature http://support.apple.com/kb/HT1710 Be sure to select Preserve Users & Settings. Also, repair permissions before and after the install.
     Cheers, Tom

  • What is a disk serial number and where can I find it on my Mac?

    I'm trying to gain access to a Software program that requires a disk serial number to generate a license. Where can I find this information?

    Apple Menu > About This Mac > More Info... > Hardware Overview.
    See if the Serial Number or the Hardware UUID satisfies their requirements. Both are unique to your Mac.

  • Where can I find my iphone backup in OSX Mountain Lion?

    The folder /Library/Application Support/MobileSync/ is not available in the OSX Mountain Lion. Where can I find my iphone backups in the Mountain Lion?

    That's just the thing.. there is NO /MobileSync/Backup/ folder in my OSX Mountain Lion, or at least I cannot find it anywhere.

  • I just bought a wiped Mac PowerBook G4 where can I find a software disk like OSX it's asking for?

    I just bought a Mac PowerBook G4 from Cashland (which is a pawn shop) and they totally wiped all the software off the computer which is company policy, but now I can't use it because of that. The computer is asking for OSX software which I have no disk, where can I obtain the disk to put the correct software on this computer? It's also asking for a password and I have no idea what it was because Cashland didnt obtain it when they bought it from the previous owner...

    For starters, try asking this question in the correct forum and NOT and iPhone forum - did you not look before you posted?
    Probably best to take it back to Cashland for a refund as there will be nothing you can do and you may never be able to use it.

  • Can I install Linux for Windows on my Apple Mac and afterwards use old windows programs as PageMaker on my new Mac. If yes where can I find Linus windows for Mac

    Can I install Linux for Windows at my new Mac and afterwards use old Windows programs as Photo Shop and PageMaker on my Mac? If yes where at the Internet can I find Linux for Mac and Windows?

    What is your definition of a "Linux for Windows" ?
    There is Linux like Ubuntu which can be installed on a Mac
    See the UbuntuForuns here https://wiki.ubuntu.com/MactelSupportTeam
    And there is Microsoft Windows which can be installed and used on a Mac with Apples BootCamp http://www.apple.com/support/bootcamp/ or through Virtualization apps like Parallels, VMWare Fusion or VirtualBox.
    Windows Programs don't run in a Linux only in Windows.
    Stefan

  • Where can I find mechanical keyboard for mac with nordic layout?

    I could find mechanical keyboards for mac, just not in nordic layout.

    On nordic layout keyboards, we have these letters: Æ Ø Å on the right side of the keyboard
    Additional physical keys are not needed, and no keyboard is likely to provide them. Instead, a keyboard translation table (software already included in your Mac) is used to change the function of the keys to the right of and below the P key.
    In the three Norweigian keyboard translations, those key translations [ Æ Ø Å ]are provided. One of the Swedish translations provides them as well. The only thing missing is the graphic on the standard key-cap. Use a sticker or a sharpie marker to write the graphic on the key.

  • Where can i find MS Project for mac? its not in the store

    I have not been able to find a downloadable copy of MS Project 2010 for my macbook

    Douglas8010 wrote:
    You could also try ProjectLibre, a free Open Source replacement for MS Project which works directly on Mac.
    Available here - http://www.projectlibre.org/
    That's cute. Now I'll have yet another argument against the doomsday apocalyptics for running Java on my Mac. So there! And free always trumps all the costly native alternatives found in the Store, or having to pay for a Windoze license PLUS MS Project.
    If you MUST have the real deal, virtualization using VirtualBox instead of Parallels Desktop is free. Just need to pay for the Windows license (which you also need with Parallels).

  • Where can I find pim1 codec for mac?

    I need the pim1 codec to play and edit an avi file that vlc tells me is encoded with pim1. Is it available for mac? If so where?

    A Google search shows this:
    http://www.pim1.szm.com/
    It appears to be an .exe which means PC only. You may have to edit on a PC, too.

  • TS1394 Where can I find Disc 3 of Mac OS 10.3.5 OEM install discs for a copy of Hardware test?

    I can't imagine I don't have this disk! I have all others that shipped with PowerMac, but cannot find Disk 3. Any suggestions? Thanks for all help.

    [X-Lab: The Apple Hardware Test|http://www.thexlab.com/faqs/aht.html]
    Apple's AHT support - http://www.info.apple.com/support/aht.html - Apple Hardware Test Images and Information (for pre-Intel Macs, G4 and early ibook & iMac)
    Here's the list and downloads for AHT if you have an old G4...
    http://www.info.apple.com/support/aht.html
    Note:
    No AHT available for Sawtooth, try TechToolPro instead.
    Some discs require you to use the Option key at bootup to select AHT. Some models have a separate AHT CD.

  • Where can I find a Disk to downgrade OSX 10.9,so I can download a printer that supports OSX 10.6 or 10.7

    Looking for a way to DOWNGRADE my SYSTEM to support OSX 10.6 or 10.7,needing to reinstall a printer

    Apple provides the driver for that printer and it is supported in Mavericks, so you do not need to downgrade.
    To add the printer, follow the Apple steps > http://support.apple.com/kb/PH14143 Your printer driver will be downloaded automatically

  • Where can I find iChat on my Mac Air?

    Looks like it should be on here - I just can't find it to put it in my dock.  Thoughts?

    If your MBA is using Mountain Lion iChat is now part of Messages which is on your Dock and in your Applications folder.

  • Where can I find and download the iTunes App Store icon?

    Lost the iTunes App Store icon and can't find it online

    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/missing-a pps

  • Where can i find iDVD

    Where can i find iDVD ? for Mac OS X 10.7.5

    Why is there no iDVD on my new Mac?
    https://discussions.apple.com/docs/DOC-3673
    UPDATE & ADDENDUM:
    But even though you can still buy iLife 11 that includes iDVD 7 from Amazon, Apple now make it difficult to install:
    Poster jhb21939 posted this in another thread:
    “when I attempted to load iDVD into a new iMac. A notice came up on the screen stating that the 'Authorisation Licence' had expired on 25 March this year (2012).
    I contacted the Apple support team and eventually, I was told that the Licence had been withdrawn and could no longer be used.”
    In other words Apple are now so adamant that we don’t use iDVD that they have tried to make it impossible to install.
    In response, Old Toad posted this solution:
    “You can still use it one all of your Macs.  If you get an invalid certificate message just set your Mac's clock to sometime before early 2011 and run the installer.  After you're done reset the time back to the correct time.” He added this comment:
    “It began after iDVD and iWeb were discontued and they were dropped from the Apple Store. All I can think of is the certificate was set to expire after a certain time period after the intitial iLife disc was released.
    I've been able to use the installer even without setting back the date.  I just clicked on the Continue button and it would work as expected.  For some it would not continue unless the date was set back.”
    The latest anorexic iMacs just announced do not even include a CD drive! Proof positive that Apple virtually prohibit the use of DVDs - although the newly announced Mac Minis do include a Superdrive.
    Yet, they still include iMovie! Heaven alone knows or understands what you are supposed to do with your newly edited masterpiece - except make a low quality version for YouTube?

  • Where is the bookmarks stored? I Install the Firefox once again since I upgrade my computer.Is there any folder just like "favourite"to store the html file? I really want to find out the bookmarks because actually i can't remember all the website that ar

    Where is the bookmarks stored?
    I Install the Firefox once again since I upgrade my computer.
    And I try to move the bookmarks from the old computer to the new one.
    But I can't find anyone of them.
    Is there any folder just like "favourite" to store the html file?
    I really want to find out the bookmarks because actually i can't remember all the website that are important to me~ URGENT!!!~THANKS~

    You can move file named places.sqlite from your old profile to the new one. It contains bookmarks and browsing history.
    Here's a knowledge base article about it: [[Recovering important data from an old profile]]
    If you don't care about saving your current bookmarks, you can skip creating new profile (Firefox does it by itself at first run anyway).
    I'd might suggest you to install addon https://addons.mozilla.org/en-US/firefox/addon/2410/|Xmarks Bookmark and Password Sync]. It is a free web service which synchronizes bookmarks and (optionally) passwords with central server, and then to other computers, if you installed it on more. You may treat is as a backup too.

Maybe you are looking for

  • Function module to find document attached to a transaction in document tab

    Hi I have an urgent requirement. I have to check whether any document is attached in the document tab in service order transaction within my code. How can I do that?Is there any function module for doing that? Please suggest. Regards, Sucheta

  • Enhanced Interafce Determination Split Mapping Performance factor

    Hi, I want to know is it a good practice to use Split Mapping using the Enhanced Interface Determination (EO-Maintain Order at Runtime is unchecked) and let the JEE adapter handle bundlings, etc. If the number of messages split are more say in order

  • How to get the SelectionProxy "Selection Square/Dot" into my own TreeView?

    Hi! I have built my own TreeView in a panel plugin. This TreeView contains document objects, just like the Layers Panel does. In the Layers Panel each treenode (e.g. a layer, an <rectangle>, any node item) has a "SelectionProxy" on the right side (th

  • OpenLDAP and WLSP9 LDAPRealm

    How do I configure my OpenLDAP so that WLSP9 LDAPRealm will actually authenticate the users. I have the realm debugging turned on , and I can see that the user has been found, but no matter what password I use the authentication fails. I know that th

  • Unit conversion from Sales unit to Base unit

    HI,       I am working on 2lis_11_vaitm and 2lis_11_v_ssl sources. Both these sources have quantities in Sales unit. In BW how do i convert these quantities to Base unit. Both sales unit and base units are available in the sources. But value avialabl