Monday, 9 June 2025

Transfer Apple Notes from One Mac to Another

How to Move Notes from One Mac to Another Mac Laptop

Why Transfer Apple Notes Between Macs?

Think of Notes as your digital notebook. When you get a new Mac, the last thing you want is to lose the chapters of your old one. Maybe you jot down grocery lists, creative ideas, or important passwords (though we recommend a password manager for that!). Having your Notes with you on the new device ensures a smooth transition.

Transfer Apple Notes from One Mac to Another


What You’ll Need Before You Start

Before we get started, make sure you have:

  • Both Macs nearby

  • A way to transfer files (AirDrop, USB drive, external SSD, or cloud storage)

  • Access to Finder on both Macs

  • The Notes app closed on both machines

Understanding the Notes Storage Location

Apple doesn’t just store Notes in a regular visible folder. They’re tucked away deep in your Library folder — a hidden area where macOS keeps important app data.

The actual path is:

~/Library/Group Containers/group.com.apple.notes/

This is where your Mac hides your Notes files, and that’s where we’re headed.

Step 1: Locate the Notes Folder on the Old Mac

Here’s how to get to it:

  1. Open Finder.

  2. Press Command + Shift + G to open Go to Folder.

  3. Paste this path:

    ~/Library/Group Containers/group.com.apple.notes/
  4. Hit Return.

You’ll see a bunch of files, but we only need three of them.

Step 2: Identify the 3 Key Files to Copy

The files you’re looking for are:

  • NoteStore.sqlite

  • NoteStore.sqlite-shm

  • NoteStore.sqlite-wal

These are the heart of your Notes. Think of them as the pages, bookmarks, and highlights of your digital notebook.

Step 3: Copy Files to a Safe Location (Desktop)

Simply drag and drop the three files onto your desktop. This step is like putting your Notes into a little box, ready for the move.

Make sure the Notes app is closed while doing this — otherwise, the files may not copy correctly.

Step 4: Transfer Files to Your New Mac

Now you have a few choices for getting those files onto the new Mac:

  • AirDrop (fastest and easiest if both Macs are nearby)

  • USB flash drive or external hard drive

  • Cloud storage like Dropbox or iCloud Drive

Move the three files to the desktop of the new Mac, just to keep things tidy.

Step 5: Paste Files in the Right Location

Ready to unpack your Notes on the new machine?

  1. On the new Mac, go to:

    ~/Library/Group Containers/group.com.apple.notes/

    (Use the same Command + Shift + G trick.)

  2. Paste the three files you transferred into this folder. Replace any existing files when prompted.

Step 6: Launch Notes App and Check for Success

Now the magic moment:

  • Open the Notes app on the new Mac.

  • Voila! You should see all your Notes exactly as they were on the old Mac.

If nothing shows up immediately, try restarting your Mac.

Important Precautions to Take

  • Always close the Notes app before copying or pasting these files.

  • Create a backup of the original files on the new Mac in case something goes wrong.

  • Ensure both Macs are running compatible versions of macOS to avoid compatibility issues.

Troubleshooting Common Issues

Nothing is showing up?
Make sure you replaced the correct files and that you’re in the right directory.

Files won’t copy?
Double-check that Notes isn’t open and you have the right permissions.

App crashes?
Delete the new files and try again. Or consider restoring the original files you backed up.

Using iCloud as an Alternative Option

If both Macs are signed in to the same Apple ID and Notes is enabled in iCloud:

  1. Go to System Settings > Apple ID > iCloud > Notes and enable it.

  2. Wait for Notes to sync automatically.

  3. Open Notes on the new Mac — they should be there.

But… this only works if your Notes were already syncing with iCloud before switching.

Manual Backup vs. Cloud Sync: What’s Better?

Manual transfer gives you more control and works even without internet.
iCloud sync is convenient and automatic, but relies on active sync and internet access.

Think of it like choosing between mailing a package yourself vs. using a courier service.

Conclusion and Final Thoughts

Transferring your Notes from one Mac to another doesn’t have to be complicated. With just three files and a bit of attention to detail, you can carry your entire digital notebook over to your new machine.

Whether you’re upgrading, replacing, or just starting fresh, keeping your notes safe ensures continuity and peace of mind.

FAQs

1. Can I move Apple Notes without using iCloud?
Yes! By copying the three NoteStore files from one Mac to another, you can transfer Notes manually.

2. Do I need to use Terminal or any special commands?
Nope — everything can be done through Finder using basic copy-paste functions.

3. What happens if I forget to close Notes before copying the files?
You might end up with corrupted or incomplete files. Always close the Notes app first.

4. Can I transfer Notes between Macs with different macOS versions?
It’s best to have the same or close versions of macOS. Major version differences might cause issues.

5. Is this method safe to use for work-related or sensitive Notes?
Yes, but always back up your files first, and consider encryption if the content is sensitive.

Tuesday, 2 July 2024

mysql commands to learn basic sql commands on terminal

 

On your mac terminal to open your mysql use the below command

firstname.lastname@MRMAcNAME ~ % mysql -u root -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 1277

Server version: 10.4.33-MariaDB Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 

=======================================================

To list databases

MariaDB [(none)]> show databases;

+--------------------+

| Database           |

+--------------------+

| database1   |

| master       |

| information_schema |          |

| mysql              |            |

+--------------------+

7 rows in set (0.004 sec)

MariaDB [(none)]> 

============================================

To create a new database

MariaDB [(none)]> create database testdemo;

Query OK, 1 row affected (0.003 sec)

============================================

To use the database 

MariaDB [(none)]> use testdemo;

Database changed

============================================

To list the tables

MariaDB [testdemo]> show tables;

Empty set (0.001 sec)

============================================

To delete a database

MariaDB [(none)]> drop database testdemo;

Query OK, 0 rows affected (0.022 sec)

============================================

To exit from the Mysql server

MariaDB [testdemo]> exit;

Bye

firstname.lastname@MRMAcNAME ~ % 

Can't connect to local MySQL server through socket '/tmp/mysql.sock'

 If you see this error message while trying to connect to a local MySQL Server:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

It means either the MySQL server is not installed/running, or the file mysql.sock doesn’t exist in /var/lib/mysql/.

There are a couple of solutions for this error. 

On your command prompt or terminal try to stop the server first by running below command

Mysql.server stop

And after successfully stopped

Run below command to start the mysql server

Mysql.server start

Saturday, 24 June 2017

what is the difference between public static final and public final static

what is the difference between public static final and public final static

No difference at all

They are the same. The order of modifiers is not significant. And note that the same rule applies in all contexts where modifiers are used in Java.

However, most Java style guides recommend/mandate the same specific order for the modifiers.
In this case, it is public static final.


private static final String API_RTN_ERROR= "1";
private final static String API_RTN_ERROR= "1";
static private final String API_RTN_ERROR= "1";
static final private String API_RTN_ERROR= "1";
final static private String API_RTN_ERROR= "1";
final private static String API_RTN_ERROR= "1";

even all above are same the position of first three is intercangeable.

Does it differ for private or public?
No, you can use any order in private and public. Just difference is private variables will not be accessible outside of class directly.


https://stackoverflow.com/questions/11219556/difference-between-final-static-and-static-final

what is the meaning of public static final string SOME_VARIABLE = "variable text"

what is the meaning of public static final string SOME_VARIABLE = "variable text"

final indicates that the value of the variable won't change - in other words, a variable who's value can't be modified after it is declared.

Use public final static String when you want to create a String that:

belongs to the class (static: no instance necessary to use it), and that
won't change (final), for instance when you want to define a String constant that will be available to all instances of the class, and to other objects using the class.


Similarly:

public static final int ERROR_CODE = 54654;
It isn't required to use final, but it keeps a constant from being changed inadvertently during program execution, and serves as an indicator that the variable is a constant.

Even if the constant will only be used - read - in the current class and/or in only one place, it's good practice to declare all constants as final: it's clearer, and during the lifetime of the code the constant may end up being used in more than one place.

Also, you may access the value of a public static string w/o having an instance of a class.

static means that the object will only be created once, and does not have an instance object containing it. The way you have written is best used when you have something that is common for all objects of the class and will never change. It even could be used without creating an object at all.

Usually it's best to use final when you expect it to be final so that the compiler will enforce that rule and you know for sure. static ensures that you don't waste memory creating many of the same thing if it will be the same value for all objects.

public makes it accessible across other classes.


what-is-difference-between-public static final and public final static

Tuesday, 5 July 2016

How to add ISTQB certification to linked in profile

Here follow these steps to add any certification as below steps so that

First click on your Profile in Linked in

Just below to your details there is a option "Add a section to your profile" In that block click on "View details"

 Click on View more


Select  certifications
Now fill details




Click on Save button so that it will appear as below on your linked profile.





How to connect to shared drive on mac

Step 1: First please check whether you have connected to your company network or not ? if not connect to your LAN or internet network and in my company scenario I have to connect to blue cable to my mac laptop.

Step2:  Click on Finder icon  or by minimising all browsers for windows come into Desktop

Step 3: From keyboard click Cmd  + K  or In the Finder , Choose Go > “Connect to Server”

Step 4: It will open “Connect to Sever” window

Step 5: On the “Server address” give your shared drive address

 machinename/foldername1/foldername2

and click on “Connect” button  It will ask for User id and password  please give your system user id and password
it will generate as below
smb://machinename/foldername1/foldername2

Just in case if you need to keep as a further reference click on + icon


Just in case if you want to remove even you can remove by clicking on Remove button.

More details you can get here

https://support.apple.com/kb/ph10644?locale=en_US